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

ImportError: cannot import name 'merge' from 'keras.layers' #52

Open
i-am-R00k opened this issue Nov 8, 2022 · 1 comment
Open

ImportError: cannot import name 'merge' from 'keras.layers' #52

i-am-R00k opened this issue Nov 8, 2022 · 1 comment

Comments

@i-am-R00k
Copy link

How do i fix the problem mentioned in the title? It says that "merge" isn't available for keras 2+ and i have to install an older version, but your requirements demand keras 2+.

@Dakoteus
Copy link

I noticed this too. You should be able to get away with 'fixing it'... there's not many things you have to fix if you want to stick with updated packages it's mostly import errs.

Quick stackoverflowing will tell you that merge became Concatenate.
https://stackoverflow.com/questions/56315726/cannot-import-name-merge-from-keras-layers
Change the import and then change the merge calls in the code to Concatenate instead.

You should get a few other errors after this if you're using python3 and some updated packages. They're mostly all import errors in some source files. stack exch results on the top of the google searches got me to fix it. shouldnt be hard

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