Transformers
Safetensors
Inference Endpoints
dolfim-ibm commited on
Commit
36bebf5
β€’
1 Parent(s): a8a5742

Use safetensors (#2)

Browse files

- Delete folder model_artifacts/layout/beehive_v0.0.5_pt with huggingface_hub (d3d30c3cba91539f87c9c6a9c38e816806623cd8)
- Upload folder using huggingface_hub (88056eedef7ef675720f74762c305f2d0944b36d)
- Delete folder model_artifacts/tableformer with huggingface_hub (821055b6f5c064972c4471276983179eb2c3a3a7)
- Upload folder using huggingface_hub (c8b232e56157b2996cfe56a8093ef76a18c82594)
- Delete folder model_artifacts/tableformer with huggingface_hub (796bc7926d9684365d62831a8ad06670c8ebdd85)
- Upload folder using huggingface_hub (26278eecbe2875d48a7452b9a009274795ffda74)

.gitattributes CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  model_artifacts/tableformer/otslp_all_fast.check filter=lfs diff=lfs merge=lfs -text
37
  model_artifacts/tableformer/fat/otslp_all_standard_094_clean.check filter=lfs diff=lfs merge=lfs -text
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  model_artifacts/tableformer/otslp_all_fast.check filter=lfs diff=lfs merge=lfs -text
37
  model_artifacts/tableformer/fat/otslp_all_standard_094_clean.check filter=lfs diff=lfs merge=lfs -text
38
+ model_artifacts/tableformer/accurate/otslp_all_standard_094_clean.check filter=lfs diff=lfs merge=lfs -text
39
+ model_artifacts/tableformer/fast/otslp_all_fast.check filter=lfs diff=lfs merge=lfs -text
model_artifacts/layout/config.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "model_type": "rt_detr_resnet",
13
+ "out_features": [
14
+ "stage2",
15
+ "stage3",
16
+ "stage4"
17
+ ],
18
+ "out_indices": [
19
+ 2,
20
+ 3,
21
+ 4
22
+ ]
23
+ },
24
+ "backbone_kwargs": null,
25
+ "batch_norm_eps": 1e-05,
26
+ "box_noise_scale": 1.0,
27
+ "d_model": 256,
28
+ "decoder_activation_function": "relu",
29
+ "decoder_attention_heads": 8,
30
+ "decoder_ffn_dim": 1024,
31
+ "decoder_in_channels": [
32
+ 256,
33
+ 256,
34
+ 256
35
+ ],
36
+ "decoder_layers": 6,
37
+ "decoder_n_points": 4,
38
+ "disable_custom_kernels": true,
39
+ "dropout": 0.0,
40
+ "encode_proj_layers": [
41
+ 2
42
+ ],
43
+ "encoder_activation_function": "gelu",
44
+ "encoder_attention_heads": 8,
45
+ "encoder_ffn_dim": 1024,
46
+ "encoder_hidden_dim": 256,
47
+ "encoder_in_channels": [
48
+ 512,
49
+ 1024,
50
+ 2048
51
+ ],
52
+ "encoder_layers": 1,
53
+ "eos_coefficient": 0.0001,
54
+ "eval_size": null,
55
+ "feat_strides": [
56
+ 8,
57
+ 16,
58
+ 32
59
+ ],
60
+ "focal_loss_alpha": 0.75,
61
+ "focal_loss_gamma": 2.0,
62
+ "freeze_backbone_batch_norms": true,
63
+ "hidden_expansion": 1.0,
64
+ "id2label": {
65
+ "0": "background",
66
+ "1": "Caption",
67
+ "10": "Text",
68
+ "11": "Title",
69
+ "12": "Document Index",
70
+ "13": "Code",
71
+ "14": "Checkbox-Selected",
72
+ "15": "Checkbox-Unselected",
73
+ "16": "Form",
74
+ "17": "Key-Value Region",
75
+ "2": "Footnote",
76
+ "3": "Formula",
77
+ "4": "List-item",
78
+ "5": "Page-footer",
79
+ "6": "Page-header",
80
+ "7": "Picture",
81
+ "8": "Section-header",
82
+ "9": "Table"
83
+ },
84
+ "initializer_bias_prior_prob": null,
85
+ "initializer_range": 0.01,
86
+ "is_encoder_decoder": true,
87
+ "label2id": {
88
+ "Caption": "1",
89
+ "Checkbox-Selected": "14",
90
+ "Checkbox-Unselected": "15",
91
+ "Code": "13",
92
+ "Document Index": "12",
93
+ "Footnote": "2",
94
+ "Form": "16",
95
+ "Formula": "3",
96
+ "Key-Value Region": "17",
97
+ "List-item": "4",
98
+ "Page-footer": "5",
99
+ "Page-header": "6",
100
+ "Picture": "7",
101
+ "Section-header": "8",
102
+ "Table": "9",
103
+ "Text": "10",
104
+ "Title": "11",
105
+ "background": "0"
106
+ },
107
+ "label_noise_ratio": 0.5,
108
+ "layer_norm_eps": 1e-05,
109
+ "learn_initial_query": false,
110
+ "matcher_alpha": 0.25,
111
+ "matcher_bbox_cost": 5.0,
112
+ "matcher_class_cost": 2.0,
113
+ "matcher_gamma": 2.0,
114
+ "matcher_giou_cost": 2.0,
115
+ "model_type": "rt_detr",
116
+ "normalize_before": false,
117
+ "num_denoising": 100,
118
+ "num_feature_levels": 3,
119
+ "num_queries": 300,
120
+ "positional_encoding_temperature": 10000,
121
+ "torch_dtype": "float32",
122
+ "transformers_version": "4.46.2",
123
+ "use_focal_loss": true,
124
+ "use_pretrained_backbone": false,
125
+ "use_timm_backbone": false,
126
+ "weight_loss_bbox": 5.0,
127
+ "weight_loss_giou": 2.0,
128
+ "weight_loss_vfl": 1.0,
129
+ "with_box_refine": true
130
+ }
model_artifacts/layout/{beehive_v0.0.5_pt/model.pt β†’ model.safetensors} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b752ab5d4493457f4da5355952c68573559b5f6f091ff77f2f422b4386634743
3
- size 201557903
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31e60b4709571b613bc8736a9c982fb550d8d7a1809160a68a8282af60c8910b
3
+ size 171666216
model_artifacts/layout/preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": false,
4
+ "do_pad": false,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "RTDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "pad_size": null,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 640,
24
+ "width": 640
25
+ }
26
+ }
model_artifacts/tableformer/{fat/otslp_all_standard_094_clean.check β†’ accurate/tableformer_accurate.safetensors} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb5ee88f5e411e2a7925837c05de5236bee1934569433b4ab58371ffba3f1da6
3
- size 212845885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66d8912f290375d3466f91be2048030a16317e84c8f1f69d3dbd7adc6d6cd2a9
3
+ size 212758388
model_artifacts/tableformer/{fat β†’ accurate}/tm_config.json RENAMED
@@ -61,8 +61,7 @@
61
  "padding": false,
