ydshieh/coco_dataset_script
Updated โข 132 โข 20
How to use kpalczewski-displate/clip-clip-finetuned with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-image-classification", model="kpalczewski-displate/clip-clip-finetuned")
pipe(
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
candidate_labels=["animals", "humans", "landscape"],
) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
processor = AutoProcessor.from_pretrained("kpalczewski-displate/clip-clip-finetuned")
model = AutoModelForZeroShotImageClassification.from_pretrained("kpalczewski-displate/clip-clip-finetuned", device_map="auto")This model was trained from scratch on the ydshieh/coco_dataset_script 2017 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training: