File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1364,7 +1364,7 @@ def test_to_grayscale():
1364
1364
@pytest .mark .parametrize ("p" , (0 , 1 ))
1365
1365
def test_random_apply (p , seed ):
1366
1366
torch .manual_seed (seed )
1367
- random_apply_transform = transforms .RandomApply ([transforms .RandomRotation ((1 , 45 ))], p = p )
1367
+ random_apply_transform = transforms .RandomApply ([transforms .RandomRotation ((45 , 50 ))], p = p )
1368
1368
img = transforms .ToPILImage ()(torch .rand (3 , 30 , 40 ))
1369
1369
out = random_apply_transform (img )
1370
1370
if p == 0 :
@@ -1384,7 +1384,7 @@ def test_random_choice(proba_passthrough, seed):
1384
1384
random_choice_transform = transforms .RandomChoice (
1385
1385
[
1386
1386
lambda x : x , # passthrough
1387
- transforms .RandomRotation ((1 , 45 )),
1387
+ transforms .RandomRotation ((45 , 50 )),
1388
1388
],
1389
1389
p = [proba_passthrough , 1 - proba_passthrough ],
1390
1390
)
You can’t perform that action at this time.
0 commit comments