python - What are the numbers in torch.transforms.normalize ...
stackoverflow.com › questions › 65467621Dec 27, 2020 · transform = transforms.Compose ( [transforms.ToTensor (), transforms.Normalize ( (0.1307,), (0.3081,))]) or. transform = transforms.Normalize (mean= [0.485, 0.456, 0.406], std= [0.229, 0.224, 0.225]) or others. I wonder where these numbers arise, and how to know to select the correct ones? I am about to use MNIST for sanity, but very soon to ...