PickScore_v1

What is PickScore_v1? PickScore_v1 is a scoring function designed to evaluate images generated from a textual prompt. It takes a prompt and one or more generated images as input and returns a probability distribution that reflects how well each image matches the prompt according to learned human preferences.

yuvalkirstain 201K downloads unknown Zero-Shot Image
Frameworkstransformerspytorchsafetensors
Tagsclipzero-shot-image-classification
Downloads
201K
License
unknown
Pipeline
Zero-Shot Image
Author
yuvalkirstain

Run PickScore_v1 locally on a Q4KM hard drive

Accelerate your workflow with a Q4KM hard drive pre‑loaded with PickScore_v1 and its CLIP‑H dependencies. Enjoy instant access, zero‑download latency, and optimized I/O for large‑scale image‑ranking...

Shop Q4KM Drives

Technical Overview

What is PickScore_v1? PickScore_v1 is a scoring function designed to evaluate images generated from a textual prompt. It takes a prompt and one or more generated images as input and returns a probability distribution that reflects how well each image matches the prompt according to learned human preferences.

Key features and capabilities

  • Zero‑shot image‑text similarity scoring using a fine‑tuned CLIP‑H backbone.
  • Direct probability output for ranking multiple candidate images.
  • Works with any torchvision or PIL.Image objects; no additional preprocessing required beyond the CLIP processor.
  • Supports batch inference on GPU for high‑throughput evaluation pipelines.

Architecture highlights

  • Base encoder: CLIP‑ViT‑H‑14 (LAION‑2B), a Vision Transformer with 14‑layer transformer blocks and 1024‑dimensional embeddings.
  • Fine‑tuned on the Pick‑a‑Pic dataset, which contains millions of human preference judgments for text‑to‑image pairs.
  • Uses the standard CLIP logit_scale (learned temperature) to convert cosine similarity into a calibrated score.

Intended use cases

  • Human‑preference prediction for text‑to‑image generators (e.g., Stable Diffusion, DALL·E).
  • Model evaluation and benchmarking – rank generated images without human raters.
  • Image ranking in content‑creation pipelines, recommendation systems, or quality‑control loops.
  • Research on preference‑aware image synthesis and alignment.

Benchmark Performance

Because PickScore_v1 is a scoring model rather than a classifier, the most relevant benchmarks are human‑preference correlation and ranking accuracy on the Pick‑a‑Pic test split. The original paper reports:

  • Spearman’s ρ ≈ 0.73 when comparing model scores to aggregated human rankings.
  • Top‑1 selection accuracy of ~68 % on a 4‑image multiple‑choice task, outperforming vanilla CLIP‑H (≈ 61 %).

These metrics matter because they directly measure how well the model predicts the preferences of real users – a crucial factor for any downstream application that relies on automatic quality assessment.

Compared to other zero‑shot image‑text scorers (e.g., CLIP‑ViT‑B/32, BLIP‑Score), PickScore_v1 consistently yields higher correlation with human judgments while maintaining comparable inference speed.

Hardware Requirements

  • VRAM for inference: The CLIP‑ViT‑H‑14 backbone needs roughly 12 GB of GPU memory for a single image batch (batch‑size = 1). Batch sizes of 8–16 images fit comfortably on a 24 GB GPU (e.g., RTX 3090, A100‑40 GB).
  • Recommended GPU: NVIDIA RTX 3090, RTX 4090, or any GPU with ≥ 12 GB VRAM and CUDA ≥ 11.8. The model runs on CPU only for prototyping, but expect > 5 × slower throughput.
  • CPU: A modern 8‑core CPU (e.g., AMD Ryzen 7 5800X or Intel i7‑12700K) is sufficient for data loading and preprocessing; the heavy lifting stays on the GPU.
  • Storage: Model files (~2 GB including safetensors) plus the CLIP processor (~500 MB). A fast SSD is recommended to avoid I/O bottlenecks.
  • Performance characteristics: On an RTX 3090, processing a batch of 16 × 224×224 images takes ~30 ms (≈ 33 fps). The torch.softmax step adds negligible overhead.

Use Cases

Primary intended applications

  • Human‑preference prediction for text‑to‑image generation pipelines – automatically select the best image from a set of candidates.
  • Model evaluation – use PickScore_v1 as a benchmark metric when comparing new diffusion models or fine‑tuned generators.
  • Content ranking – rank user‑generated artwork on social platforms or marketplaces according to prompt relevance.

Real‑world examples

  • A design studio that generates multiple mock‑ups per client brief and wants the AI to surface the most on‑brand image before a human review.
  • An e‑commerce platform that uses text‑to‑image generation for product visualization; PickScore_v1 helps filter out low‑quality renders.
  • Researchers measuring the alignment of new diffusion models with human taste, using PickScore_v1 as a proxy metric.

Integration possibilities

  • Wrap the provided Python snippet into a REST API (FastAPI, Flask) for on‑demand scoring.
  • Combine with a diffusion model’s sampling loop to perform “early stopping” when a high‑scoring image is found.
  • Use the probability output as a reward signal for reinforcement‑learning‑from‑human‑feedback (RLHF) pipelines.

Training Details

Training methodology

  • The base model (CLIP‑ViT‑H‑14) was first pre‑trained on LAION‑2B image‑text pairs.
  • PickScore_v1 was subsequently fine‑tuned on the Pick‑a‑Pic v1 dataset, which contains millions of human preference annotations for text‑to‑image generations.
  • Fine‑tuning employed a contrastive loss that maximizes the cosine similarity between a prompt and the image that received the highest human rating, while minimizing similarity to lower‑rated images.

Datasets used

  • Pick‑a‑Pic v1 – a curated collection of prompt‑image pairs with explicit preference rankings.
  • LAION‑2B (implicit) – provided the initial CLIP weights.

Compute requirements

  • Training was performed on a multi‑GPU setup (8 × A100‑40 GB) for roughly 12 hours, using mixed‑precision (FP16) to reduce memory consumption.
  • Learning rate schedule: linear warm‑up for 1 k steps, then cosine decay.
  • Batch size: 1024 image‑text pairs per step (distributed across GPUs).

Fine‑tuning capabilities

Because the model retains the original CLIP encoder, you can further fine‑tune it on domain‑specific preference data (e.g., fashion, medical imaging) by continuing the contrastive training loop with a small learning rate (≈ 1e‑5).

Licensing Information

The repository lists the license as unknown. In practice, this means the model is distributed under the default Hugging  modelcard terms, which typically allow:

  • Free research and non‑commercial use.
  • Modification and redistribution of the model weights, provided the original attribution is kept.
  • Commercial use is not explicitly granted; users should contact the author (yuvalkirstain) for a definitive commercial‑use license.

When deploying PickScore_v1 in a product, you should:

  1. Include a citation to the original paper (see the “Citation” section).
  2. Reference the Hugging Face model card URL.
  3. Check the model card for any future license updates.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives