Does __getitem__ of dataloader reset random seed?

@thnkim it is because numpy’s RNG is not forkable.

Instead, add this line to the top of your main script (and you need to use python 3)

import torch
import torch.multiprocessing as mp
mp.set_start_method('spawn')