johnomeara commited on
Commit
a9da393
·
verified ·
1 Parent(s): 7101031

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "curb_ramp_dinov2_tiny_onnx",
4
+ "apply_layernorm": true,
5
+ "architectures": [
6
+ "Dinov2ForImageClassification"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.0,
9
+ "drop_path_rate": 0.0,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.0,
12
+ "hidden_size": 384,
13
+ "id2label": {
14
+ "0": "correct",
15
+ "1": "incorrect"
16
+ },
17
+ "image_size": 518,
18
+ "initializer_range": 0.02,
19
+ "label2id": {
20
+ "correct": 0,
21
+ "incorrect": 1
22
+ },
23
+ "layer_norm_eps": 1e-06,
24
+ "layerscale_value": 1.0,
25
+ "mlp_ratio": 4,
26
+ "model_type": "dinov2",
27
+ "num_attention_heads": 6,
28
+ "num_channels": 3,
29
+ "num_hidden_layers": 12,
30
+ "out_features": [
31
+ "stage12"
32
+ ],
33
+ "out_indices": [
34
+ 12
35
+ ],
36
+ "patch_size": 14,
37
+ "problem_type": "single_label_classification",
38
+ "qkv_bias": true,
39
+ "reshape_hidden_states": true,
40
+ "stage_names": [
41
+ "stem",
42
+ "stage1",
43
+ "stage2",
44
+ "stage3",
45
+ "stage4",
46
+ "stage5",
47
+ "stage6",
48
+ "stage7",
49
+ "stage8",
50
+ "stage9",
51
+ "stage10",
52
+ "stage11",
53
+ "stage12"
54
+ ],
55
+ "transformers_version": "4.48.3",
56
+ "use_mask_token": true,
57
+ "use_swiglu_ffn": false
58
+ }
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35405fe96dd815298923d8f008842915c30265e1247a285a7d680c2c0fb20cb1
3
+ size 24625231
ort_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "one_external_file": true,
3
+ "opset": null,
4
+ "optimization": {},
5
+ "quantization": {
6
+ "activations_dtype": "QUInt8",
7
+ "activations_symmetric": false,
8
+ "format": "QOperator",
9
+ "is_static": false,
10
+ "mode": "IntegerOps",
11
+ "nodes_to_exclude": [],
12
+ "nodes_to_quantize": [],
13
+ "operators_to_quantize": [
14
+ "Concat",
15
+ "Constant",
16
+ "Resize",
17
+ "Conv",
18
+ "Div",
19
+ "Unsqueeze",
20
+ "Shape",
21
+ "Gemm",
22
+ "MatMul",
23
+ "Transpose",
24
+ "Pow",
25
+ "Softmax",
26
+ "Slice",
27
+ "Where",
28
+ "Expand",
29
+ "ReduceMean",
30
+ "Mul",
31
+ "Add",
32
+ "Sqrt",
33
+ "Gather",
34
+ "Sub",
35
+ "ConstantOfShape",
36
+ "Reshape",
37
+ "Equal",
38
+ "Identity",
39
+ "Erf"
40
+ ],
41
+ "per_channel": true,
42
+ "qdq_add_pair_to_weight": false,
43
+ "qdq_dedicated_pair": false,
44
+ "qdq_op_type_per_channel_support_to_axis": {
45
+ "MatMul": 1
46
+ },
47
+ "reduce_range": true,
48
+ "weights_dtype": "QUInt8",
49
+ "weights_symmetric": true
50
+ },
51
+ "use_external_data_format": false
52
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.485,
13
+ 0.456,
14
+ 0.406
15
+ ],
16
+ "image_processor_type": "BitImageProcessor",
17
+ "image_std": [
18
+ 0.229,
19
+ 0.224,
20
+ 0.225
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 256
26
+ }
27
+ }