microsoft/cats_vs_dogs
Viewer • Updated • 23.4k • 6.2k • 63
How to use ismgar01/vit-base-cats-vs-dogs with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="ismgar01/vit-base-cats-vs-dogs")
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("ismgar01/vit-base-cats-vs-dogs")
model = AutoModelForImageClassification.from_pretrained("ismgar01/vit-base-cats-vs-dogs")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the cats_vs_dogs 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:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1177 | 1.0 | 622 | 0.0473 | 0.9832 |
| 0.057 | 2.0 | 1244 | 0.0362 | 0.9883 |
| 0.0449 | 3.0 | 1866 | 0.0261 | 0.9886 |
| 0.066 | 4.0 | 2488 | 0.0248 | 0.9923 |
| 0.0328 | 5.0 | 3110 | 0.0182 | 0.9937 |