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

# Medicine-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 the None dataset.
It achieves the following results on the evaluation set:
- Loss: 0.1334
- Accuracy: 0.9653

## 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 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 1.0816        | 1.0   | 7    | 0.9886          | 0.5208   |
| 0.758         | 2.0   | 14   | 0.5653          | 0.8449   |
| 0.4036        | 3.0   | 21   | 0.2762          | 0.9259   |
| 0.2487        | 4.0   | 28   | 0.2734          | 0.9051   |
| 0.1794        | 5.0   | 35   | 0.1806          | 0.9352   |
| 0.1409        | 6.0   | 42   | 0.1626          | 0.9468   |
| 0.1272        | 7.0   | 49   | 0.1662          | 0.9468   |
| 0.1082        | 8.0   | 56   | 0.1270          | 0.9630   |
| 0.1108        | 9.0   | 63   | 0.1334          | 0.9653   |
| 0.0892        | 10.0  | 70   | 0.1547          | 0.9491   |
| 0.0848        | 11.0  | 77   | 0.1408          | 0.9560   |
| 0.0811        | 12.0  | 84   | 0.1447          | 0.9514   |
| 0.0776        | 13.0  | 91   | 0.1412          | 0.9537   |
| 0.0773        | 14.0  | 98   | 0.1506          | 0.9514   |
| 0.0868        | 15.0  | 105  | 0.1693          | 0.9468   |
| 0.0723        | 16.0  | 112  | 0.1771          | 0.9421   |
| 0.0814        | 17.0  | 119  | 0.1592          | 0.9514   |
| 0.0719        | 18.0  | 126  | 0.1319          | 0.9630   |
| 0.0769        | 19.0  | 133  | 0.1283          | 0.9653   |
| 0.0709        | 20.0  | 140  | 0.1294          | 0.9653   |


### Framework versions

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

other drinking taking_medicine