Image Classification
Transformers
PyTorch
TensorBoard
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use Ahmed9275/Vit-Cifar100 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ahmed9275/Vit-Cifar100 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Ahmed9275/Vit-Cifar100") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Ahmed9275/Vit-Cifar100") model = AutoModelForImageClassification.from_pretrained("Ahmed9275/Vit-Cifar100", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Ahmed9275/Vit-Cifar100: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/Ahmed9275/Vit-Cifar100/resolve/main/README.md
- Command line
-
hf download hf://Ahmed9275/Vit-Cifar100/README.md
-
curl -L -o README.md https://huggingface.co/Ahmed9275/Vit-Cifar100/resolve/main/README.md
1.87 kB
metadata
license: apache-2.0
tags:
- image-classification
- generated_from_trainer
datasets:
- cifar100
metrics:
- accuracy
model-index:
- name: vit-base-beans-demo-v5
results:
- task:
name: Image Classification
type: image-classification
dataset:
name: Cifar100
type: cifar100
args: cifar100
metrics:
- name: Accuracy
type: accuracy
value: 0.8985
vit-base-beans-demo-v5
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the Cifar100 dataset. It achieves the following results on the evaluation set:
- Loss: 0.4420
- Accuracy: 0.8985
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: 0.0002
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.08 | 1.0 | 3125 | 0.6196 | 0.8262 |
| 0.3816 | 2.0 | 6250 | 0.5322 | 0.8555 |
| 0.1619 | 3.0 | 9375 | 0.4817 | 0.8765 |
| 0.0443 | 4.0 | 12500 | 0.4420 | 0.8985 |
Framework versions
- Transformers 4.19.2
- Pytorch 1.11.0+cu113
- Datasets 2.2.1
- Tokenizers 0.12.1