lewtun/dog_food
Viewer • Updated • 3k • 150 • 5
How to use leopuv/cats_vs_dogs_classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="leopuv/cats_vs_dogs_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("leopuv/cats_vs_dogs_classifier")
model = AutoModelForImageClassification.from_pretrained("leopuv/cats_vs_dogs_classifier")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|---|---|---|---|---|
| 0.1739 | 0.9715 | 0.0787 | 0.9715 | 0 |
| 0.0744 | 0.984 | 0.0432 | 0.9840 | 1 |
| 0.0543 | 0.9895 | 0.0365 | 0.9895 | 2 |
| 0.0420 | 0.9885 | 0.0346 | 0.9885 | 3 |
| 0.0402 | 0.9855 | 0.0414 | 0.9855 | 4 |
| 0.0378 | 0.9885 | 0.0307 | 0.9885 | 5 |
| 0.0306 | 0.9855 | 0.0375 | 0.9855 | 6 |
| 0.0343 | 0.987 | 0.0402 | 0.9870 | 7 |
| 0.0283 | 0.9875 | 0.0381 | 0.9875 | 8 |
| 0.0285 | 0.9865 | 0.0340 | 0.9865 | 9 |
Base model
google/vit-base-patch16-224-in21k