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

jmzzomg
/
clip-vit-base-patch32-onnx

Zero-Shot Image Classification
Transformers
ONNX
clip
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use jmzzomg/clip-vit-base-patch32-onnx with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="jmzzomg/clip-vit-base-patch32-onnx")
    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("jmzzomg/clip-vit-base-patch32-onnx")
    model = AutoModelForZeroShotImageClassification.from_pretrained("jmzzomg/clip-vit-base-patch32-onnx")
  • Notebooks
  • Google Colab
  • Kaggle
clip-vit-base-patch32-onnx
609 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
jmzzomg's picture
jmzzomg
Upload preprocessor_config.json with huggingface_hub
aa5adb3 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • config.json
    456 Bytes
    Upload config.json with huggingface_hub about 2 years ago
  • merges.txt
    525 kB
    Upload merges.txt with huggingface_hub about 2 years ago
  • model.onnx
    606 MB
    xet
    Upload model.onnx with huggingface_hub about 2 years ago
  • preprocessor_config.json
    782 Bytes
    Upload preprocessor_config.json with huggingface_hub about 2 years ago
  • special_tokens_map.json
    588 Bytes
    Upload special_tokens_map.json with huggingface_hub about 2 years ago
  • tokenizer.json
    2.22 MB
    Upload tokenizer.json with huggingface_hub about 2 years ago
  • tokenizer_config.json
    705 Bytes
    Upload tokenizer_config.json with huggingface_hub about 2 years ago
  • vocab.json
    862 kB
    Upload vocab.json with huggingface_hub about 2 years ago