Adding ONNX file of this model

#3
by DeokGyu - opened
onnx/config.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "agestau/fashion_classification_3",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "Bags",
21
+ "1": "Belts",
22
+ "2": "Bottomwear",
23
+ "3": "Dress",
24
+ "4": "Eyewear",
25
+ "5": "Headwear",
26
+ "6": "Jewellery",
27
+ "7": "Scarves",
28
+ "8": "Shoes",
29
+ "9": "Socks",
30
+ "10": "Ties",
31
+ "11": "Topwear",
32
+ "12": "Wallets",
33
+ "13": "Watches"
34
+ },
35
+ "image_size": 224,
36
+ "initializer_range": 0.02,
37
+ "label2id": {
38
+ "Bags": 0,
39
+ "Belts": 1,
40
+ "Bottomwear": 2,
41
+ "Dress": 3,
42
+ "Eyewear": 4,
43
+ "Headwear": 5,
44
+ "Jewellery": 6,
45
+ "Scarves": 7,
46
+ "Shoes": 8,
47
+ "Socks": 9,
48
+ "Ties": 10,
49
+ "Topwear": 11,
50
+ "Wallets": 12,
51
+ "Watches": 13
52
+ },
53
+ "layer_norm_eps": 1e-05,
54
+ "mlp_ratio": 4.0,
55
+ "model_type": "swin",
56
+ "num_channels": 3,
57
+ "num_heads": [
58
+ 3,
59
+ 6,
60
+ 12,
61
+ 24
62
+ ],
63
+ "num_layers": 4,
64
+ "out_features": [
65
+ "stage4"
66
+ ],
67
+ "out_indices": [
68
+ 4
69
+ ],
70
+ "patch_size": 4,
71
+ "path_norm": true,
72
+ "problem_type": "single_label_classification",
73
+ "qkv_bias": true,
74
+ "stage_names": [
75
+ "stem",
76
+ "stage1",
77
+ "stage2",
78
+ "stage3",
79
+ "stage4"
80
+ ],
81
+ "transformers_version": "4.34.0",
82
+ "use_absolute_embeddings": false,
83
+ "window_size": 7
84
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb66c848bc0b0f1fbf02208bf90154d8922632cffd719d1b20cbe0fb3c6cc34d
3
+ size 112968456
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.485,
7
+ 0.456,
8
+ 0.406
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }