ylecun/mnist
Viewer • Updated • 70k • 81k • 239
How to use autoevaluate/image-multi-class-classification-not-evaluated with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="autoevaluate/image-multi-class-classification-not-evaluated")
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("autoevaluate/image-multi-class-classification-not-evaluated")
model = AutoModelForImageClassification.from_pretrained("autoevaluate/image-multi-class-classification-not-evaluated")# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("autoevaluate/image-multi-class-classification-not-evaluated")
model = AutoModelForImageClassification.from_pretrained("autoevaluate/image-multi-class-classification-not-evaluated")This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on the mnist 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.3743 | 1.0 | 422 | 0.0556 | 0.9833 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="autoevaluate/image-multi-class-classification-not-evaluated") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")