Skip to content

Commit 6134881

Browse files
authored
fix tuple bug
1 parent 54d44cc commit 6134881

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ gen.yml
2525
.idea/
2626
*.orig
2727
*-checkpoint.ipynb
28+
*.venv

torchvision/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def draw_bounding_boxes(
200200
elif isinstance(color, str):
201201
# This will automatically raise Error if rgb cannot be parsed.
202202
fill_color = ImageColor.getrgb(color) + (100,)
203-
elif isinstance(color, Tuple):
203+
elif isinstance(color, tuple):
204204
fill_color = color + (100,)
205205
draw.rectangle(bbox, width=width, outline=color, fill=fill_color)
206206
else:

0 commit comments

Comments
 (0)