microsoft/cats_vs_dogs
Viewer • Updated • 23.4k • 4.21k • 62
How to use ChasingMercer/beit-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="ChasingMercer/beit-base")
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("ChasingMercer/beit-base")
model = AutoModelForImageClassification.from_pretrained("ChasingMercer/beit-base")# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("ChasingMercer/beit-base")
model = AutoModelForImageClassification.from_pretrained("ChasingMercer/beit-base")This model is a fine-tuned version of microsoft/beit-base-patch16-224-pt22k-ft22k 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.0303 | 1.0 | 585 | 0.0186 | 0.9942 |
| 0.0374 | 2.0 | 1170 | 0.0150 | 0.9955 |
| 0.0559 | 3.0 | 1755 | 0.0116 | 0.9977 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ChasingMercer/beit-base") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")