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

# 2-classifier-finetuned-padchest

This model is a fine-tuned version of [nickmuchi/vit-finetuned-chest-xray-pneumonia](https://huggingface.co/nickmuchi/vit-finetuned-chest-xray-pneumonia) on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 1.0461
- Accuracy: 0.6888

## 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
- gradient_accumulation_steps: 4
- total_train_batch_size: 128
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 10

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 2.0026        | 1.0   | 16   | 1.7223          | 0.4320   |
| 1.5584        | 2.0   | 32   | 1.4524          | 0.5619   |
| 1.454         | 3.0   | 48   | 1.3117          | 0.6073   |
| 1.2664        | 4.0   | 64   | 1.2396          | 0.5921   |
| 1.1593        | 5.0   | 80   | 1.1685          | 0.6435   |
| 1.127         | 6.0   | 96   | 1.1092          | 0.6556   |
| 1.0612        | 7.0   | 112  | 1.0907          | 0.6798   |
| 1.0467        | 8.0   | 128  | 1.0597          | 0.6737   |
| 1.0069        | 9.0   | 144  | 1.0557          | 0.6767   |
| 1.0014        | 10.0  | 160  | 1.0461          | 0.6888   |


### Framework versions

- Transformers 4.28.0.dev0
- Pytorch 2.0.0+cu117
- Datasets 2.18.0
- Tokenizers 0.13.3

artificial valve catheter device pacemaker foreign body material no artifacts prosthesis tube