From b71254042d7d69824ef18de71a73903ec5ee0dd8 Mon Sep 17 00:00:00 2001 From: Rohan Gupta <63547845+Gk-rohan@users.noreply.github.com> Date: Tue, 18 Mar 2025 14:20:01 +0530 Subject: [PATCH] fix Example in Detections.merge --- supervision/detection/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index f508dd62b..719ceacd1 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -1067,8 +1067,8 @@ def merge(cls, detections_list: List[Detections]) -> Detections: detections_1 = sv.Detections( xyxy=np.array([[15, 15, 100, 100], [200, 200, 300, 300]]), class_id=np.array([1, 2]), - data={'feature_vector': np.array([0.1, 0.2])} - ) + data={'feature_vector': [np.array([0.1]), np.array([0.3])]} + ) detections_2 = sv.Detections( xyxy=np.array([[30, 30, 120, 120]]),