Oblix commited on
Commit
5fa5070
1 Parent(s): a334f10

Upload 5 files

Browse files
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "TahaDouaji/detr-doc-table-detection",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "architectures": [
6
+ "DetrForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": false,
10
+ "backbone": "resnet50",
11
+ "backbone_config": null,
12
+ "bbox_cost": 5,
13
+ "bbox_loss_coefficient": 5,
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.1,
28
+ "giou_cost": 2,
29
+ "giou_loss_coefficient": 2,
30
+ "id2label": {
31
+ "0": "table",
32
+ "1": "table"
33
+ },
34
+ "init_std": 0.02,
35
+ "init_xavier_std": 1.0,
36
+ "is_encoder_decoder": true,
37
+ "label2id": {
38
+ "table": 0
39
+ },
40
+ "mask_loss_coefficient": 1,
41
+ "max_position_embeddings": 1024,
42
+ "model_type": "detr",
43
+ "num_channels": 3,
44
+ "num_hidden_layers": 6,
45
+ "num_queries": 100,
46
+ "position_embedding_type": "sine",
47
+ "scale_embedding": false,
48
+ "transformers_version": "4.33.2",
49
+ "use_pretrained_backbone": true,
50
+ "use_timm_backbone": true
51
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86cfea14325ba35cec2a17e90bb13d9f744e72d3cfe77d83369e25f42e4e1444
3
+ size 166716901
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8eb95dbabdfeaf9dddc52ee2e9bf4ccecbc743e921e133f5ed7a79744794041d
3
+ size 43097328
preprocessor_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_pad": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "feature_extractor_type": "DetrFeatureExtractor",
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "DetrFeatureExtractor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "longest_edge": 1333,
23
+ "shortest_edge": 800
24
+ }
25
+ }
quantize_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Constant",
8
+ "ReduceMean",
9
+ "Cast",
10
+ "Cos",
11
+ "Sub",
12
+ "Sin",
13
+ "Gather",
14
+ "Where",
15
+ "Sigmoid",
16
+ "MatMul",
17
+ "Expand",
18
+ "MaxPool",
19
+ "Resize",
20
+ "Unsqueeze",
21
+ "Slice",
22
+ "Concat",
23
+ "Shape",
24
+ "Conv",
25
+ "Transpose",
26
+ "Relu",
27
+ "CumSum",
28
+ "Equal",
29
+ "Pow",
30
+ "Tile",
31
+ "Mul",
32
+ "ConstantOfShape",
33
+ "Div",
34
+ "Softmax",
35
+ "Sqrt",
36
+ "Flatten",
37
+ "Add",
38
+ "Reshape"
39
+ ],
40
+ "weight_type": "QUInt8"
41
+ }
42
+ }
43
+ }