End of training
Browse files- README.md +101 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: vit-emotion-classifier
|
| 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.525
|
| 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 |
+
# vit-emotion-classifier
|
| 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.3506
|
| 37 |
+
- Accuracy: 0.525
|
| 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: 2e-05
|
| 57 |
+
- train_batch_size: 32
|
| 58 |
+
- eval_batch_size: 32
|
| 59 |
+
- seed: 42
|
| 60 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 61 |
+
- lr_scheduler_type: cosine
|
| 62 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 63 |
+
- num_epochs: 25
|
| 64 |
+
|
| 65 |
+
### Training results
|
| 66 |
+
|
| 67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 69 |
+
| No log | 1.0 | 20 | 2.0656 | 0.1938 |
|
| 70 |
+
| No log | 2.0 | 40 | 2.0408 | 0.2625 |
|
| 71 |
+
| No log | 3.0 | 60 | 1.9845 | 0.275 |
|
| 72 |
+
| No log | 4.0 | 80 | 1.8774 | 0.35 |
|
| 73 |
+
| 1.9717 | 5.0 | 100 | 1.7409 | 0.45 |
|
| 74 |
+
| 1.9717 | 6.0 | 120 | 1.6349 | 0.4437 |
|
| 75 |
+
| 1.9717 | 7.0 | 140 | 1.5541 | 0.4437 |
|
| 76 |
+
| 1.9717 | 8.0 | 160 | 1.5007 | 0.5188 |
|
| 77 |
+
| 1.9717 | 9.0 | 180 | 1.4531 | 0.525 |
|
| 78 |
+
| 1.4968 | 10.0 | 200 | 1.4263 | 0.5312 |
|
| 79 |
+
| 1.4968 | 11.0 | 220 | 1.3975 | 0.5188 |
|
| 80 |
+
| 1.4968 | 12.0 | 240 | 1.3915 | 0.525 |
|
| 81 |
+
| 1.4968 | 13.0 | 260 | 1.3270 | 0.5375 |
|
| 82 |
+
| 1.4968 | 14.0 | 280 | 1.3360 | 0.575 |
|
| 83 |
+
| 1.2146 | 15.0 | 300 | 1.3185 | 0.5437 |
|
| 84 |
+
| 1.2146 | 16.0 | 320 | 1.3288 | 0.55 |
|
| 85 |
+
| 1.2146 | 17.0 | 340 | 1.3262 | 0.5563 |
|
| 86 |
+
| 1.2146 | 18.0 | 360 | 1.3142 | 0.55 |
|
| 87 |
+
| 1.2146 | 19.0 | 380 | 1.2982 | 0.5625 |
|
| 88 |
+
| 1.0644 | 20.0 | 400 | 1.2704 | 0.5625 |
|
| 89 |
+
| 1.0644 | 21.0 | 420 | 1.2862 | 0.55 |
|
| 90 |
+
| 1.0644 | 22.0 | 440 | 1.2941 | 0.55 |
|
| 91 |
+
| 1.0644 | 23.0 | 460 | 1.2876 | 0.5312 |
|
| 92 |
+
| 1.0644 | 24.0 | 480 | 1.3066 | 0.5625 |
|
| 93 |
+
| 1.0161 | 25.0 | 500 | 1.2734 | 0.55 |
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
### Framework versions
|
| 97 |
+
|
| 98 |
+
- Transformers 4.48.3
|
| 99 |
+
- Pytorch 2.5.1+cu124
|
| 100 |
+
- Datasets 3.3.2
|
| 101 |
+
- Tokenizers 0.21.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343242432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8be436004212d3132f806f2c0adc178ac12fc953e9b72d694d75caf440196c1
|
| 3 |
size 343242432
|