Skip to content

Commit 69a320e

Browse files
Apply suggestions from code review
Co-authored-by: Nicolas Hug <[email protected]>
1 parent 15c613e commit 69a320e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def draw_bounding_boxes(
162162
font: Optional[str] = None,
163163
font_size: Optional[int] = None,
164164
label_colors: Optional[Union[List[Union[str, Tuple[int, int, int]]], str, Tuple[int, int, int]]] = None,
165-
fill_labels: Optional[bool] = False,
165+
fill_labels: bool = False,
166166
) -> torch.Tensor:
167167

168168
"""
@@ -188,7 +188,7 @@ def draw_bounding_boxes(
188188
font_size (int): The requested font size in points.
189189
label_colors (color or list of colors, optional): Colors for the label text. See the description of the
190190
`colors` argument for details. Defaults to the same colors used for the boxes.
191-
fill_labels (bool): If `True` fills the label background with specified color.
191+
fill_labels (bool): If `True` fills the label background with specified color. Default: False.
192192
193193
Returns:
194194
img (Tensor[C, H, W]): Image Tensor of dtype uint8 with bounding boxes plotted.

0 commit comments

Comments
 (0)