Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

fehime
/
clip-model

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

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

  • Libraries
  • Transformers

    How to use fehime/clip-model with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="fehime/clip-model")
    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("fehime/clip-model")
    model = AutoModelForZeroShotImageClassification.from_pretrained("fehime/clip-model")
  • Notebooks
  • Google Colab
  • Kaggle
clip-model
602 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
fehime's picture
fehime
Upload 10 files
b418ae2 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • config.json
    4.31 kB
    Upload 10 files over 3 years ago
  • config_sentence_transformers.json
    118 Bytes
    Upload 10 files over 3 years ago
  • merges.txt
    525 kB
    Upload 10 files over 3 years ago
  • modules.json
    122 Bytes
    Upload 10 files over 3 years ago
  • preprocessor_config.json
    354 Bytes
    Upload 10 files over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    599 MB
    xet
    Upload 10 files over 3 years ago
  • special_tokens_map.json
    389 Bytes
    Upload 10 files over 3 years ago
  • tokenizer.json
    2.22 MB
    Upload 10 files over 3 years ago
  • tokenizer_config.json
    732 Bytes
    Upload 10 files over 3 years ago
  • vocab.json
    862 kB
    Upload 10 files over 3 years ago