File size: 479 Bytes
ccd6fbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from transformers.configuration_utils import PretrainedConfig


class LayoutDmFIDNetV3Config(PretrainedConfig):
    model_type = "layoutdm_fidnet_v3"

    def __init__(
        self,
        d_model: int = 256,
        nhead: int = 4,
        num_layers: int = 4,
        max_bbox: int = 50,
        **kwargs
    ):
        super().__init__(**kwargs)
        self.d_model = d_model
        self.nhead = nhead
        self.num_layers = num_layers
        self.max_bbox = max_bbox