ValueError: cannot reshape array of size 3021543 into shape (3,227,327)


#1

I am trying to run hunse repository for which i tried to trained model in keras. dummy dataset have images of size 227X227X3. ther are 21 images in train folder and 7 images in test folder when i run the following code it gives the errors
ValueError: cannot reshape array of size 3021543 into shape (3,227,327)

(X_train, y_train), (X_test, y_test), label_names = ((X_train, iy_train),(X_test, y_test),class_names)
X_train = X_train.reshape(-1, 3, 227, 227).astype('float32')
X_test = X_test.reshape(-1, 3, 227, 227).astype('float32')
n_classes = len(label_names)
X_train = X_train[:, :, 16:-16, 16:-16]
X_test = X_test[:, :, 16:-16, 16:-16]


data_mean = X_train.mean(axis=0)
X_train -= data_mean
X_test -= data_mean