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

  • Log In
  • Sign Up

FLIP-dataset
/
FLIP-base-16

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

Instructions to use FLIP-dataset/FLIP-base-16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use FLIP-dataset/FLIP-base-16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="FLIP-dataset/FLIP-base-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("FLIP-dataset/FLIP-base-16")
    model = AutoModelForZeroShotImageClassification.from_pretrained("FLIP-dataset/FLIP-base-16")
  • Notebooks
  • Google Colab
  • Kaggle
FLIP-base-16
602 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
P01son's picture
P01son
Upload pytorch_model.bin
5ae1a18 over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    28 Bytes
    initial commit over 2 years ago
  • config.json
    4.1 kB
    Upload 8 files over 2 years ago
  • merges.txt
    525 kB
    Upload 8 files over 2 years ago
  • preprocessor_config.json
    316 Bytes
    Upload 8 files over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    599 MB
    xet
    Upload pytorch_model.bin over 2 years ago
  • special_tokens_map.json
    389 Bytes
    Upload 8 files over 2 years ago
  • tokenizer.json
    2.22 MB
    Upload 8 files over 2 years ago
  • tokenizer_config.json
    905 Bytes
    Upload 8 files over 2 years ago
  • vocab.json
    961 kB
    Upload 8 files over 2 years ago