mali17361 commited on
Commit
401e5b9
1 Parent(s): 92daa01

Upload model

Browse files
Files changed (2) hide show
  1. config.json +11 -19
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,19 +1,19 @@
1
  {
2
- "_name_or_path": "microsoft/table-transformer-structure-recognition",
3
  "activation_dropout": 0.0,
4
  "activation_function": "relu",
5
  "architectures": [
6
- "TableTransformerForObjectDetection"
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,
19
  "decoder_ffn_dim": 2048,
@@ -26,34 +26,26 @@
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",
 
1
  {
2
+ "_name_or_path": "facebook/detr-resnet-50",
3
  "activation_dropout": 0.0,
4
  "activation_function": "relu",
5
  "architectures": [
6
+ "DetrModel"
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
+ "classifier_dropout": 0.0,
17
  "d_model": 256,
18
  "decoder_attention_heads": 8,
19
  "decoder_ffn_dim": 2048,
 
26
  "encoder_ffn_dim": 2048,
27
  "encoder_layerdrop": 0.0,
28
  "encoder_layers": 6,
29
+ "eos_coefficient": 0.1,
30
  "giou_cost": 2,
31
  "giou_loss_coefficient": 2,
32
  "id2label": {
33
+ "0": "row",
34
+ "1": "column"
 
 
 
 
35
  },
36
  "init_std": 0.02,
37
  "init_xavier_std": 1.0,
38
  "is_encoder_decoder": true,
39
  "label2id": {
40
+ "column": 1,
41
+ "row": 0
 
 
 
 
42
  },
43
  "mask_loss_coefficient": 1,
44
  "max_position_embeddings": 1024,
45
+ "model_type": "detr",
46
  "num_channels": 3,
47
  "num_hidden_layers": 6,
48
+ "num_queries": 100,
49
  "position_embedding_type": "sine",
50
  "scale_embedding": false,
51
  "torch_dtype": "float32",
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f80b59d3e1fa156d6198ff62ac3510791a0ac4ee74a933beada5dd04691c2551
3
- size 115433860
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d87fc9d1c03777cb0d6d40df62cdea6b8c008ea4bd296d5135d826f3aabcf0f0
3
+ size 165958320