Upload 2 files
Browse files- config.json +59 -0
- preprocessor_config.json +18 -0
config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_dropout": 0.0,
|
3 |
+
"activation_function": "relu",
|
4 |
+
"architectures": [
|
5 |
+
"TableTransformerForObjectDetection"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"auxiliary_loss": false,
|
9 |
+
"backbone": "resnet18",
|
10 |
+
"backbone_config": null,
|
11 |
+
"bbox_cost": 5,
|
12 |
+
"bbox_loss_coefficient": 5,
|
13 |
+
"ce_loss_coefficient": 1,
|
14 |
+
"class_cost": 1,
|
15 |
+
"d_model": 256,
|
16 |
+
"decoder_attention_heads": 8,
|
17 |
+
"decoder_ffn_dim": 2048,
|
18 |
+
"decoder_layerdrop": 0.0,
|
19 |
+
"decoder_layers": 6,
|
20 |
+
"dice_loss_coefficient": 1,
|
21 |
+
"dilation": false,
|
22 |
+
"dropout": 0.1,
|
23 |
+
"encoder_attention_heads": 8,
|
24 |
+
"encoder_ffn_dim": 2048,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 6,
|
27 |
+
"eos_coefficient": 0.4,
|
28 |
+
"giou_cost": 2,
|
29 |
+
"giou_loss_coefficient": 2,
|
30 |
+
"id2label": {
|
31 |
+
"0": "table",
|
32 |
+
"1": "table column",
|
33 |
+
"2": "table row",
|
34 |
+
"3": "table column header",
|
35 |
+
"4": "table projected row header",
|
36 |
+
"5": "table spanning cell"
|
37 |
+
},
|
38 |
+
"init_std": 0.02,
|
39 |
+
"init_xavier_std": 1.0,
|
40 |
+
"is_encoder_decoder": true,
|
41 |
+
"label2id": {
|
42 |
+
"table": 0,
|
43 |
+
"table column": 1,
|
44 |
+
"table column header": 3,
|
45 |
+
"table projected row header": 4,
|
46 |
+
"table row": 2,
|
47 |
+
"table spanning cell": 5
|
48 |
+
},
|
49 |
+
"mask_loss_coefficient": 1,
|
50 |
+
"model_type": "table-transformer",
|
51 |
+
"num_channels": 3,
|
52 |
+
"num_hidden_layers": 6,
|
53 |
+
"num_queries": 125,
|
54 |
+
"position_embedding_type": "sine",
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.32.1",
|
57 |
+
"use_pretrained_backbone": true,
|
58 |
+
"use_timm_backbone": true
|
59 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "DetrFeatureExtractor",
|
5 |
+
"format": "coco_detection",
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_std": [
|
12 |
+
0.229,
|
13 |
+
0.224,
|
14 |
+
0.225
|
15 |
+
],
|
16 |
+
"max_size": 1000,
|
17 |
+
"size": 800
|
18 |
+
}
|