Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run itsTomLie/image_classification on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/itsTomLie/image_classification. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/itsTomLie/image_classification on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use itsTomLie/image_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use itsTomLie/image_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="itsTomLie/image_classification") 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("itsTomLie/image_classification") model = AutoModelForImageClassification.from_pretrained("itsTomLie/image_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
22 unmodified lines23242526262728293 unmodified lines3334353637363738394012 unmodified lines5354555657585657585960606162636465656667686970717172737273747522 unmodified lines metrics: - name: Accuracy type: accuracy value: 0.325 value: 0.39375---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified lines
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 1.9385- Accuracy: 0.325- Loss: 1.8689- Accuracy: 0.3937
## Model description
12 unmodified lines### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 16- learning_rate: 2e-05- train_batch_size: 32- eval_batch_size: 32- seed: 42- gradient_accumulation_steps: 4- gradient_accumulation_steps: 2- total_train_batch_size: 64- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_ratio: 0.1- num_epochs: 3- num_epochs: 10- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 2.059 | 1.0 | 10 | 2.0207 | 0.2938 || 1.966 | 2.0 | 20 | 1.9719 | 0.2812 || 1.9101 | 3.0 | 30 | 1.9268 | 0.3563 || 1.8309 | 10.0 | 100 | 1.8611 | 0.35 |
### Framework versions123version https://git-lfs.github.com/spec/v1oid sha256:17893c0c667515f4d8328226be1757e3b4d2ee2ab5ea065baa934aa5a500f5dfsize 405README.md+10-11
runs/Sep06_11-30-16_c027da26715b/events.out.tfevents.1725622385.c027da26715b.482.1Added+3