79143609

Date: 2024-10-31 05:52:58
Score: 1
Natty:
Report link

this link provides different values for std https://github.com/keon/3-min-pytorch/issues/26 in the case of Fashion Mnist, and I think it is because you are computing std per batch. The code that appears on the link is

transforms.ToTensor()
])

dataset = torchvision.datasets.FashionMNIST(root = './.data', train = True,
download = True, transform = transform)

FashionMNIST_mean = dataset.data.numpy().mean(axis = (0, 1, 2))
print(FashionMNIST_mean / 255)
FashionMNIST_std = dataset.data.numpy().std(axis = (0, 1, 2))
print(FashionMNIST_std / 255) ```
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eric