super-resolution icon indicating copy to clipboard operation
super-resolution copied to clipboard

NOOB Question: Input 0 is incompatible with layer model_3:

Open peoplecure opened this issue 4 years ago • 1 comments

Hi, I have a noob question. I get an error message each time I use my image.

ValueError: Input 0 is incompatible with layer model_3: expected shape=(None, None, None, 3), found shape=(1, 499, 552, 4)

MY guess is that I need to remove the first three values in shape=(1, 499, 552, 4). Am I correct?

peoplecure avatar Dec 28 '20 05:12 peoplecure

Seems you're using an RGBA image (4 channels). You need to convert it to an RGB image first (3 channels).

krasserm avatar Dec 28 '20 05:12 krasserm