我正在尝试在训练之前升级 MNIST 手写数字图像。但是 cv2.resize() 和 skimage.transform.resize 都会抛出:ValueError: could not broadcast input array from shape (150,150) into shape (28,28)
for i in range(len(X_train)):
X_train[i] = resize(X_train[i], (150,150))
我正在尝试在训练之前升级 MNIST 手写数字图像。但是 cv2.resize() 和 skimage.transform.resize 都会抛出:ValueError: could not broadcast input array from shape (150,150) into shape (28,28)
for i in range(len(X_train)):
X_train[i] = resize(X_train[i], (150,150))