stnleyyg commited on
Commit
d0b8a35
·
verified ·
1 Parent(s): fe7e584

End of training

Browse files
Files changed (3) hide show
  1. README.md +98 -0
  2. model.safetensors +1 -1
  3. training_args.bin +2 -2
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: image_classification
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.4625
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # image_classification
33
+
34
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 1.4745
37
+ - Accuracy: 0.4625
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 0.0001
57
+ - train_batch_size: 32
58
+ - eval_batch_size: 32
59
+ - seed: 42
60
+ - gradient_accumulation_steps: 2
61
+ - total_train_batch_size: 64
62
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
63
+ - lr_scheduler_type: cosine
64
+ - lr_scheduler_warmup_ratio: 0.3
65
+ - num_epochs: 20
66
+
67
+ ### Training results
68
+
69
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
70
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
71
+ | 2.0497 | 1.0 | 10 | 1.9973 | 0.2938 |
72
+ | 1.8686 | 2.0 | 20 | 1.9635 | 0.3 |
73
+ | 1.825 | 3.0 | 30 | 1.9291 | 0.3125 |
74
+ | 1.6801 | 4.0 | 40 | 1.7476 | 0.3688 |
75
+ | 1.4192 | 5.0 | 50 | 1.6341 | 0.4125 |
76
+ | 1.2182 | 6.0 | 60 | 1.6148 | 0.3937 |
77
+ | 1.1688 | 7.0 | 70 | 1.5954 | 0.4 |
78
+ | 1.0198 | 8.0 | 80 | 1.5394 | 0.4 |
79
+ | 0.7465 | 9.0 | 90 | 1.4797 | 0.4313 |
80
+ | 0.5733 | 10.0 | 100 | 1.4648 | 0.4 |
81
+ | 0.5417 | 11.0 | 110 | 1.4613 | 0.3937 |
82
+ | 0.4472 | 12.0 | 120 | 1.4418 | 0.4562 |
83
+ | 0.3015 | 13.0 | 130 | 1.4745 | 0.4625 |
84
+ | 0.2287 | 14.0 | 140 | 1.4175 | 0.45 |
85
+ | 0.2154 | 15.0 | 150 | 1.4635 | 0.4562 |
86
+ | 0.1787 | 16.0 | 160 | 1.4860 | 0.4437 |
87
+ | 0.1312 | 17.0 | 170 | 1.5453 | 0.45 |
88
+ | 0.1106 | 18.0 | 180 | 1.5976 | 0.4375 |
89
+ | 0.1075 | 19.0 | 190 | 1.5866 | 0.4188 |
90
+ | 0.0989 | 20.0 | 200 | 1.6112 | 0.4188 |
91
+
92
+
93
+ ### Framework versions
94
+
95
+ - Transformers 4.46.2
96
+ - Pytorch 2.5.1+cu121
97
+ - Datasets 3.1.0
98
+ - Tokenizers 0.20.3
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d94595c66cba15951bf665ac20c4008d2d12bc572689eda14c117abd49ef740a
3
  size 343242432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e69874220a0f31e149d17e82fb7495c63aed85cb69d207d33615d7116a043f3
3
  size 343242432
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d4428d473f090be593eeb7759ce26fdf4b204177d168d69f6e1aa3b991f51f6e
3
- size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a51a404e31e499a5509e4732acb0fa1cc0997011ac7f844a0898ea7765e77627
3
+ size 5240