I'm building a neural network and I'm trying to load colored images into the network but I keep getting a reshaping error. I resized all of the images to the smallest dimensions (in this case 110 x 110) but when I try to convert the X (an unflattened 3d list of the pixels of each image) to a numpy array to be called xTrain with this line of code:
xTrain = np.array(X[:trainNum])
i get this error: "ValueError: could not broadcast input array from shape (110,110,3) into shape (110,110)"
does anyone know why it keeps doing that? i assume it's because of my data because my partner copied the same exact code with his own images and the conversion to a numpy array was successful but mine isn't. for reference the list titled X is in this format:
[array([[[137, 151, 199],
[ 93, 114, 166],
[116, 121, 164],
...,
[124, 124, 175],
[160, 162, 193],
[154, 157, 177]],
[[ 81, 94, 153],
[106, 123, 184],
[119, 124, 180],...
how do I fix this?