Error : Could not broadcast input array from shape (30,30,4) into shape (30,30,3)

Error : Could not broadcast input array from shape (30,30,4) into shape (30,30,3)Capture

I noticed that when my dataset is imported, it has got all 3 planes of image (RGB), whereas in MNIST project, the images are imported as single plane.
I have figured it out that if I import my dataset as a single plane, that may solve problem . Or else I have to change some settings inside so that 3 plane data is processed.

Thanks in advance.

Hi
this error is because of input dimension mismatch.
Can you share more details such as dataset used and configuration file.

Regards
Rajat

Hey, i have the same Issue, have you solved that problem?

Hi @BigDvsRL,

Can you please share configuration file?

Or you can check the input and output dimension.As he mentioned that , this error occur due to input dimension mismatch.

i solved it, i didnt knew that Gif images have 4 dimensions^^ not just 3 dimensions like jpg or png :stuck_out_tongue:
i just had to convert all of those images into RGB