pszemraj commited on
Commit
fc1c13e
1 Parent(s): 3cf49ea

Upload folder using huggingface_hub

Browse files
onnx/config.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "onnx-O2-beit-large-512",
3
+ "add_fpn": false,
4
+ "architectures": [
5
+ "BeitForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "auxiliary_channels": 256,
9
+ "auxiliary_concat_input": false,
10
+ "auxiliary_loss_weight": 0.4,
11
+ "auxiliary_num_convs": 1,
12
+ "drop_path_rate": 0.1,
13
+ "finetuning_task": "image-classification",
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "hidden_size": 1024,
17
+ "id2label": {
18
+ "0": "ambiguous",
19
+ "1": "closeUp",
20
+ "2": "detail",
21
+ "3": "extremeLongShot",
22
+ "4": "fullShot",
23
+ "5": "longShot",
24
+ "6": "mediumCloseUp",
25
+ "7": "mediumShot"
26
+ },
27
+ "image_size": 512,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 4096,
30
+ "label2id": {
31
+ "ambiguous": "0",
32
+ "closeUp": "1",
33
+ "detail": "2",
34
+ "extremeLongShot": "3",
35
+ "fullShot": "4",
36
+ "longShot": "5",
37
+ "mediumCloseUp": "6",
38
+ "mediumShot": "7"
39
+ },
40
+ "layer_norm_eps": 1e-12,
41
+ "layer_scale_init_value": 0.1,
42
+ "model_type": "beit",
43
+ "num_attention_heads": 16,
44
+ "num_channels": 3,
45
+ "num_hidden_layers": 24,
46
+ "out_features": [
47
+ "stage24"
48
+ ],
49
+ "out_indices": [
50
+ 24
51
+ ],
52
+ "patch_size": 16,
53
+ "pool_scales": [
54
+ 1,
55
+ 2,
56
+ 3,
57
+ 6
58
+ ],
59
+ "problem_type": "single_label_classification",
60
+ "reshape_hidden_states": true,
61
+ "semantic_loss_ignore_index": 255,
62
+ "stage_names": [
63
+ "stem",
64
+ "stage1",
65
+ "stage2",
66
+ "stage3",
67
+ "stage4",
68
+ "stage5",
69
+ "stage6",
70
+ "stage7",
71
+ "stage8",
72
+ "stage9",
73
+ "stage10",
74
+ "stage11",
75
+ "stage12",
76
+ "stage13",
77
+ "stage14",
78
+ "stage15",
79
+ "stage16",
80
+ "stage17",
81
+ "stage18",
82
+ "stage19",
83
+ "stage20",
84
+ "stage21",
85
+ "stage22",
86
+ "stage23",
87
+ "stage24"
88
+ ],
89
+ "transformers_version": "4.38.1",
90
+ "use_absolute_position_embeddings": false,
91
+ "use_auxiliary_head": true,
92
+ "use_mask_token": false,
93
+ "use_mean_pooling": true,
94
+ "use_relative_position_bias": true,
95
+ "use_shared_relative_position_bias": false,
96
+ "vocab_size": 8192
97
+ }
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:989af93cf114b7f1e2e28024efe5dd7d47a9972ab361ed5585534b81c490d45a
3
+ size 1920266405
onnx/ort_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "one_external_file": true,
3
+ "opset": null,
4
+ "optimization": {},
5
+ "optimum_version": "1.18.0.dev0",
6
+ "quantization": {
7
+ "activations_dtype": "QUInt8",
8
+ "activations_symmetric": false,
9
+ "format": "QOperator",
10
+ "is_static": false,
11
+ "mode": "IntegerOps",
12
+ "nodes_to_exclude": [],
13
+ "nodes_to_quantize": [],
14
+ "operators_to_quantize": [
15
+ "Conv",
16
+ "MatMul",
17
+ "Attention",
18
+ "LSTM",
19
+ "Gather",
20
+ "Transpose",
21
+ "EmbedLayerNormalization"
22
+ ],
23
+ "per_channel": true,
24
+ "qdq_add_pair_to_weight": false,
25
+ "qdq_dedicated_pair": false,
26
+ "qdq_op_type_per_channel_support_to_axis": {
27
+ "MatMul": 1
28
+ },
29
+ "reduce_range": false,
30
+ "weights_dtype": "QUInt8",
31
+ "weights_symmetric": true
32
+ },
33
+ "transformers_version": "4.38.1",
34
+ "use_external_data_format": false
35
+ }
onnx/preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "image_mean": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "image_processor_type": "BeitFeatureExtractor",
17
+ "image_std": [
18
+ 0.5,
19
+ 0.5,
20
+ 0.5
21
+ ],
22
+ "resample": 2,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "height": 512,
26
+ "width": 512
27
+ }
28
+ }