ValueError: cannot reshape array of size xxx into shape (xxx,xxx,xxx)解决方法
报错:
ValueError: cannot reshape array of size 149184 into shape (28,28,1)
报错原因:
由于图片的w,h,c相乘等于149184所导致的。无法将大小为149184的数组重塑为形状(28,28,1)
解决方法:
我输入的图片shape为(224, 222, 3) 所以224 * 222 * 3 = 149184
通过o
第三方账号登入
QQ 微博 微信