We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3503a63 commit 19ae698Copy full SHA for 19ae698
torchvision/utils.py
@@ -365,8 +365,8 @@ def draw_bounding_boxes(
365
else:
366
label_colors = colors.copy() # type: ignore[assignment]
367
368
- if fill_labels:
369
- label_background_colors = _parse_colors(label_background_colors, num_objects=num_boxes) if label_background_colors else colors.copy() # type: ignore[assignment]
+ if fill_labels and label_background_colors:
+ label_background_colors = _parse_colors(label_background_colors, num_objects=num_boxes)
370
371
label_background_colors = colors.copy() # type: ignore[assignment]
372
0 commit comments