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

  • Log In
  • Sign Up

krnl
/
PickScore_v1

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

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

  • Libraries
  • Transformers

    How to use krnl/PickScore_v1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="krnl/PickScore_v1")
    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("krnl/PickScore_v1")
    model = AutoModelForZeroShotImageClassification.from_pretrained("krnl/PickScore_v1")
  • Notebooks
  • Google Colab
  • Kaggle
PickScore_v1
7.89 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
francescol's picture
francescol
initial commit
97f916c verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    3.23 kB
    initial commit about 2 years ago
  • config.json
    4.51 kB
    initial commit about 2 years ago
  • merges.txt
    525 kB
    initial commit about 2 years ago
  • model.safetensors
    3.94 GB
    xet
    initial commit about 2 years ago
  • preprocessor_config.json
    556 Bytes
    initial commit about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    3.94 GB
    xet
    initial commit about 2 years ago
  • special_tokens_map.json
    472 Bytes
    initial commit about 2 years ago
  • tokenizer.json
    2.22 MB
    initial commit about 2 years ago
  • tokenizer_config.json
    775 Bytes
    initial commit about 2 years ago
  • vocab.json
    862 kB
    initial commit about 2 years ago