mohitsha HF staff commited on
Commit
aa5b128
·
1 Parent(s): 56baa40

Upload 4 files

Browse files
Files changed (4) hide show
  1. config.json +40 -0
  2. model_quantized.onnx +3 -0
  3. ort_config.json +30 -0
  4. preprocessor_config.json +23 -0
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "onnx_model_2",
3
+ "architectures": [
4
+ "ResNetForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 2,
8
+ 2
9
+ ],
10
+ "downsample_in_first_stage": false,
11
+ "embedding_size": 64,
12
+ "finetuning_task": "image-classification",
13
+ "hidden_act": "relu",
14
+ "hidden_sizes": [
15
+ 32,
16
+ 64
17
+ ],
18
+ "id2label": {
19
+ "0": "angular_leaf_spot",
20
+ "1": "bean_rust",
21
+ "2": "healthy"
22
+ },
23
+ "image_size": 224,
24
+ "label2id": {
25
+ "angular_leaf_spot": "0",
26
+ "bean_rust": "1",
27
+ "healthy": "2"
28
+ },
29
+ "layer_type": "basic",
30
+ "model_type": "resnet",
31
+ "num_channels": 3,
32
+ "out_features": null,
33
+ "problem_type": "single_label_classification",
34
+ "stage_names": [
35
+ "stem",
36
+ "stage1",
37
+ "stage2"
38
+ ],
39
+ "transformers_version": "4.27.4"
40
+ }
model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b23f869de63d1158f0fc877f9c97210bd47b4c79fcd0f26d20687febfb9ddaaa
3
+ size 779978
ort_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "one_external_file": true,
3
+ "opset": null,
4
+ "optimization": {},
5
+ "optimum_version": "1.7.4.dev0",
6
+ "quantization": {
7
+ "activations_dtype": "QInt8",
8
+ "activations_symmetric": false,
9
+ "format": "QDQ",
10
+ "is_static": true,
11
+ "mode": "QLinearOps",
12
+ "nodes_to_exclude": [],
13
+ "nodes_to_quantize": [],
14
+ "operators_to_quantize": [
15
+ "MatMul",
16
+ "Add"
17
+ ],
18
+ "per_channel": false,
19
+ "qdq_add_pair_to_weight": false,
20
+ "qdq_dedicated_pair": false,
21
+ "qdq_op_type_per_channel_support_to_axis": {
22
+ "MatMul": 1
23
+ },
24
+ "reduce_range": false,
25
+ "weights_dtype": "QInt8",
26
+ "weights_symmetric": true
27
+ },
28
+ "transformers_version": "4.27.4",
29
+ "use_external_data_format": false
30
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "feature_extractor_type": "ConvNextFeatureExtractor",
7
+ "image_mean": [
8
+ 0.45,
9
+ 0.45,
10
+ 0.45
11
+ ],
12
+ "image_processor_type": "ConvNextFeatureExtractor",
13
+ "image_std": [
14
+ 0.22,
15
+ 0.22,
16
+ 0.22
17
+ ],
18
+ "resample": 3,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "shortest_edge": 224
22
+ }
23
+ }