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