I am trying to train my deep network on the MNIST dataset. When I try to upload the dataset to the dataloader and get the batched data through the iterator, I get modified data that differs from the original (I attached two images). At the same time, my model learns well from them: the error drops, and the accuracy metric grows, which is why I conclude that everything should work like this. Maybe there is a function that the dataloader applies to my data, but I don't know about it?
You can view the notebook with the code and my problem here.
I have checked two versions of pytorch and two different datasets, but the problem persists everywhere.
plt.imshow().