Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the merge problem in SSD document #135

Open
XiongLianga opened this issue Apr 13, 2018 · 3 comments
Open

the merge problem in SSD document #135

XiongLianga opened this issue Apr 13, 2018 · 3 comments

Comments

@XiongLianga
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

omrylcn commented Jul 26, 2018

down keras version to 2.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants