Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

HuggingFaceM4
/
tiny-random-siglip

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

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

  • Libraries
  • Transformers

    How to use HuggingFaceM4/tiny-random-siglip with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="HuggingFaceM4/tiny-random-siglip", 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/tiny-random-siglip", trust_remote_code=True)
    model = AutoModelForZeroShotImageClassification.from_pretrained("HuggingFaceM4/tiny-random-siglip", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
tiny-random-siglip
25.5 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
VictorSanh's picture
VictorSanh
fix ops
1f50acd over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.58 kB
    Update README.md over 2 years ago
  • config.json
    950 Bytes
    align implementation on transformers + include navit style changes (these changes are backward compatible) over 2 years ago
  • configuration_siglip.py
    13.9 kB
    align implementation on transformers + include navit style changes (these changes are backward compatible) over 2 years ago
  • image_processing_siglip.py
    11.2 kB
    align implementation on transformers + include navit style changes (these changes are backward compatible) over 2 years ago
  • model.safetensors
    25.4 MB
    xet
    use the right names over 2 years ago
  • modeling_siglip.py
    63.4 kB
    fix ops over 2 years ago
  • processing_siglip.py
    7.46 kB
    align implementation on transformers + include navit style changes (these changes are backward compatible) over 2 years ago
  • tokenization_siglip.py
    16.6 kB
    align implementation on transformers + include navit style changes (these changes are backward compatible) over 2 years ago