How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("zero-shot-image-classification", model="RISys-Lab/ReasonCLIP-B32-S0-Des")
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("RISys-Lab/ReasonCLIP-B32-S0-Des")
model = AutoModelForZeroShotImageClassification.from_pretrained("RISys-Lab/ReasonCLIP-B32-S0-Des")
Quick Links

Model Details

Method

Method overview

Resources

Usage

from transformers import CLIPModel, CLIPProcessor

model_id = "RISys-Lab/ReasonCLIP-B32-S0-Des"
model = CLIPModel.from_pretrained(model_id)
processor = CLIPProcessor.from_pretrained(model_id)

For the full checkpoint list, see the ReasonCLIP model card.

Downloads last month
31
Safetensors
Model size
0.2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including RISys-Lab/ReasonCLIP-B32-S0-Des

Paper for RISys-Lab/ReasonCLIP-B32-S0-Des