tanakataiki / ssd_kerasV2

BetterNetWork4SSD
MIT License
144 stars 56 forks source link

A `Concatenate` layer requires inputs with matching shapes #29

Closed TonyZPW closed 4 years ago

TonyZPW commented 4 years ago

hello,i've used ssd300 model but it can't work. the error code is
A Concatenate layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 38, 38, 512), (None, 19, 19, 1024), (None, 10, 10, 512), (None, 5, 5, 256), (None, 3, 3, 256), (None, 1, 1, 256)]

the exception stop at this line: mbox_priorbox = concatenate([fusion_conv4_5_mbox_priorbox,fc7_mbox_priorbox,conv6_2_mbox_priorbox,conv7_2_mbox_priorbox,conv8_2_mbox_priorbox,pool6_mbox_priorbox],axis=1,name='mbox_priorbox')

and i changed another model but the same error happened.

tf verison is 1.13.1 keras version is 2.3.0 cv2 version is 4.1.1

TonyZPW commented 4 years ago

sorry,it's my fault. i changed the ssd_layer.py code cause this error