Upload folder using huggingface_hub
Browse files- config.json +82 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +29 -0
- quantize_config.json +35 -0
config.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/dit-large-finetuned-rvlcdip",
|
3 |
+
"architectures": [
|
4 |
+
"BeitForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"auxiliary_channels": 256,
|
8 |
+
"auxiliary_concat_input": false,
|
9 |
+
"auxiliary_loss_weight": 0.4,
|
10 |
+
"auxiliary_num_convs": 1,
|
11 |
+
"drop_path_rate": 0.1,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.0,
|
14 |
+
"hidden_size": 1024,
|
15 |
+
"id2label": {
|
16 |
+
"0": "letter",
|
17 |
+
"1": "form",
|
18 |
+
"2": "email",
|
19 |
+
"3": "handwritten",
|
20 |
+
"4": "advertisement",
|
21 |
+
"5": "scientific report",
|
22 |
+
"6": "scientific publication",
|
23 |
+
"7": "specification",
|
24 |
+
"8": "file folder",
|
25 |
+
"9": "news article",
|
26 |
+
"10": "budget",
|
27 |
+
"11": "invoice",
|
28 |
+
"12": "presentation",
|
29 |
+
"13": "questionnaire",
|
30 |
+
"14": "resume",
|
31 |
+
"15": "memo"
|
32 |
+
},
|
33 |
+
"image_size": 224,
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 4096,
|
36 |
+
"label2id": {
|
37 |
+
"advertisement": 4,
|
38 |
+
"budget": 10,
|
39 |
+
"email": 2,
|
40 |
+
"file folder": 8,
|
41 |
+
"form": 1,
|
42 |
+
"handwritten": 3,
|
43 |
+
"invoice": 11,
|
44 |
+
"letter": 0,
|
45 |
+
"memo": 15,
|
46 |
+
"news article": 9,
|
47 |
+
"presentation": 12,
|
48 |
+
"questionnaire": 13,
|
49 |
+
"resume": 14,
|
50 |
+
"scientific publication": 6,
|
51 |
+
"scientific report": 5,
|
52 |
+
"specification": 7
|
53 |
+
},
|
54 |
+
"layer_norm_eps": 1e-12,
|
55 |
+
"layer_scale_init_value": 0.1,
|
56 |
+
"model_type": "beit",
|
57 |
+
"num_attention_heads": 16,
|
58 |
+
"num_channels": 3,
|
59 |
+
"num_hidden_layers": 24,
|
60 |
+
"out_indices": [
|
61 |
+
3,
|
62 |
+
5,
|
63 |
+
7,
|
64 |
+
11
|
65 |
+
],
|
66 |
+
"patch_size": 16,
|
67 |
+
"pool_scales": [
|
68 |
+
1,
|
69 |
+
2,
|
70 |
+
3,
|
71 |
+
6
|
72 |
+
],
|
73 |
+
"semantic_loss_ignore_index": 255,
|
74 |
+
"transformers_version": "4.34.0.dev0",
|
75 |
+
"use_absolute_position_embeddings": true,
|
76 |
+
"use_auxiliary_head": true,
|
77 |
+
"use_mask_token": false,
|
78 |
+
"use_mean_pooling": true,
|
79 |
+
"use_relative_position_bias": false,
|
80 |
+
"use_shared_relative_position_bias": false,
|
81 |
+
"vocab_size": 8192
|
82 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:caf4b996aa38d5d7de509fa93053bc2f552b487925e5940287dd0f5ac96caca4
|
3 |
+
size 1213904194
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79c4108e944bc8d25bfa8071dc123eb3ecb534cb84298a72d476eb1c90b28313
|
3 |
+
size 306997513
|
preprocessor_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": false,
|
7 |
+
"do_normalize": true,
|
8 |
+
"do_reduce_labels": false,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"feature_extractor_type": "BeitFeatureExtractor",
|
12 |
+
"image_mean": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"image_processor_type": "BeitFeatureExtractor",
|
18 |
+
"image_std": [
|
19 |
+
0.5,
|
20 |
+
0.5,
|
21 |
+
0.5
|
22 |
+
],
|
23 |
+
"resample": 2,
|
24 |
+
"rescale_factor": 0.00392156862745098,
|
25 |
+
"size": {
|
26 |
+
"height": 224,
|
27 |
+
"width": 224
|
28 |
+
}
|
29 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Shape",
|
8 |
+
"MatMul",
|
9 |
+
"Transpose",
|
10 |
+
"Where",
|
11 |
+
"Slice",
|
12 |
+
"Gather",
|
13 |
+
"Mul",
|
14 |
+
"Erf",
|
15 |
+
"Sqrt",
|
16 |
+
"Gemm",
|
17 |
+
"Add",
|
18 |
+
"Softmax",
|
19 |
+
"Conv",
|
20 |
+
"ConstantOfShape",
|
21 |
+
"Concat",
|
22 |
+
"Reshape",
|
23 |
+
"Equal",
|
24 |
+
"ReduceMean",
|
25 |
+
"Expand",
|
26 |
+
"Constant",
|
27 |
+
"Div",
|
28 |
+
"Unsqueeze",
|
29 |
+
"Pow",
|
30 |
+
"Sub"
|
31 |
+
],
|
32 |
+
"weight_type": "QUInt8"
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|