Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

openai
/
clip-vit-base-patch16

Zero-Shot Image Classification
Transformers
PyTorch
JAX
clip
vision
Model card Files Files and versions
xet
Community
18

Instructions to use openai/clip-vit-base-patch16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use openai/clip-vit-base-patch16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="openai/clip-vit-base-patch16")
    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("openai/clip-vit-base-patch16")
    model = AutoModelForZeroShotImageClassification.from_pretrained("openai/clip-vit-base-patch16", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Jackiee

#18 opened 4 months ago by
jons11

Adding `safetensors` variant of this model

#17 opened 12 months ago by
SFconvertbot

Adding `safetensors` variant of this model

#16 opened 12 months ago by
SFconvertbot

Where can I find license information?

1
#15 opened about 1 year ago by
xixi126

Request: DOI

#14 opened about 1 year ago by
MikyLanfra

Adding `safetensors` variant of this model

#13 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#12 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#11 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#10 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#9 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#8 opened over 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#7 opened over 1 year ago by
SFconvertbot

Update .gitattributes

#6 opened almost 2 years ago by
DrChamyoung

[AUTOMATED] Model Memory Requirements

#5 opened about 2 years ago by
model-sizer-bot

Adding `safetensors` variant of this model

#4 opened over 3 years ago by
SFconvertbot

Difference between this and patch-32

👍 3
2
#2 opened about 4 years ago by
sachin

Updating read me

2
#1 opened about 4 years ago by
Ilyao
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs