Instructions to use chandra1976/vit-finetuned-chessman2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use chandra1976/vit-finetuned-chessman2 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google/vit-base-patch16-224-in21k") model = PeftModel.from_pretrained(base_model, "chandra1976/vit-finetuned-chessman2") - Transformers
How to use chandra1976/vit-finetuned-chessman2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="chandra1976/vit-finetuned-chessman2") 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("chandra1976/vit-finetuned-chessman2") model = AutoModelForImageClassification.from_pretrained("chandra1976/vit-finetuned-chessman2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!