C2M2_Assignment - Error at normalization

Hi, there is an error triggered when testing:

def define_transformations(mean=imagenet_mean, std=imagenet_std)

Specifically,

Failed test case: Normalize found in train_transform, but with incorrect mean and/or std.
Expected: (mean=mean, std=std)
Got: (mean=(0.48500001430511475, 0.4560000002384186, 0.4059999883174896), std=(0.2290000021457672, 0.2240000069141388, 0.22499999403953552))

Failed test case: Normalize found in val_transform, but with incorrect mean and/or std.
Expected: (mean=mean, std=std)
Got: (mean=(0.48500001430511475, 0.4560000002384186, 0.4059999883174896), std=(0.2290000021457672, 0.2240000069141388, 0.22499999403953552))

Although the code uses both mean and std passed by the notebook, and, the results match the expected ones described below the cell to be completed.

Any ideas? Thanks

did you mention the transforms.Normalize(mean/std)?? This is what your error is pointing out in both train_transformation and val_transformation

it should be (mean=mean, std=std)

1 Like

yep, my bad :smiley: Thanks!

1 Like