thelabel/image-labelling-dataset
Viewer • Updated • 1.87k • 6
How to use thelabel/image-labeling with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="thelabel/image-labeling")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
processor = AutoProcessor.from_pretrained("thelabel/image-labeling")
model = AutoModelForZeroShotImageClassification.from_pretrained("thelabel/image-labeling")