赞
踩
CIFAR10读进来的图像的的维度是(50000,32,32,3),插入以下代码就可以用了,
img_test = images_test[:32, :, :, :]
选取前32张显示
- plt.figure()
- for i in range(1,32):
- plt.subplot(4,8,i)
- plt.imshow(img_test[i-1])
- plt.show()
这就是显示的结果
在代码中加入下面两行则没有坐标了
- plt.figure()
- for i in range(1,32):
- plt.subplot(4,8,i)
- plt.imshow(img_test[i-1])
- plt.xticks([])
- plt.yticks([])
- plt.show()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。