Files
rpa_vision_v3/examples/test_clip_simple.py
Dom a27b74cf22 v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40)
- Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard)
- Ollama GPU fonctionnel
- Self-healing interactif
- Dashboard confiance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:23:51 +01:00

14 lines
402 B
Python
Executable File

#!/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}")