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-base-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": 768,
|
| 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": 3072,
|
| 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": 12,
|
| 58 |
+
"num_channels": 3,
|
| 59 |
+
"num_hidden_layers": 12,
|
| 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:71483a5729a7b813b12eb92edf7b7fd8842a38974bd28a5b5fe037b27d0c1c59
|
| 3 |
+
size 343549530
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0145573254871b9d86104439fc6c5fe7c041832cdf284a838d744fd80eeb38af
|
| 3 |
+
size 87538326
|
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 |
+
"Sub",
|
| 8 |
+
"Expand",
|
| 9 |
+
"MatMul",
|
| 10 |
+
"Add",
|
| 11 |
+
"Reshape",
|
| 12 |
+
"Gather",
|
| 13 |
+
"Erf",
|
| 14 |
+
"Equal",
|
| 15 |
+
"Conv",
|
| 16 |
+
"Constant",
|
| 17 |
+
"Sqrt",
|
| 18 |
+
"Where",
|
| 19 |
+
"Pow",
|
| 20 |
+
"Gemm",
|
| 21 |
+
"Concat",
|
| 22 |
+
"Transpose",
|
| 23 |
+
"ReduceMean",
|
| 24 |
+
"ConstantOfShape",
|
| 25 |
+
"Div",
|
| 26 |
+
"Shape",
|
| 27 |
+
"Unsqueeze",
|
| 28 |
+
"Slice",
|
| 29 |
+
"Mul",
|
| 30 |
+
"Softmax"
|
| 31 |
+
],
|
| 32 |
+
"weight_type": "QUInt8"
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|