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

# swinv2-large-patch4-window12to16-192to256-22kto1k-ft-finetuned-LungCancer-LC25000-AH

This model is a fine-tuned version of [microsoft/swinv2-large-patch4-window12to16-192to256-22kto1k-ft](https://huggingface.co/microsoft/swinv2-large-patch4-window12to16-192to256-22kto1k-ft) on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0002
- Accuracy: 1.0

## 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: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.5
- num_epochs: 7

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.0929        | 1.0   | 281  | 0.0919          | 0.9657   |
| 0.0908        | 2.0   | 562  | 0.0127          | 0.9967   |
| 0.0525        | 3.0   | 843  | 0.0133          | 0.9947   |
| 0.1301        | 4.0   | 1125 | 0.0270          | 0.9927   |
| 0.0624        | 5.0   | 1406 | 0.0064          | 0.9973   |
| 0.0506        | 6.0   | 1687 | 0.0025          | 0.999    |
| 0.0001        | 6.99  | 1967 | 0.0002          | 1.0      |


### Framework versions

- Transformers 4.30.2
- Pytorch 2.0.1+cu118
- Datasets 2.13.1
- Tokenizers 0.13.3

lung-benign_tissue lung_adenocarcinoma lung_squamous_cell_carcinoma