
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# emotion_classification

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.
It achieves the following results on the evaluation set:
- Loss: 1.2712
- Accuracy: 0.5188

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 20

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 2.0443        | 1.0   | 20   | 1.9840          | 0.3      |
| 1.8461        | 2.0   | 40   | 1.7772          | 0.3187   |
| 1.6057        | 3.0   | 60   | 1.5779          | 0.4813   |
| 1.4538        | 4.0   | 80   | 1.4977          | 0.4188   |
| 1.3411        | 5.0   | 100  | 1.4193          | 0.4625   |
| 1.2416        | 6.0   | 120  | 1.4029          | 0.4938   |
| 1.1613        | 7.0   | 140  | 1.3528          | 0.525    |
| 1.0744        | 8.0   | 160  | 1.3925          | 0.475    |
| 1.0185        | 9.0   | 180  | 1.3326          | 0.4938   |
| 0.9413        | 10.0  | 200  | 1.3633          | 0.4688   |
| 0.857         | 11.0  | 220  | 1.3963          | 0.4562   |
| 0.8222        | 12.0  | 240  | 1.3978          | 0.4375   |
| 0.7635        | 13.0  | 260  | 1.2672          | 0.5062   |
| 0.7419        | 14.0  | 280  | 1.3466          | 0.4813   |
| 0.7053        | 15.0  | 300  | 1.2751          | 0.5375   |
| 0.6714        | 16.0  | 320  | 1.3368          | 0.5062   |
| 0.6291        | 17.0  | 340  | 1.2569          | 0.5125   |
| 0.6097        | 18.0  | 360  | 1.3321          | 0.475    |
| 0.5842        | 19.0  | 380  | 1.3639          | 0.4625   |
| 0.6013        | 20.0  | 400  | 1.3455          | 0.4813   |


### Framework versions

- Transformers 4.51.3
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.1

anger contempt disgust fear happy neutral sad surprise