vishalkatheriya18 commited on
Commit
e6fb3c1
1 Parent(s): afa9f24

End of training

Browse files
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-neckline
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.8095238095238095
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.8100590473699718
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-neckline
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.6160
40
+ - Accuracy: 0.8095
41
+ - Precision: 0.8101
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 | 84 | 1.4226 | 0.5619 | 0.5870 |
73
+ | No log | 2.0 | 168 | 1.1924 | 0.5619 | 0.5663 |
74
+ | No log | 3.0 | 252 | 0.9542 | 0.6952 | 0.7317 |
75
+ | No log | 4.0 | 336 | 0.8255 | 0.7143 | 0.7224 |
76
+ | No log | 5.0 | 420 | 0.7614 | 0.7190 | 0.7378 |
77
+ | 1.1937 | 6.0 | 504 | 0.7303 | 0.7381 | 0.7454 |
78
+ | 1.1937 | 7.0 | 588 | 0.6770 | 0.7667 | 0.7772 |
79
+ | 1.1937 | 8.0 | 672 | 0.6849 | 0.7667 | 0.7748 |
80
+ | 1.1937 | 9.0 | 756 | 0.6720 | 0.7381 | 0.7532 |
81
+ | 1.1937 | 10.0 | 840 | 0.7036 | 0.7286 | 0.7429 |
82
+ | 1.1937 | 11.0 | 924 | 0.6752 | 0.7619 | 0.7827 |
83
+ | 0.6846 | 12.0 | 1008 | 0.6399 | 0.7810 | 0.7860 |
84
+ | 0.6846 | 13.0 | 1092 | 0.6860 | 0.7381 | 0.7553 |
85
+ | 0.6846 | 14.0 | 1176 | 0.6827 | 0.7476 | 0.7644 |
86
+ | 0.6846 | 15.0 | 1260 | 0.6160 | 0.8095 | 0.8101 |
87
+ | 0.6846 | 16.0 | 1344 | 0.7032 | 0.7619 | 0.7695 |
88
+ | 0.6846 | 17.0 | 1428 | 0.6916 | 0.8048 | 0.8197 |
89
+ | 0.5051 | 18.0 | 1512 | 0.7070 | 0.7810 | 0.7891 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.44.0
95
+ - Pytorch 2.4.0
96
+ - Datasets 2.21.0
97
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 18.0,
3
+ "eval_accuracy": 0.8095238095238095,
4
+ "eval_loss": 0.6160297393798828,
5
+ "eval_precision": 0.8100590473699718,
6
+ "eval_runtime": 1.7716,
7
+ "eval_samples_per_second": 118.536,
8
+ "eval_steps_per_second": 29.916
9
+ }
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Boat neck",
22
+ "1": "Round neck",
23
+ "2": "Scoop neck",
24
+ "3": "Square neck",
25
+ "4": "V Neck",
26
+ "5": "sweet heart neck"
27
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "label2id": {
31
+ "Boat neck": 0,
32
+ "Round neck": 1,
33
+ "Scoop neck": 2,
34
+ "Square neck": 3,
35
+ "V Neck": 4,
36
+ "sweet heart neck": 5
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "model_type": "convnextv2",
40
+ "num_channels": 3,
41
+ "num_stages": 4,
42
+ "out_features": [
43
+ "stage4"
44
+ ],
45
+ "out_indices": [
46
+ 4
47
+ ],
48
+ "patch_size": 4,
49
+ "problem_type": "single_label_classification",
50
+ "stage_names": [
51
+ "stem",
52
+ "stage1",
53
+ "stage2",
54
+ "stage3",
55
+ "stage4"
56
+ ],
57
+ "torch_dtype": "float32",
58
+ "transformers_version": "4.44.0"
59
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 18.0,
3
+ "eval_accuracy": 0.8095238095238095,
4
+ "eval_loss": 0.6160297393798828,
5
+ "eval_precision": 0.8100590473699718,
6
+ "eval_runtime": 1.7716,
7
+ "eval_samples_per_second": 118.536,
8
+ "eval_steps_per_second": 29.916
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4fa5a92d7eba12366c41c234d0b4e4a0cfdab1b00375d52f712b573c583dd10
3
+ size 111508128
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:2810c11d6160381b2917ceb11c78f98c0a09cafa64c5be2b2547741fb783fd79
3
+ size 5176