#!/usr/bin/env python3 import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent)) from core.embedding.clip_embedder import CLIPEmbedder from PIL import Image print("Test CLIP Simple\n") clip = CLIPEmbedder() img = Image.new('RGB', (224, 224), color=(255, 0, 0)) emb = clip.embed_image(img) print(f"✓ Embedding généré: shape={emb.shape}, norme={emb.dot(emb):.4f}")