Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run Dimasnoufal/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/Dimasnoufal/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/Dimasnoufal/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 Dimasnoufal/image_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dimasnoufal/image_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Dimasnoufal/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("Dimasnoufal/image_classification") model = AutoModelForImageClassification.from_pretrained("Dimasnoufal/image_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
21 unmodified lines222324252627283 unmodified lines323334353637383913 unmodified lines53545556575859606162636465666768697071727374757677787921 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.55---<!-- 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.2360- Accuracy: 0.55## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 10### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 45 | 1.4428 | 0.4375 || No log | 2.0 | 90 | 1.3659 | 0.45 || No log | 3.0 | 135 | 1.2604 | 0.55 || No log | 4.0 | 180 | 1.2461 | 0.5125 || No log | 5.0 | 225 | 1.0874 | 0.6625 || No log | 6.0 | 270 | 1.1792 | 0.6 || No log | 7.0 | 315 | 1.1221 | 0.625 || No log | 8.0 | 360 | 1.1956 | 0.5625 || No log | 9.0 | 405 | 1.1681 | 0.5875 || No log | 10.0 | 450 | 1.2151 | 0.575 |### Framework versions21 unmodified lines222324252627283 unmodified lines323334353637383913 unmodified lines535455565758596061626364656667686970717221 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.6125---<!-- 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.1916- Accuracy: 0.6125## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 24- eval_batch_size: 24- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 3### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 30 | 1.2213 | 0.55 || No log | 2.0 | 60 | 1.3069 | 0.575 || No log | 3.0 | 90 | 1.1196 | 0.6125 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:1567dc303b625aca128f9715dfac6c4354b388eb3082cbf57aea1820745b9395size 405README.md+9-16
runs/Feb09_09-29-18_481290d6d8e1/events.out.tfevents.1707471104.481290d6d8e1.838.6Added+3