Skip to content

Commit

Permalink
Fixed height check based on [original repo #202](Daniil-Osokin/lightw…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsampazk committed Mar 10, 2022
1 parent fa5815b commit 2f6fc20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __call__(self, sample):
if image_y_start < 0:
crop_y_start -= image_y_start
image_y_start = 0
if image_y_start >= w:
if image_y_start >= h:
should_crop = False

if image_x_finish > w:
Expand Down

0 comments on commit 2f6fc20

Please sign in to comment.