Instructions to use MathisKhan/vit-beans-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MathisKhan/vit-beans-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="MathisKhan/vit-beans-classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("MathisKhan/vit-beans-classifier") model = AutoModelForImageClassification.from_pretrained("MathisKhan/vit-beans-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
a1cac8d | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:6bbc6143c2afac4263d453bd9e8ba2f13374c0fffb32d07d434dc47dd313598d
size 5265
|