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

  • Log In
  • Sign Up

PumeTu
/
DFN2B-ViT-B-16

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

Instructions to use PumeTu/DFN2B-ViT-B-16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use PumeTu/DFN2B-ViT-B-16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="PumeTu/DFN2B-ViT-B-16")
    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("PumeTu/DFN2B-ViT-B-16")
    model = AutoModelForZeroShotImageClassification.from_pretrained("PumeTu/DFN2B-ViT-B-16")
  • Notebooks
  • Google Colab
  • Kaggle
DFN2B-ViT-B-16
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
PumeTu's picture
PumeTu
Rename processor_config.json to preprocessor_config.json
14688e7 verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    5.17 kB
    Upload model about 1 month ago
  • config.json
    1.17 kB
    Upload model about 1 month ago
  • model.safetensors
    599 MB
    xet
    Upload model about 1 month ago
  • preprocessor_config.json
    581 Bytes
    Rename processor_config.json to preprocessor_config.json about 1 month ago
  • tokenizer.json
    3.64 MB
    Upload processor about 1 month ago
  • tokenizer_config.json
    360 Bytes
    Upload processor about 1 month ago