Skip to content

Commit

Permalink
🚑️ [Fix] bbox bugs, choice 1 st bbox when draw
Browse files Browse the repository at this point in the history
  • Loading branch information
henrytsui000 committed Aug 5, 2024
1 parent b8b460c commit dc88787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolo/tools/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def draw_bboxes(
img = img[0]
img = to_pil_image(img)

if bboxes.ndim == 3:
if isinstance(bboxes, list) or bboxes.ndim == 3:
bboxes = bboxes[0]

img = img.copy()
Expand Down

0 comments on commit dc88787

Please sign in to comment.