Skip to content

Commit

Permalink
replaced BoundingBoxAnnotator with BoxAnnotator, updated Supervision …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
ethanlee928 committed Jul 23, 2024
1 parent d75c95d commit 8b6a55f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion groundingdino/util/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def annotate(image_source: np.ndarray, boxes: torch.Tensor, logits: torch.Tensor
in zip(phrases, logits)
]

bbox_annotator = sv.BoundingBoxAnnotator(color_lookup=sv.ColorLookup.INDEX)
bbox_annotator = sv.BoxAnnotator(color_lookup=sv.ColorLookup.INDEX)
label_annotator = sv.LabelAnnotator(color_lookup=sv.ColorLookup.INDEX)
annotated_frame = cv2.cvtColor(image_source, cv2.COLOR_RGB2BGR)
annotated_frame = bbox_annotator.annotate(scene=annotated_frame, detections=detections)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ yapf
timm
numpy
opencv-python
supervision>=0.15.0
supervision>=0.22.0
pycocotools

0 comments on commit 8b6a55f

Please sign in to comment.