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

TypeError: 'module' object is not callable #10

Open
manvirvirk opened this issue Apr 10, 2020 · 3 comments
Open

TypeError: 'module' object is not callable #10

manvirvirk opened this issue Apr 10, 2020 · 3 comments

Comments

@manvirvirk
Copy link

Traceback (most recent call last):
File "unet.py", line 137, in
model = myunet.get_unet()
File "unet.py", line 59, in get_unet
merge6 = merge([drop4, up6], mode='concat', concat_axis=3)
TypeError: 'module' object is not callable
can anyone help?

@ShawDa
Copy link
Owner

ShawDa commented Apr 22, 2020

Check your Python and Keras version, also your import msg on top if the py file.

@anomoto
Copy link

anomoto commented Dec 3, 2020

I have solved the same problem replacing "mergeXX = merge([YYY,ZZZ], mode = 'concat', concat_axis = N)"
with "mergeXX= concatenate([YYY,ZZZ],axis=N)" via this

@dehai-bai
Copy link

Try to add 'from keras.layers import merge' in unet.py file.

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

4 participants