unet-rgb icon indicating copy to clipboard operation
unet-rgb copied to clipboard

TypeError: 'module' object is not callable

Open manvirvirk opened this issue 5 years ago • 3 comments

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?

manvirvirk avatar Apr 10 '20 19:04 manvirvirk

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

ShawDa avatar Apr 22 '20 16:04 ShawDa

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

anomoto avatar Dec 03 '20 10:12 anomoto

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

dehai-bai avatar Jan 23 '21 08:01 dehai-bai