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

  • Log In
  • Sign Up

vinid
/
plip

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

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

  • Libraries
  • Transformers

    How to use vinid/plip with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="vinid/plip")
    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("vinid/plip")
    model = AutoModelForZeroShotImageClassification.from_pretrained("vinid/plip")
  • Notebooks
  • Google Colab
  • Kaggle
plip
607 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
vinid's picture
vinid
Update README.md
67ade53 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    3.12 kB
    Update README.md about 3 years ago
  • config.json
    4.46 kB
    Upload 5 files about 3 years ago
  • preprocessor_config.json
    316 Bytes
    Upload 5 files about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    605 MB
    xet
    Upload pytorch_model.bin about 3 years ago
  • special_tokens_map.json
    389 Bytes
    Upload 5 files about 3 years ago
  • tokenizer.json
    2.22 MB
    Upload 5 files about 3 years ago
  • tokenizer_config.json
    568 Bytes
    Upload 5 files about 3 years ago