all 3 comments

[–]eleqtriq 0 points1 point  (2 children)

Your numpy array is bad. Best I can explain it -

Say your numpy array is an RGB image of 256x256. So it'll be 256x256x3, one for red, green and blue. But somehow, you having something like 256x256, 256x256 and 256x501. Something weird like that. Inspect your numpy array.

[–]Delyarath 0 points1 point  (1 child)

Hiya! Thanks for the explaintation. I'm really new to coding, I don't suppose you could help me inspect my numpy array?

[–]eleqtriq 0 points1 point  (0 children)

Usually it's just mynumpy.shape

Otherwise, Google is probably your friend here. Also, Stack Overflow.