Skip to content

Commit 64bc12e

Browse files
author
Ricardo Decal
committed
Use the actual CIFAR10 normalization values
1 parent a941761 commit 64bc12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/hyperparameter_tuning_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
def load_data(data_dir="./data"):
7171
transform = transforms.Compose(
72-
[transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]
72+
[transforms.ToTensor(), transforms.Normalize((0.4914, 0.48216, 0.44653), (0.2022, 0.19932, 0.20086))]
7373
)
7474

7575
trainset = torchvision.datasets.CIFAR10(

0 commit comments

Comments
 (0)