kenghweetan
commited on
Commit
•
baebb34
1
Parent(s):
25427ce
End of training
Browse files- README.md +63 -0
- config.json +116 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: clothing_category_model
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# clothing_category_model
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 4.4070
|
21 |
+
- Accuracy: 0.2103
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 5e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 16
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 64
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 1
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
55 |
+
| 0.695 | 1.0 | 551 | 4.4070 | 0.2103 |
|
56 |
+
|
57 |
+
|
58 |
+
### Framework versions
|
59 |
+
|
60 |
+
- Transformers 4.33.3
|
61 |
+
- Pytorch 2.0.1+cpu
|
62 |
+
- Datasets 2.14.5
|
63 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
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": "Accessories",
|
13 |
+
"1": "Apparel Set",
|
14 |
+
"10": "Eyewear",
|
15 |
+
"11": "Flip Flops",
|
16 |
+
"12": "Fragrance",
|
17 |
+
"13": "Free Gifts",
|
18 |
+
"14": "Gloves",
|
19 |
+
"15": "Hair",
|
20 |
+
"16": "Headwear",
|
21 |
+
"17": "Home Furnishing",
|
22 |
+
"18": "Innerwear",
|
23 |
+
"19": "Jewellery",
|
24 |
+
"2": "Bags",
|
25 |
+
"20": "Lips",
|
26 |
+
"21": "Loungewear and Nightwear",
|
27 |
+
"22": "Makeup",
|
28 |
+
"23": "Mufflers",
|
29 |
+
"24": "Nails",
|
30 |
+
"25": "Perfumes",
|
31 |
+
"26": "Sandal",
|
32 |
+
"27": "Saree",
|
33 |
+
"28": "Scarves",
|
34 |
+
"29": "Shoe Accessories",
|
35 |
+
"3": "Bath and Body",
|
36 |
+
"30": "Shoes",
|
37 |
+
"31": "Skin",
|
38 |
+
"32": "Skin Care",
|
39 |
+
"33": "Socks",
|
40 |
+
"34": "Sports Accessories",
|
41 |
+
"35": "Sports Equipment",
|
42 |
+
"36": "Stoles",
|
43 |
+
"37": "Ties",
|
44 |
+
"38": "Topwear",
|
45 |
+
"39": "Umbrellas",
|
46 |
+
"4": "Beauty Accessories",
|
47 |
+
"40": "Wallets",
|
48 |
+
"41": "Watches",
|
49 |
+
"42": "Water Bottle",
|
50 |
+
"43": "Wristbands",
|
51 |
+
"5": "Belts",
|
52 |
+
"6": "Bottomwear",
|
53 |
+
"7": "Cufflinks",
|
54 |
+
"8": "Dress",
|
55 |
+
"9": "Eyes"
|
56 |
+
},
|
57 |
+
"image_size": 224,
|
58 |
+
"initializer_range": 0.02,
|
59 |
+
"intermediate_size": 3072,
|
60 |
+
"label2id": {
|
61 |
+
"Accessories": "0",
|
62 |
+
"Apparel Set": "1",
|
63 |
+
"Bags": "2",
|
64 |
+
"Bath and Body": "3",
|
65 |
+
"Beauty Accessories": "4",
|
66 |
+
"Belts": "5",
|
67 |
+
"Bottomwear": "6",
|
68 |
+
"Cufflinks": "7",
|
69 |
+
"Dress": "8",
|
70 |
+
"Eyes": "9",
|
71 |
+
"Eyewear": "10",
|
72 |
+
"Flip Flops": "11",
|
73 |
+
"Fragrance": "12",
|
74 |
+
"Free Gifts": "13",
|
75 |
+
"Gloves": "14",
|
76 |
+
"Hair": "15",
|
77 |
+
"Headwear": "16",
|
78 |
+
"Home Furnishing": "17",
|
79 |
+
"Innerwear": "18",
|
80 |
+
"Jewellery": "19",
|
81 |
+
"Lips": "20",
|
82 |
+
"Loungewear and Nightwear": "21",
|
83 |
+
"Makeup": "22",
|
84 |
+
"Mufflers": "23",
|
85 |
+
"Nails": "24",
|
86 |
+
"Perfumes": "25",
|
87 |
+
"Sandal": "26",
|
88 |
+
"Saree": "27",
|
89 |
+
"Scarves": "28",
|
90 |
+
"Shoe Accessories": "29",
|
91 |
+
"Shoes": "30",
|
92 |
+
"Skin": "31",
|
93 |
+
"Skin Care": "32",
|
94 |
+
"Socks": "33",
|
95 |
+
"Sports Accessories": "34",
|
96 |
+
"Sports Equipment": "35",
|
97 |
+
"Stoles": "36",
|
98 |
+
"Ties": "37",
|
99 |
+
"Topwear": "38",
|
100 |
+
"Umbrellas": "39",
|
101 |
+
"Wallets": "40",
|
102 |
+
"Watches": "41",
|
103 |
+
"Water Bottle": "42",
|
104 |
+
"Wristbands": "43"
|
105 |
+
},
|
106 |
+
"layer_norm_eps": 1e-12,
|
107 |
+
"model_type": "vit",
|
108 |
+
"num_attention_heads": 12,
|
109 |
+
"num_channels": 3,
|
110 |
+
"num_hidden_layers": 12,
|
111 |
+
"patch_size": 16,
|
112 |
+
"problem_type": "single_label_classification",
|
113 |
+
"qkv_bias": true,
|
114 |
+
"torch_dtype": "float32",
|
115 |
+
"transformers_version": "4.33.3"
|
116 |
+
}
|
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": "ViTImageProcessor",
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4e80b40a914125f059d472057216e12094ca3d5a1aae0df0d7a4d61da8d8035
|
3 |
+
size 343395117
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:689e04270d4208e31a30dc0a1fe488a6969bc33793a9fd99ced0c67e7db212a0
|
3 |
+
size 4027
|