How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("zero-shot-image-classification", model="ChrisGoringe/vitH16")
pipe(
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
    candidate_labels=["animals", "humans", "landscape"],
)
# Load model directly
from transformers import AutoProcessor, AutoModelForZeroShotImageClassification

processor = AutoProcessor.from_pretrained("ChrisGoringe/vitH16")
model = AutoModelForZeroShotImageClassification.from_pretrained("ChrisGoringe/vitH16")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Outdated. Suggest using ChrisGoringe/vit-large-p14-vision-fp16 or one of the other models.

torch.float16 version of laion/CLIP-ViT-H-14-laion2B-s32B-b79K

Intended for use with custom aesthetic trainer.


license: mit

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support