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

HuggingFaceM4
/
siglip-so400m-14-384

Zero-Shot Image Classification
Transformers
PyTorch
siglip
custom_code
Model card Files Files and versions
xet
Community
2

Instructions to use HuggingFaceM4/siglip-so400m-14-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use HuggingFaceM4/siglip-so400m-14-384 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="HuggingFaceM4/siglip-so400m-14-384", trust_remote_code=True)
    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("HuggingFaceM4/siglip-so400m-14-384", trust_remote_code=True)
    model = AutoModelForZeroShotImageClassification.from_pretrained("HuggingFaceM4/siglip-so400m-14-384", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
siglip-so400m-14-384
6.78 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 18 commits
Leyo's picture
Leyo
take off prints
e4bb96b over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • .gitignore
    25 Bytes
    fix imports over 2 years ago
  • config.json
    785 Bytes
    Update config.json over 2 years ago
  • configuration_siglip.py
    20.7 kB
    fix imports over 2 years ago
  • convert_siglip_to_hf.py
    16 kB
    change push over 2 years ago
  • image_processing_siglip.py
    10.5 kB
    Update image_processing_siglip.py over 2 years ago
  • modeling_siglip.py
    50.2 kB
    take off prints over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    3.51 GB
    xet
    Upload model over 2 years ago
  • webli_en_so400m_384_58765454.npz

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    3.26 GB
    xet
    original ckpt over 2 years ago