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

Exception: "concat" mode can only merge layers with matching output shapes #1

Closed
sansinghsanjay opened this issue Nov 8, 2016 · 2 comments

Comments

@sansinghsanjay
Copy link

I am getting following exception at line 61 in model.py :

Exception: "concat" mode can only merge layers with matching output shapes except for the concat axis. Layer shapes: [(None, 2, 20, 512), (None, 1, 20, 256)]

I am new to keras.

Thanks...

@raghakot
Copy link
Owner

i did not test this against theano backend. Are u getting this with tensorflow backend?

@sansinghsanjay
Copy link
Author

I tried your updated code and I think that I was missing following instructions specified in readme file:
{
"image_dim_ordering": "th",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "tensorflow"
}

I followed above instructions and changed "image_dim_ordering" from "tf" to "th". It helps and resolves this issue.

Thanks...

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

2 participants