vishalkatheriya18 commited on
Commit
a3aadca
·
verified ·
1 Parent(s): 2b099a2

End of training

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-neck-style
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.8127853881278538
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.8388735739429154
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-neck-style
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.7591
40
+ - Accuracy: 0.8128
41
+ - Precision: 0.8389
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 | 88 | 0.7865 | 0.7717 | 0.8100 |
73
+ | No log | 2.0 | 176 | 0.7591 | 0.8128 | 0.8389 |
74
+ | No log | 3.0 | 264 | 0.8601 | 0.7854 | 0.8206 |
75
+ | No log | 4.0 | 352 | 0.8518 | 0.8082 | 0.8454 |
76
+ | No log | 5.0 | 440 | 0.7959 | 0.8128 | 0.8295 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.44.0
82
+ - Pytorch 2.4.0
83
+ - Datasets 2.21.0
84
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8127853881278538,
4
+ "eval_loss": 0.7590766549110413,
5
+ "eval_precision": 0.8388735739429154,
6
+ "eval_runtime": 2.3748,
7
+ "eval_samples_per_second": 92.217,
8
+ "eval_steps_per_second": 23.16
9
+ }
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "bell sleeve",
22
+ "1": "half sleeve",
23
+ "2": "long sleeve",
24
+ "3": "three-quarter sleeves"
25
+ },
26
+ "image_size": 224,
27
+ "initializer_range": 0.02,
28
+ "label2id": {
29
+ "bell sleeve": 0,
30
+ "half sleeve": 1,
31
+ "long sleeve": 2,
32
+ "three-quarter sleeves": 3
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "model_type": "convnextv2",
36
+ "num_channels": 3,
37
+ "num_stages": 4,
38
+ "out_features": [
39
+ "stage4"
40
+ ],
41
+ "out_indices": [
42
+ 4
43
+ ],
44
+ "patch_size": 4,
45
+ "problem_type": "single_label_classification",
46
+ "stage_names": [
47
+ "stem",
48
+ "stage1",
49
+ "stage2",
50
+ "stage3",
51
+ "stage4"
52
+ ],
53
+ "torch_dtype": "float32",
54
+ "transformers_version": "4.44.0"
55
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8127853881278538,
4
+ "eval_loss": 0.7590766549110413,
5
+ "eval_precision": 0.8388735739429154,
6
+ "eval_runtime": 2.3748,
7
+ "eval_samples_per_second": 92.217,
8
+ "eval_steps_per_second": 23.16
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8e09aef4ae66b96f533d7035fc750dca08d1d1fcf53da5801240456436713b5
3
+ size 111501976
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:0ae5711d6bb166b849b7883e2f730b608cb2035bb550e08d3ce88e7ca3298fb1
3
+ size 5176