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

hf-internal-testing
/
tiny-random-clip-zero-shot-image-classification

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

Instructions to use hf-internal-testing/tiny-random-clip-zero-shot-image-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use hf-internal-testing/tiny-random-clip-zero-shot-image-classification with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="hf-internal-testing/tiny-random-clip-zero-shot-image-classification")
    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("hf-internal-testing/tiny-random-clip-zero-shot-image-classification")
    model = AutoModelForZeroShotImageClassification.from_pretrained("hf-internal-testing/tiny-random-clip-zero-shot-image-classification")
  • Notebooks
  • Google Colab
  • Kaggle
tiny-random-clip-zero-shot-image-classification
1.5 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
4089fcb verified about 2 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    53 Bytes
    Adding pipeline_tag. over 4 years ago
  • config.json
    8.09 kB
    Adding tf weights. over 4 years ago
  • merges.txt
    52 Bytes
    Keeping the vocab to 99. over 4 years ago
  • model.safetensors
    423 kB
    Adding `safetensors` variant of this model about 2 years ago
  • preprocessor_config.json
    300 Bytes
    crop_size is after resize ?? over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    459 kB
    xet
    Making processor + model match. over 4 years ago
  • special_tokens_map.json
    389 Bytes
    Making processor + model match. over 4 years ago
  • tf_model.h5
    604 kB
    xet
    Adding tf weights. over 4 years ago
  • tokenizer.json
    4.04 kB
    Keeping the vocab to 99. over 4 years ago
  • tokenizer_config.json
    874 Bytes
    Update the tokenizer for 4.17. over 4 years ago
  • vocab.json
    1.23 kB
    Keeping the vocab to 99. over 4 years ago