Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use harriskr14/plant-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use harriskr14/plant-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="harriskr14/plant-classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("harriskr14/plant-classifier") model = AutoModelForImageClassification.from_pretrained("harriskr14/plant-classifier") - Notebooks
- Google Colab
- Kaggle
plant-classifier
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.7636
- Accuracy: 0.8555
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.0001
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 2.6064 | 1.0 | 16 | 2.3431 | 0.5664 |
| 1.9976 | 2.0 | 32 | 1.7205 | 0.8047 |
| 1.6501 | 3.0 | 48 | 1.3046 | 0.8125 |
| 1.1713 | 4.0 | 64 | 1.0542 | 0.8047 |
| 0.9044 | 5.0 | 80 | 0.9334 | 0.8203 |
| 0.8246 | 6.0 | 96 | 0.8490 | 0.8320 |
| 0.7237 | 7.0 | 112 | 0.7746 | 0.8516 |
| 0.7029 | 8.0 | 128 | 0.7184 | 0.8672 |
| 0.6456 | 9.0 | 144 | 0.7252 | 0.8477 |
| 0.5992 | 10.0 | 160 | 0.7159 | 0.8398 |
Framework versions
- Transformers 4.53.0
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.2
- Downloads last month
- 3
Model tree for harriskr14/plant-classifier
Base model
google/vit-base-patch16-224-in21kEvaluation results
- Accuracy on imagefolderself-reported0.855