Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Var of CIFAR10 wrong #15

Open
jS5t3r opened this issue Oct 25, 2023 · 0 comments
Open

Var of CIFAR10 wrong #15

jS5t3r opened this issue Oct 25, 2023 · 0 comments

Comments

@jS5t3r
Copy link

jS5t3r commented Oct 25, 2023

Mine:

dataset = datasets.CIFAR10(root='./data', download=True, train=True, transform=transforms.ToTensor())
mean = dataset.data.astype(float).mean(axis=(0,1,2)) / 255
std = dataset.data.astype(float).std(axis=(0,1,2)) / 255
print("cifar10", np.round(mean, 4), np.round(std, 4))

--> cifar10 [0.4914 0.4822 0.4465] [0.247  0.2435 0.2616]

Yours:

mean = { 'cifar10': (0.4914, 0.4822, 0.4465) }
std = { 'cifar10': (0.2023, 0.1994, 0.2010) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant