Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmindee committed Mar 9, 2022
1 parent a40ca1c commit b8dfb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctr/transforms/modules/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def forward(
else:
target_ratio = self.size[0] / self.size[1]
actual_ratio = img.shape[-2] / img.shape[-1]

if not self.preserve_aspect_ratio or (
target_ratio == actual_ratio and (isinstance(self.size, (tuple, list)))
):
Expand Down

0 comments on commit b8dfb34

Please sign in to comment.