rykov8 / ssd_keras

Port of Single Shot MultiBox Detector to Keras
MIT License
1.1k stars 553 forks source link

the merge problem in SSD document #135

Open XiongLianga opened 6 years ago

XiongLianga commented 6 years ago

When I try to run the SSD.ipny , I got the error. "concat" mode can only merge layers with matching output shapes except for the concat axis. Layer 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 error point to line 274 ,where the code wants to concatenate the six layers's prior boxes. Could you tell me the reason of error? thank you for much.

XiongLianga commented 6 years ago

oh, I get the reason. the reason is the different version of Keras. The great work in this project is using the Keras version 1.22, where writing your own Keras layer design the layer's output shape by get_output_shape_for(input_shape). But there are some different in Keras version 2.1.3, where writing your own Keras layer design the layer's output shape by compute_output_shape(input_shape). So, you just replace the old name of function by the new.

kushal98 commented 6 years ago

Hey , Actually i m facing the same issue and i am not able to resolve can you please help me with this. Thank you

omrylcn commented 6 years ago

down keras version to 2.1.6