kike commited on
Commit
e6634f2
1 Parent(s): e8625ed

Upload TableTransformerForObjectDetection

Browse files
Files changed (2) hide show
  1. config.json +18 -15
  2. model.safetensors +2 -2
config.json CHANGED
@@ -7,11 +7,12 @@
7
  ],
8
  "attention_dropout": 0.0,
9
  "auxiliary_loss": false,
10
- "backbone": "resnet50",
11
  "backbone_config": null,
12
  "backbone_kwargs": null,
13
  "bbox_cost": 5,
14
  "bbox_loss_coefficient": 5,
 
15
  "class_cost": 1,
16
  "d_model": 256,
17
  "decoder_attention_heads": 8,
@@ -25,34 +26,36 @@
25
  "encoder_ffn_dim": 2048,
26
  "encoder_layerdrop": 0.0,
27
  "encoder_layers": 6,
28
- "eos_coefficient": 0.1,
29
  "giou_cost": 2,
30
  "giou_loss_coefficient": 2,
31
  "id2label": {
32
- "1": "table",
33
- "2": "table column",
34
- "3": "table row",
35
- "4": "table column header",
36
- "5": "table projected row header",
37
- "6": "table spanning cell"
38
  },
39
  "init_std": 0.02,
40
  "init_xavier_std": 1.0,
41
  "is_encoder_decoder": true,
42
  "label2id": {
43
- "table": 1,
44
- "table column": 2,
45
- "table column header": 4,
46
- "table projected row header": 5,
47
- "table row": 3,
48
- "table spanning cell": 6
49
  },
50
  "mask_loss_coefficient": 1,
 
51
  "model_type": "table-transformer",
52
  "num_channels": 3,
53
  "num_hidden_layers": 6,
54
- "num_queries": 100,
55
  "position_embedding_type": "sine",
 
56
  "torch_dtype": "float32",
57
  "transformers_version": "4.40.0",
58
  "use_pretrained_backbone": true,
 
7
  ],
8
  "attention_dropout": 0.0,
9
  "auxiliary_loss": false,
10
+ "backbone": "resnet18",
11
  "backbone_config": null,
12
  "backbone_kwargs": null,
13
  "bbox_cost": 5,
14
  "bbox_loss_coefficient": 5,
15
+ "ce_loss_coefficient": 1,
16
  "class_cost": 1,
17
  "d_model": 256,
18
  "decoder_attention_heads": 8,
 
26
  "encoder_ffn_dim": 2048,
27
  "encoder_layerdrop": 0.0,
28
  "encoder_layers": 6,
29
+ "eos_coefficient": 0.4,
30
  "giou_cost": 2,
31
  "giou_loss_coefficient": 2,
32
  "id2label": {
33
+ "0": "table",
34
+ "1": "table column",
35
+ "2": "table row",
36
+ "3": "table column header",
37
+ "4": "table projected row header",
38
+ "5": "table spanning cell"
39
  },
40
  "init_std": 0.02,
41
  "init_xavier_std": 1.0,
42
  "is_encoder_decoder": true,
43
  "label2id": {
44
+ "table": 0,
45
+ "table column": 1,
46
+ "table column header": 3,
47
+ "table projected row header": 4,
48
+ "table row": 2,
49
+ "table spanning cell": 5
50
  },
51
  "mask_loss_coefficient": 1,
52
+ "max_position_embeddings": 1024,
53
  "model_type": "table-transformer",
54
  "num_channels": 3,
55
  "num_hidden_layers": 6,
56
+ "num_queries": 125,
57
  "position_embedding_type": "sine",
58
+ "scale_embedding": false,
59
  "torch_dtype": "float32",
60
  "transformers_version": "4.40.0",
61
  "use_pretrained_backbone": true,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a2f190318610c1d8508f94ab04df6e2948f3d5159bff085f377d0d6cb388c6e
3
- size 166502212
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deeb81c6f6237e563bb14210c1e7c9285dfd53cbaa5261e05b7edad69dbdef14
3
+ size 115433860