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 lines232425262728293 unmodified lines333435363738394021 unmodified lines62636465666768697071727374757622 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.5625---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis 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.2464- Accuracy: 0.5625## Model description21 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: 50- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 1.1547 | 20.0 | 200 | 1.3886 | 0.4437 || 0.8794 | 40.0 | 400 | 1.2265 | 0.55 |### Framework versions22 unmodified lines232425262728293 unmodified lines333435363738394021 unmodified lines62636465666768697071727374757677787922 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.5875---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis 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.8494- Accuracy: 0.5875## Model description21 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: 500- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.2496 | 100.0 | 1000 | 1.5520 | 0.5125 || 0.1094 | 200.0 | 2000 | 1.6204 | 0.55 || 0.096 | 300.0 | 3000 | 1.9443 | 0.5375 || 0.0543 | 400.0 | 4000 | 2.0227 | 0.5437 || 0.0455 | 500.0 | 5000 | 2.0049 | 0.5563 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:606c90993e24d709f5868fb79aae9c762140a7798b065018871022bae496d3d2size 411README.md+9-6
runs/Sep06_11-46-23_c027da26715b/events.out.tfevents.1725628588.c027da26715b.482.5Added+3