Skip to content

Commit c47c5b8

Browse files
committed
Made the testcase test for owidth=width+1
1 parent d147464 commit c47c5b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ def test_random_crop(self):
205205
assert result.size(2) == width
206206
assert np.allclose(img.numpy(), result.numpy())
207207

208-
lheight = height + 5
209-
lwidth = width + 5
208+
lheight = height + 1
209+
lwidth = width + 1
210210
result = transforms.Compose([
211211
transforms.ToPILImage(),
212212
transforms.RandomCrop((lheight, lwidth), pad_if_needed=True),

0 commit comments

Comments
 (0)