Skip to content

Commit 6c87673

Browse files
Fix _ImageDrawTV
1 parent 646341d commit 6c87673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def oriented_rectangle(self, xy, fill=None, outline=None, width=1):
136136
width=width,
137137
fill=outline,
138138
)
139-
self.rectangle(xy, fill=fill, outline=None, width=0)
139+
self.polygon(xy, fill=fill, outline=None, width=0)
140140

141141
def dashed_line(self, xy, fill=None, width=0, joint=None, dash_length=5, space_length=5):
142142
# Calculate the total length of the line

0 commit comments

Comments
 (0)