Unverified Commit e00d8189 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Set seed of test_random_erasing (#4764)

* Trying with 100 seeds

* Change seeds from 100 to 10
parent 3a17e339
......@@ -1750,8 +1750,10 @@ def test_color_jitter():
color_jitter.__repr__()
@pytest.mark.parametrize("seed", range(10))
@pytest.mark.skipif(stats is None, reason="scipy.stats not available")
def test_random_erasing():
def test_random_erasing(seed):
torch.random.manual_seed(seed)
img = torch.ones(3, 128, 128)
t = transforms.RandomErasing(scale=(0.1, 0.1), ratio=(1 / 3, 3.0))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment