GluonCV CIFAR10 demo problem


I am getting an error when I run this demo …

After I run the transform …

transform_fn = transforms.Compose([
transforms.Normalize([0.4914, 0.4822, 0.4465], [0.2023, 0.1994, 0.2010])

img = transform_fn(img)
plt.imshow(nd.transpose(img, (1,2,0)).asnumpy())

I get …

Floating point image RGB values must be in the 0..1 range.

Any help is appreciated!


It’s an error from matplotlib, update it to latest will resolve the problem


That resolved the issue. Thank you!