From f30461b88cfac20d10da39c617918d7dbda9adc8 Mon Sep 17 00:00:00 2001 From: Dom Date: Sat, 18 Apr 2026 17:09:08 +0200 Subject: [PATCH] =?UTF-8?q?fix(vision):=20seuils=20grounding=20assouplis?= =?UTF-8?q?=20pour=20VWB=20cross-r=C3=A9solution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MAX_DISTANCE_PX 120→500 (ancre peut être loin si résolution différente) MIN_CLIP_SCORE 0.55→0.50 (tolérance basique suffisante) MIN_COMBINED_SCORE 0.5→0.45 (accepter les matchs raisonnables) L'icône Chrome à 81% de confiance était rejetée à cause de la distance. Les workflows VWB manuels capturent sur un écran et s'exécutent potentiellement sur un autre — la tolérance de distance doit être large. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../backend/services/intelligent_executor.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/visual_workflow_builder/backend/services/intelligent_executor.py b/visual_workflow_builder/backend/services/intelligent_executor.py index 5a4df5d47..016c7ee9d 100644 --- a/visual_workflow_builder/backend/services/intelligent_executor.py +++ b/visual_workflow_builder/backend/services/intelligent_executor.py @@ -224,10 +224,11 @@ class IntelligentExecutor: - MIN_COMBINED_SCORE: Score combiné minimum (0.6) """ # === SEUILS ÉQUILIBRÉS === - # Permet des variations raisonnables tout en évitant les faux positifs - MAX_DISTANCE_PX = 120 # Rejeter tout élément > 120px de la position originale - MIN_CLIP_SCORE = 0.55 # Score CLIP minimum requis (0.55 = similarité raisonnable) - MIN_COMBINED_SCORE = 0.5 # Score combiné minimum pour accepter un match + # VWB workflows manuels : l'ancre peut être loin de la position d'origine + # (résolution différente, écran différent, fenêtre déplacée) + MAX_DISTANCE_PX = 500 # Tolérance large pour VWB cross-résolution + MIN_CLIP_SCORE = 0.50 # Score CLIP minimum (0.50 = ressemblance basique) + MIN_COMBINED_SCORE = 0.45 # Score combiné minimum pour accepter un match try: # Essayer d'importer et utiliser CLIP