62
  "padding_size": 50,
63
  "disable_post_process": false,
64
- "profiling": false,
65
- "device_mode": "auto"
66
  },
67
  "debug": {
68
  "save_debug_images": false
 
61
  "padding": false,
62
  "padding_size": 50,
63
  "disable_post_process": false,
64
+ "profiling": false
 
65
  },
66
  "debug": {
67
  "save_debug_images": false
model_artifacts/tableformer/{otslp_all_fast.check β†’ fast/tableformer_fast.safetensors} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3299cbfd5071aa8414e1fdc5d2703f1061f557d28c741ae28c0a9098a5f67872
3
- size 145516093
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3119563aab5a7c96fda4d621119b63fd8806272b86c30936d15507616422f718
3
+ size 145453276
model_artifacts/tableformer/{tm_config.json β†’ fast/tm_config.json} RENAMED
@@ -61,8 +61,7 @@
61
  "padding": false,
62
  "padding_size": 50,
63
  "disable_post_process": false,
64
- "profiling": false,
65
- "device_mode": "auto"
66
  },
67
  "debug": {
68
  "save_debug_images": false
 
61
  "padding": false,
62
  "padding_size": 50,
63
  "disable_post_process": false,
64
+ "profiling": false
 
65
  },
66
  "debug": {
67
  "save_debug_images": false