Skip to content

Commit 0515294

Browse files
authored
Fix #2577, resize keep ratio repr
1 parent 019550e commit 0515294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timm/data/transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def __repr__(self):
557557
format_string += f', longest={self.longest:.3f}'
558558
format_string += f', random_scale_prob={self.random_scale_prob:.3f}'
559559
format_string += f', random_scale_range=(' \
560-
f'{self.random_scale_range[0]:.3f}, {self.random_aspect_range[1]:.3f})'
560+
f'{self.random_scale_range[0]:.3f}, {self.random_scale_range[1]:.3f})'
561561
format_string += f', random_aspect_prob={self.random_aspect_prob:.3f}'
562562
format_string += f', random_aspect_range=(' \
563563
f'{self.random_aspect_range[0]:.3f}, {self.random_aspect_range[1]:.3f}))'
@@ -580,4 +580,4 @@ def forward(self, img):
580580
left = min(left, h)
581581
height = max(0, h - 2 * self.border_size)
582582
width = max(0, w - 2 * self.border_size)
583-
return F.crop(img, top, left, height, width)
583+
return F.crop(img, top, left, height, width)

0 commit comments

Comments
 (0)