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 (3)
22 unmodified lines23242526262728293 unmodified lines3334353637363738394021 unmodified lines626364656566676869707172727374757622 unmodified lines metrics: - name: Accuracy type: accuracy value: 0.39375 value: 0.5625---
<!-- 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.8689- Accuracy: 0.3937- Loss: 1.2464- Accuracy: 0.5625
## Model description
21 unmodified lines- 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- num_epochs: 50- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 1.8309 | 10.0 | 100 | 1.8611 | 0.35 || 1.1547 | 20.0 | 200 | 1.3886 | 0.4437 || 0.8794 | 40.0 | 400 | 1.2265 | 0.55 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:19dede82648136556ab5985434b7c0252180ba6f82e26649c6a5e8fd9efdf150oid sha256:baa9982df78bb8f43ac11c76aa0062df84e76fbbcdb8ece31145c59b4df99c9fsize 343242432123version https://git-lfs.github.com/spec/v1oid sha256:abe7ceef6af530c10754324b374466c93fa77407fbc3a7d4a3b0051ff12fda5dsize 411README.md+6-5
model.safetensors+1-1
runs/Sep06_11-35-13_c027da26715b/events.out.tfevents.1725623123.c027da26715b.482.3Added+3