Instructions to use paacamo/image-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use paacamo/image-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="paacamo/image-classification") 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("paacamo/image-classification") model = AutoModelForImageClassification.from_pretrained("paacamo/image-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
image-classification
This model is a fine-tuned version of microsoft/resnet-50 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.8185
- Accuracy: 0.8203
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: 5e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- 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 |
|---|---|---|---|---|
| 1.0965 | 1.0 | 65 | 1.0814 | 0.5113 |
| 1.0585 | 2.0 | 130 | 1.0459 | 0.6466 |
| 1.0026 | 3.0 | 195 | 0.9979 | 0.7068 |
| 0.9557 | 4.0 | 260 | 0.9329 | 0.8120 |
| 0.896 | 5.0 | 325 | 0.8637 | 0.7820 |
| 0.8539 | 6.0 | 390 | 0.8104 | 0.8271 |
| 0.8085 | 7.0 | 455 | 0.7348 | 0.7744 |
| 0.7525 | 8.0 | 520 | 0.7049 | 0.8120 |
| 0.7449 | 9.0 | 585 | 0.6939 | 0.8195 |
| 0.7167 | 10.0 | 650 | 0.6809 | 0.8271 |
Framework versions
- Transformers 4.48.3
- Pytorch 2.5.1+cu124
- Datasets 3.3.2
- Tokenizers 0.21.0
- Downloads last month
- 9
Model tree for paacamo/image-classification
Base model
microsoft/resnet-50