kike commited on
Commit
6abf401
1 Parent(s): f2e184f

Upload TableTransformerForObjectDetection

Browse files
Files changed (2) hide show
  1. config.json +16 -5
  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,
@@ -20,23 +21,33 @@
20
  "decoder_layers": 6,
21
  "dice_loss_coefficient": 1,
22
  "dilation": false,
23
- "dropout": 0.2,
24
  "encoder_attention_heads": 8,
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
  "init_std": 0.02,
32
  "init_xavier_std": 1.0,
33
  "is_encoder_decoder": true,
 
 
 
 
34
  "mask_loss_coefficient": 1,
 
35
  "model_type": "table-transformer",
36
  "num_channels": 3,
37
- "num_hidden_layers": 8,
38
- "num_queries": 100,
39
  "position_embedding_type": "sine",
 
40
  "torch_dtype": "float32",
41
  "transformers_version": "4.38.2",
42
  "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,
 
21
  "decoder_layers": 6,
22
  "dice_loss_coefficient": 1,
23
  "dilation": false,
24
+ "dropout": 0.1,
25
  "encoder_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 rotated"
35
+ },
36
  "init_std": 0.02,
37
  "init_xavier_std": 1.0,
38
  "is_encoder_decoder": true,
39
+ "label2id": {
40
+ "table": 0,
41
+ "table rotated": 1
42
+ },
43
  "mask_loss_coefficient": 1,
44
+ "max_position_embeddings": 1024,
45
  "model_type": "table-transformer",
46
  "num_channels": 3,
47
+ "num_hidden_layers": 6,
48
+ "num_queries": 15,
49
  "position_embedding_type": "sine",
50
+ "scale_embedding": false,
51
  "torch_dtype": "float32",
52
  "transformers_version": "4.38.2",
53
  "use_pretrained_backbone": true,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d4edf4a81aab701ba2e1b054411fcf9c9c74a634daf8611fb9c60674a7213086
3
- size 166498100
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02ef76ceae261747a2efc6d45f528e52b47bddf9efe6b046e3e0fc8d59b7a9b0
3
+ size 115317108