transformers tf tensorboard vit image-classification generated_from_keras_callback license:apache-2.0 autotrain_compatible endpoints_compatible region:us
---
license: apache-2.0
tags:
- generated_from_keras_callback
model-index:
- name: Janjuaimi/vit-base-patch16-224-in21k-lung_and_colon
  results: []
---

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

# Janjuaimi/vit-base-patch16-224-in21k-lung_and_colon

This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
It achieves the following results on the evaluation set:
- Train Loss: 0.0088
- Train Accuracy: 1.0
- Train Top-3-accuracy: 1.0
- Validation Loss: 0.0099
- Validation Accuracy: 0.9996
- Validation Top-3-accuracy: 1.0
- Epoch: 3

## 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:
- optimizer: {'inner_optimizer': {'class_name': 'AdamWeightDecay', 'config': {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 1995, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}}, 'dynamic': True, 'initial_scale': 32768.0, 'dynamic_growth_steps': 2000}
- training_precision: mixed_float16

### Training results

| Train Loss | Train Accuracy | Train Top-3-accuracy | Validation Loss | Validation Accuracy | Validation Top-3-accuracy | Epoch |
|:----------:|:--------------:|:--------------------:|:---------------:|:-------------------:|:-------------------------:|:-----:|
| 0.1546     | 0.9705         | 1.0                  | 0.0375          | 0.9987              | 1.0                       | 0     |
| 0.0296     | 0.9973         | 1.0                  | 0.0193          | 0.9991              | 1.0                       | 1     |
| 0.0140     | 0.9994         | 1.0                  | 0.0120          | 0.9996              | 1.0                       | 2     |
| 0.0088     | 1.0            | 1.0                  | 0.0099          | 0.9996              | 1.0                       | 3     |


### Framework versions

- Transformers 4.30.2
- TensorFlow 2.6.0
- Datasets 2.13.2
- Tokenizers 0.13.3
