
<!-- 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. -->

# Drinking-Recognition-VIT-Base-patch16-224

This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.1365
- Accuracy: 0.9613

## 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: 64
- eval_batch_size: 64
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 256
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 20

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.6956        | 1.0   | 6    | 0.6315          | 0.6220   |
| 0.4884        | 2.0   | 12   | 0.3439          | 0.8839   |
| 0.295         | 3.0   | 18   | 0.2190          | 0.9315   |
| 0.208         | 4.0   | 24   | 0.1723          | 0.9375   |
| 0.1873        | 5.0   | 30   | 0.1499          | 0.9435   |
| 0.1481        | 6.0   | 36   | 0.1475          | 0.9435   |
| 0.1367        | 7.0   | 42   | 0.1341          | 0.9554   |
| 0.1223        | 8.0   | 48   | 0.1486          | 0.9464   |
| 0.119         | 9.0   | 54   | 0.1377          | 0.9583   |
| 0.1019        | 10.0  | 60   | 0.1365          | 0.9613   |
| 0.1102        | 11.0  | 66   | 0.1326          | 0.9554   |
| 0.11          | 12.0  | 72   | 0.1330          | 0.9524   |
| 0.0948        | 13.0  | 78   | 0.1484          | 0.9375   |
| 0.0933        | 14.0  | 84   | 0.1348          | 0.9435   |
| 0.0874        | 15.0  | 90   | 0.1336          | 0.9524   |
| 0.0854        | 16.0  | 96   | 0.1331          | 0.9524   |
| 0.0962        | 17.0  | 102  | 0.1337          | 0.9494   |
| 0.0724        | 18.0  | 108  | 0.1282          | 0.9613   |
| 0.0887        | 19.0  | 114  | 0.1278          | 0.9583   |
| 0.0866        | 20.0  | 120  | 0.1281          | 0.9583   |


### Framework versions

- Transformers 4.52.3
- Pytorch 2.7.0
- Datasets 3.6.0
- Tokenizers 0.21.1

not_drinking drinking