yingxc commited on
Commit
ea23376
·
1 Parent(s): 2e3cc35

Adding ONNX file of this model

Browse files

Beep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [yingxc](https://huggingface.co/yingxc), I would like to add to this repository the model converted to ONNX.

What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)!

The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!

onnx/config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jayanta/microsoft-resnet-50-cartoon-face-recognition",
3
+ "architectures": [
4
+ "ResNetForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 3,
8
+ 4,
9
+ 6,
10
+ 3
11
+ ],
12
+ "downsample_in_first_stage": false,
13
+ "embedding_size": 64,
14
+ "hidden_act": "relu",
15
+ "hidden_sizes": [
16
+ 256,
17
+ 512,
18
+ 1024,
19
+ 2048
20
+ ],
21
+ "id2label": {
22
+ "0": "Aishwarya_Rai",
23
+ "1": "Akhilesh_Yadav",
24
+ "2": "Akshay_Kumar",
25
+ "3": "Amit_Saha",
26
+ "4": "Arijit_Singh",
27
+ "5": "Arvind_Kejriwal",
28
+ "6": "Baba_Ramdev",
29
+ "7": "Gautam_Adani",
30
+ "8": "Kishore_Kumar",
31
+ "9": "Lata_Mangeshkar",
32
+ "10": "MS_Dhoni",
33
+ "11": "Mahatma_Gandhi",
34
+ "12": "Mamata_Banerjee",
35
+ "13": "Mukesh_Ambani",
36
+ "14": "Narendra_Modi",
37
+ "15": "Rahul_Gandhi",
38
+ "16": "Ranveer_Singh",
39
+ "17": "Ratan_Tata",
40
+ "18": "Sachin_Tendulkar",
41
+ "19": "Shahrukh_Khan",
42
+ "20": "Sonia_Gandhi",
43
+ "21": "Sundar_Pichai",
44
+ "22": "Virat_Kohli",
45
+ "23": "Yogi_Adityanath"
46
+ },
47
+ "label2id": {
48
+ "Aishwarya_Rai": "0",
49
+ "Akhilesh_Yadav": "1",
50
+ "Akshay_Kumar": "2",
51
+ "Amit_Saha": "3",
52
+ "Arijit_Singh": "4",
53
+ "Arvind_Kejriwal": "5",
54
+ "Baba_Ramdev": "6",
55
+ "Gautam_Adani": "7",
56
+ "Kishore_Kumar": "8",
57
+ "Lata_Mangeshkar": "9",
58
+ "MS_Dhoni": "10",
59
+ "Mahatma_Gandhi": "11",
60
+ "Mamata_Banerjee": "12",
61
+ "Mukesh_Ambani": "13",
62
+ "Narendra_Modi": "14",
63
+ "Rahul_Gandhi": "15",
64
+ "Ranveer_Singh": "16",
65
+ "Ratan_Tata": "17",
66
+ "Sachin_Tendulkar": "18",
67
+ "Shahrukh_Khan": "19",
68
+ "Sonia_Gandhi": "20",
69
+ "Sundar_Pichai": "21",
70
+ "Virat_Kohli": "22",
71
+ "Yogi_Adityanath": "23"
72
+ },
73
+ "layer_type": "bottleneck",
74
+ "model_type": "resnet",
75
+ "num_channels": 3,
76
+ "out_features": [
77
+ "stage4"
78
+ ],
79
+ "out_indices": [
80
+ 4
81
+ ],
82
+ "problem_type": "single_label_classification",
83
+ "stage_names": [
84
+ "stem",
85
+ "stage1",
86
+ "stage2",
87
+ "stage3",
88
+ "stage4"
89
+ ],
90
+ "transformers_version": "4.30.2"
91
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:704e37ef6e085d41de6559fd2b7e33f7d3a4dc5d152eec702d667584ed3157a7
3
+ size 94158643
onnx/preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "crop_size": {
4
+ "height": 224,
5
+ "width": 224
6
+ },
7
+ "do_center_crop": true,
8
+ "do_normalize": true,
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": "ConvNextFeatureExtractor",
17
+ "image_std": [
18
+ 0.5,
19
+ 0.5,
20
+ 0.5
21
+ ],
22
+ "resample": 2,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 256
26
+ }
27
+ }