Skip to content

Commit

Permalink
Merge pull request #1773 from pirnerjonas/patch-2
Browse files Browse the repository at this point in the history
Fix typos in Detections merge doc string
  • Loading branch information
SkalskiP authored Jan 9, 2025
2 parents 656f639 + b2a1eb5 commit 1b5c592
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions supervision/detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,16 +1027,16 @@ 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, 0.2])}
)
detections_2 = sv.Detections(
xyxy=np.array([[30, 30, 120, 120]]),
class_id=np.array([1]),
data={'feature_vector': [np.array([0.3])]}
)
data={'feature_vector': np.array([0.3])}
)
merged_detections = Detections.merge([detections_1, detections_2])
merged_detections = sv.Detections.merge([detections_1, detections_2])
merged_detections.xyxy
array([[ 15, 15, 100, 100],
Expand Down

0 comments on commit 1b5c592

Please sign in to comment.