File size: 3,787 Bytes
27371e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
    "activation_dropout": 0.0,
    "activation_function": "silu",
    "anchor_image_size": null,
    "architectures": [
      "PPDocLayoutV2ForObjectDetection"
    ],
    "attention_dropout": 0.0,
    "backbone": null,
    "backbone_config": {
      "model_type": "hgnet_v2",
      "arch": "L",
      "return_idx": [1, 2, 3],
      "freeze_stem_only": true,
      "freeze_at": 0,
      "freeze_norm": true,
      "lr_mult_list": [0, 0.05, 0.05, 0.05, 0.05],
      "out_features": ["stage2", "stage3", "stage4"]
    },
    "backbone_kwargs": null,
    "batch_norm_eps": 1e-05,
    "box_noise_scale": 1.0,
    "d_model": 256,
    "decoder_activation_function": "relu",
    "decoder_attention_heads": 8,
    "decoder_ffn_dim": 1024,
    "decoder_in_channels": [
      256,
      256,
      256
    ],
    "decoder_layers": 6,
    "decoder_n_points": 4,
    "disable_custom_kernels": true,
    "dropout": 0.0,
    "encode_proj_layers": [
      2
    ],
    "encoder_activation_function": "gelu",
    "encoder_attention_heads": 8,
    "encoder_ffn_dim": 1024,
    "encoder_hidden_dim": 256,
    "encoder_in_channels": [
      512,
      1024,
      2048
    ],
    "encoder_layers": 1,
    "eos_coefficient": 0.0001,
    "eval_size": null,
    "feat_strides": [
      8,
      16,
      32
    ],
    "hidden_expansion": 1.0,
    "id2label": {
      "0": "abstract",
      "1": "algorithm",
      "2": "aside_text",
      "3": "chart",
      "4": "content",
      "5": "formula",
      "6": "doc_title",
      "7": "figure_title",
      "8": "footer",
      "9": "footer",
      "10": "footnote",
      "11": "formula_number",
      "12": "header",
      "13": "header",
      "14": "image",
      "15": "formula",
      "16": "number",
      "17": "paragraph_title",
      "18": "reference",
      "19": "reference_content",
      "20": "seal",
      "21": "table",
      "22": "text",
      "23": "text",
      "24": "vision_footnote"
    },
    "initializer_range": 0.01,
    "is_encoder_decoder": true,
    "label2id": {},
    "label_noise_ratio": 0.5,
    "layer_norm_eps": 1e-05,
    "learn_initial_query": false,
    "matcher_alpha": 0.25,
    "matcher_bbox_cost": 5.0,
    "matcher_class_cost": 2.0,
    "matcher_gamma": 2.0,
    "matcher_giou_cost": 2.0,
    "model_type": "pp_doclayout_v2",
    "normalize_before": false,
    "num_denoising": 100,
    "num_feature_levels": 3,
    "num_queries": 300,
    "positional_encoding_temperature": 10000,
    "torch_dtype": "float32",
    "use_pretrained_backbone": false,
    "use_timm_backbone": false,
    "reading_order_config": {
      "hidden_size": 512,
      "num_attention_heads": 8,
      "attention_probs_dropout_prob": 0.1,
      "has_relative_attention_bias": false,
      "has_spatial_attention_bias": true,
      "layer_norm_eps": 1e-5,
      "hidden_dropout_prob": 0.1,
      "intermediate_size": 2048,
      "hidden_act": "gelu",
      "num_hidden_layers": 6,
      "rel_pos_bins": 32,
      "max_rel_pos": 128,
      "rel_2d_pos_bins": 64,
      "max_rel_2d_pos": 256,
      "max_position_embeddings": 514,
      "max_2d_position_embeddings": 1024,
      "type_vocab_size": 1,
      "vocab_size": 4,
      "start_token_id": 0,
      "pad_token_id": 1,
      "end_token_id": 2,
      "pred_token_id": 3,
      "coordinate_size": 171,
      "shape_size": 170,
      "num_classes": 20,
      "relation_bias_embed_dim": 16,
      "relation_bias_theta": 10000,
      "relation_bias_scale": 100,
      "global_pointer_head_size": 64,
      "tril_mask": true
    },
    "class_thresholds": [0.5, 0.5, 0.5, 0.5, 0.5, 0.4, 0.4, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.4, 0.5, 0.4, 0.5, 0.5, 0.45, 0.5, 0.4, 0.4, 0.5],
    "class_order": [4, 2, 14, 1, 5, 7, 8, 6, 11, 11, 9, 13, 10, 10, 1, 2, 3, 0, 2, 2, 12, 1, 2, 15, 6]
  }