How to use LEAF-CLIP/OpenCLIP-ViT-g-rho50-k1-constrained-FARE2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="LEAF-CLIP/OpenCLIP-ViT-g-rho50-k1-constrained-FARE2")
# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("LEAF-CLIP/OpenCLIP-ViT-g-rho50-k1-constrained-FARE2") model = AutoModelForZeroShotImageClassification.from_pretrained("LEAF-CLIP/OpenCLIP-ViT-g-rho50-k1-constrained-FARE2")