Error while concatenating mbox_conf_softmax, mbox_loc, mbox_priorbox
Opened this issue · 5 comments
Hi,
Sorry to bother you, I am stuck on this :
ValueError: A Concatenate
layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 2268, 21), (None, 2268, 4), (None, 4000, 8)]
The mbox_priorbox tensor has a different shape. Do you know why ?
Thanks, have a good day
it's ok.
I change K.image_dim_ordering() == 'tf' to K.image_data_format=="channels_first' and it works. It'a problem of conversion between python 2 and 3.
I am having the same problems
ValueError: A Concatenate
layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 1208, 100), (None, 1208, 4), (None, 2928, 8)]
and I tried change tf to channels_first it's still not working.
Anyone could help
Thank you
I am having the same problems
ValueError: AConcatenate
layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 1208, 100), (None, 1208, 4), (None, 2928, 8)]
and I tried change tf to channels_first it's still not working.
Anyone could helpThank you
In fact, you need to modify in file (“misc/keras_layer_AnchorBoxes.py”) as follow:
change K.image_dim_ordering() == 'tf' to K.image_data_format=="channels_last' instead of "channels_first".
You can have a try.
You need to do that in every file where image_dim_ordering appears, there is more than one