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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ostris
/
CLIP-ViT-H-14-448

Zero-Shot Image Classification
Transformers
Safetensors
clip_vision_model
Model card Files Files and versions
xet
Community

Instructions to use ostris/CLIP-ViT-H-14-448 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ostris/CLIP-ViT-H-14-448 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="ostris/CLIP-ViT-H-14-448")
    pipe(
        "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
        candidate_labels=["animals", "humans", "landscape"],
    )
    # Load model directly
    from transformers import AutoTokenizer, CLIPVisionModelWithProjection
    
    tokenizer = AutoTokenizer.from_pretrained("ostris/CLIP-ViT-H-14-448")
    model = CLIPVisionModelWithProjection.from_pretrained("ostris/CLIP-ViT-H-14-448")
  • Notebooks
  • Google Colab
  • Kaggle
CLIP-ViT-H-14-448
1.27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
ostris's picture
ostris
Update README.md
37035b9 over 2 years ago
  • .gitattributes
    1.57 kB
    Update .gitattributes over 2 years ago
  • README.md
    681 Bytes
    Update README.md over 2 years ago
  • config.json
    531 Bytes
    Added files over 2 years ago
  • model.safetensors
    1.27 GB
    xet
    Added files over 2 years ago
  • preprocessor_config.json
    518 Bytes
    Added files over 2 years ago