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

  • Log In
  • Sign Up

hiert
/
testconfig

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

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

  • Libraries
  • Transformers

    How to use hiert/testconfig with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="hiert/testconfig")
    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("hiert/testconfig")
    model = AutoModelForZeroShotImageClassification.from_pretrained("hiert/testconfig")
  • Notebooks
  • Google Colab
  • Kaggle
testconfig
3.16 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
hiert's picture
hiert
Upload 2 files
7b06daa verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • config.json
    4.13 kB
    Rename config1.json to config.json over 2 years ago
  • handler.py
    127 Bytes
    Rename other_handler.py to handler.py over 2 years ago
  • other_config.json
    69.6 kB
    Rename config.json to other_config.json over 2 years ago
  • tokenizer.json
    2.22 MB
    Upload 2 files over 2 years ago
  • vocab.json
    862 kB
    Upload 2 files over 2 years ago