VERIDEX.V1 / backend /fix_clip.py
shadow55gh
fix: remove node_modules and cache from tracking
81f9dfe
from transformers import CLIPProcessor, CLIPModel
print("Downloading CLIP processor...")
p = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
print("Downloading CLIP model...")
m = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
m.eval()
print("CLIP OK!")