image-segmentation-keras icon indicating copy to clipboard operation
image-segmentation-keras copied to clipboard

Error on applying multi image input

Open dippatel1994 opened this issue 4 years ago • 5 comments
trafficstars

Hi,

I am using two images as input. I am providing 2nd image using

other_inputs_paths=[ "/path/to/other/directory" ]

But by doing so I am getting an error:

ValueError: Input 0 of layer block1_pool is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: (None, None, None, None, 64)

can anyone help me what should I do to resolve this error? I am using color images as input.

When I use single input, it works but I want to compare performance between single and multi input but getting an error on multi input approach.

Any help will be much appreciated! Thanks !!

dippatel1994 avatar Aug 06 '21 02:08 dippatel1994

Please provide an update on issue.

dippatel1994 avatar Aug 10 '21 05:08 dippatel1994

If anyone is still monitoring this library than please reply on this problem. Thanks in advance!

dippatel1994 avatar Aug 21 '21 18:08 dippatel1994

@dippatel1994 Were you able to fix this error @divamgupta Please help

Ankit-Vohra avatar Oct 04 '21 07:10 Ankit-Vohra

@Ankit-Vohra No, I did not. I try debugging the code and it just concatenate two inputs initially so late I thought it wont be that important.

I wanted to create two separate encoders pipeline for 2 inputs and later with late fusion i wanted to merge them with decoder.

dippatel1994 avatar Oct 04 '21 15:10 dippatel1994

@divamgupta can you please look into this issue? It will be a big help! Thank you!

dippatel1994 avatar Oct 04 '21 15:10 dippatel1994