Commit
•
c677b7f
1
Parent(s):
d726f2d
Adding ONNX file of this model (#1)
Browse files- Adding ONNX file of this model (55af8c5c27eb5ff95548d491fb024100238102da)
Co-authored-by: Lazara <Tomaslazara@users.noreply.huggingface.co>
- onnx/config.json +45 -0
- onnx/model.onnx +3 -0
- onnx/preprocessor_config.json +22 -0
onnx/config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/yoga_pose_image_classification",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Bridge",
|
13 |
+
"1": "Child",
|
14 |
+
"2": "Cobra",
|
15 |
+
"3": "Downward-Dog",
|
16 |
+
"4": "Pigeon",
|
17 |
+
"5": "Standing-Mountain",
|
18 |
+
"6": "Tree",
|
19 |
+
"7": "Triangle",
|
20 |
+
"8": "Warrior"
|
21 |
+
},
|
22 |
+
"image_size": 224,
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"Bridge": 0,
|
27 |
+
"Child": 1,
|
28 |
+
"Cobra": 2,
|
29 |
+
"Downward-Dog": 3,
|
30 |
+
"Pigeon": 4,
|
31 |
+
"Standing-Mountain": 5,
|
32 |
+
"Tree": 6,
|
33 |
+
"Triangle": 7,
|
34 |
+
"Warrior": 8
|
35 |
+
},
|
36 |
+
"layer_norm_eps": 1e-12,
|
37 |
+
"model_type": "vit",
|
38 |
+
"num_attention_heads": 12,
|
39 |
+
"num_channels": 3,
|
40 |
+
"num_hidden_layers": 12,
|
41 |
+
"patch_size": 16,
|
42 |
+
"problem_type": "single_label_classification",
|
43 |
+
"qkv_bias": true,
|
44 |
+
"transformers_version": "4.37.2"
|
45 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2e49eda94b21d37c098d6b7c8e8d8c4cb8e55362e62e4ee2c0b797ee7387dc0
|
3 |
+
size 343485430
|
onnx/preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|