microsoft/cats_vs_dogs
Viewer • Updated • 23.4k • 3.79k • 67
How to use mhdiqbalpradipta/cat_or_dogs with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="mhdiqbalpradipta/cat_or_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("mhdiqbalpradipta/cat_or_dogs")
model = AutoModelForImageClassification.from_pretrained("mhdiqbalpradipta/cat_or_dogs", device_map="auto")This model is a fine-tuned version of akahana/vit-base-cats-vs-dogs 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.0389 | 1.0 | 1171 | 0.0638 | 0.9793 |
| 0.0682 | 2.0 | 2342 | 0.0510 | 0.9812 |
| 0.0623 | 3.0 | 3513 | 0.0561 | 0.9821 |
Base model
google/vit-base-patch16-224-in21k