For each picture, I want different noise. However, every time my dataset is created I want the same noise for the picture (hence I am trying to set seed for each picture). So the problem is the global seed, right? This global seed does not get reset, right? Thanks for the suggestions, I have never used TensorDataset but I will look into TensorDataset