Instructions to use LSummer/ViT_dog_food with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LSummer/ViT_dog_food with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="LSummer/ViT_dog_food") 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("LSummer/ViT_dog_food") model = AutoModelForImageClassification.from_pretrained("LSummer/ViT_dog_food", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
1fc21ec | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:bf2bd218c8f7c4ec1bd2b3c08aa5cab8640a3f1ac902f41070c73196e3fffc21
size 5368
|