このコードを実行します。AttributeError: 'NoneType'オブジェクトに属性 'reshape'がありません
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
X_train = plt.imread('00_0.9944__20150716_131647_04249_074.raw_color.bmp')
type(X_train)
X_train = X_train.resize((32, 32))
X_train = X_train.reshape((len(X_train), 3, 32, 32))
そして、IMGサイズを使用
X_train = X_train.reshape((len(X_train), 3, 32, 32))
AttributeError: 'NoneType' object has no attribute 'reshape'
が207x209であるスロー。私を助けてください。ありがとうございました。
これは、それが解決しhttps://stackoverflow.com/a/45726867/7825115 – Kallz