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

  • Log In
  • Sign Up

samim2024
/
clip

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

Instructions to use samim2024/clip with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use samim2024/clip with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="samim2024/clip")
    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("samim2024/clip")
    model = AutoModelForZeroShotImageClassification.from_pretrained("samim2024/clip")
  • Notebooks
  • Google Colab
  • Kaggle
clip
609 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
samim2024's picture
samim2024
Update README.md
2b35ef1 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    1.3 kB
    Update README.md almost 2 years ago
  • config.json
    484 Bytes
    Upload model almost 2 years ago
  • merges.txt
    525 kB
    Upload processor almost 2 years ago
  • model.safetensors
    605 MB
    xet
    Upload model almost 2 years ago
  • preprocessor_config.json
    818 Bytes
    Upload processor almost 2 years ago
  • special_tokens_map.json
    588 Bytes
    Upload processor almost 2 years ago
  • tokenizer.json
    2.22 MB
    Upload processor almost 2 years ago
  • tokenizer_config.json
    743 Bytes
    Upload processor almost 2 years ago
  • vocab.json
    862 kB
    Upload processor almost 2 years ago