vishalkatheriya18 commited on
Commit
bc77320
·
verified ·
1 Parent(s): 0e2a012

End of training

Browse files
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/convnextv2-tiny-1k-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ - precision
11
+ model-index:
12
+ - name: convnextv2-tiny-1k-224-finetuned-crop-upperfull-mix
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.8004385964912281
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.8160100686256399
30
+ ---
31
+
32
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
33
+ should probably proofread and complete it, then remove this comment. -->
34
+
35
+ # convnextv2-tiny-1k-224-finetuned-crop-upperfull-mix
36
+
37
+ This model is a fine-tuned version of [facebook/convnextv2-tiny-1k-224](https://huggingface.co/facebook/convnextv2-tiny-1k-224) on the imagefolder dataset.
38
+ It achieves the following results on the evaluation set:
39
+ - Loss: 0.6187
40
+ - Accuracy: 0.8004
41
+ - Precision: 0.8160
42
+
43
+ ## Model description
44
+
45
+ More information needed
46
+
47
+ ## Intended uses & limitations
48
+
49
+ More information needed
50
+
51
+ ## Training and evaluation data
52
+
53
+ More information needed
54
+
55
+ ## Training procedure
56
+
57
+ ### Training hyperparameters
58
+
59
+ The following hyperparameters were used during training:
60
+ - learning_rate: 2e-05
61
+ - train_batch_size: 10
62
+ - eval_batch_size: 4
63
+ - seed: 42
64
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
65
+ - lr_scheduler_type: linear
66
+ - num_epochs: 100
67
+
68
+ ### Training results
69
+
70
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision |
71
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|
72
+ | No log | 1.0 | 183 | 2.1471 | 0.4693 | 0.5128 |
73
+ | No log | 2.0 | 366 | 1.4576 | 0.6579 | 0.6955 |
74
+ | 1.9821 | 3.0 | 549 | 1.1372 | 0.6754 | 0.7183 |
75
+ | 1.9821 | 4.0 | 732 | 0.9214 | 0.7303 | 0.7659 |
76
+ | 1.9821 | 5.0 | 915 | 0.7792 | 0.7478 | 0.7661 |
77
+ | 0.8885 | 6.0 | 1098 | 0.7455 | 0.7654 | 0.7780 |
78
+ | 0.8885 | 7.0 | 1281 | 0.6756 | 0.7873 | 0.8020 |
79
+ | 0.8885 | 8.0 | 1464 | 0.6787 | 0.7807 | 0.7932 |
80
+ | 0.5696 | 9.0 | 1647 | 0.6694 | 0.7982 | 0.8099 |
81
+ | 0.5696 | 10.0 | 1830 | 0.6799 | 0.7741 | 0.7930 |
82
+ | 0.4056 | 11.0 | 2013 | 0.6187 | 0.8004 | 0.8160 |
83
+ | 0.4056 | 12.0 | 2196 | 0.6868 | 0.7675 | 0.8063 |
84
+ | 0.4056 | 13.0 | 2379 | 0.7525 | 0.7544 | 0.7803 |
85
+ | 0.2904 | 14.0 | 2562 | 0.6572 | 0.7895 | 0.8093 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.44.0
91
+ - Pytorch 2.4.0
92
+ - Datasets 2.21.0
93
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 14.0,
3
+ "eval_accuracy": 0.8004385964912281,
4
+ "eval_loss": 0.6187320947647095,
5
+ "eval_precision": 0.8160100686256399,
6
+ "eval_runtime": 9.6185,
7
+ "eval_samples_per_second": 47.409,
8
+ "eval_steps_per_second": 11.852
9
+ }
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/convnextv2-tiny-1k-224",
3
+ "architectures": [
4
+ "ConvNextV2ForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 3,
8
+ 3,
9
+ 9,
10
+ 3
11
+ ],
12
+ "drop_path_rate": 0.0,
13
+ "hidden_act": "gelu",
14
+ "hidden_sizes": [
15
+ 96,
16
+ 192,
17
+ 384,
18
+ 768
19
+ ],
20
+ "id2label": {
21
+ "0": "Anarkali",
22
+ "1": "Cardigan",
23
+ "2": "Cloaks Abaya",
24
+ "3": "Co Ords",
25
+ "4": "Dress",
26
+ "5": "Dungaree",
27
+ "6": "Ethnic",
28
+ "7": "Gown",
29
+ "8": "Jumpsuit",
30
+ "9": "Kurta",
31
+ "10": "Kurti",
32
+ "11": "Robe",
33
+ "12": "Salwar Suit",
34
+ "13": "Saree",
35
+ "14": "Shirt",
36
+ "15": "Summer Jacket",
37
+ "16": "Sweatshirt hoodie",
38
+ "17": "Tshirt",
39
+ "18": "Tunic"
40
+ },
41
+ "image_size": 224,
42
+ "initializer_range": 0.02,
43
+ "label2id": {
44
+ "Anarkali": 0,
45
+ "Cardigan": 1,
46
+ "Cloaks Abaya": 2,
47
+ "Co Ords": 3,
48
+ "Dress": 4,
49
+ "Dungaree": 5,
50
+ "Ethnic": 6,
51
+ "Gown": 7,
52
+ "Jumpsuit": 8,
53
+ "Kurta": 9,
54
+ "Kurti": 10,
55
+ "Robe": 11,
56
+ "Salwar Suit": 12,
57
+ "Saree": 13,
58
+ "Shirt": 14,
59
+ "Summer Jacket": 15,
60
+ "Sweatshirt hoodie": 16,
61
+ "Tshirt": 17,
62
+ "Tunic": 18
63
+ },
64
+ "layer_norm_eps": 1e-12,
65
+ "model_type": "convnextv2",
66
+ "num_channels": 3,
67
+ "num_stages": 4,
68
+ "out_features": [
69
+ "stage4"
70
+ ],
71
+ "out_indices": [
72
+ 4
73
+ ],
74
+ "patch_size": 4,
75
+ "problem_type": "single_label_classification",
76
+ "stage_names": [
77
+ "stem",
78
+ "stage1",
79
+ "stage2",
80
+ "stage3",
81
+ "stage4"
82
+ ],
83
+ "torch_dtype": "float32",
84
+ "transformers_version": "4.44.0"
85
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 14.0,
3
+ "eval_accuracy": 0.8004385964912281,
4
+ "eval_loss": 0.6187320947647095,
5
+ "eval_precision": 0.8160100686256399,
6
+ "eval_runtime": 9.6185,
7
+ "eval_samples_per_second": 47.409,
8
+ "eval_steps_per_second": 11.852
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4323fae6f0ff7c7678d945dd138f9ad098234319e44b8c7eeed435d83a6d34e0
3
+ size 111548132
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ConvNextImageProcessor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 224
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef5211250fd246d789744575412ffce781f6d5cb747f524fad90543f0e0fd8eb
3
+ size 5176