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 #29

Open
huyanfei-cqupt opened this issue Jun 5, 2020 · 2 comments
Open

TypeError: 'module' object is not callable #29

huyanfei-cqupt opened this issue Jun 5, 2020 · 2 comments

Comments

@huyanfei-cqupt
Copy link

Hi, i try to run the test code ,but i meet the above error. Has anyone encountered the same problem?

@nayeebrashid
Copy link

Hi, I am facing the same error. Have you found any solution for it?

@acer22969
Copy link

Hi,
I try to change the import method and it was works,but I am a new in Keras and tensorflow , so i don't know this fix will change final results or not .

  1. densenet121.py line 2 :
    change
    from keras.layers import Input , merge, ZeroPadding2D
    to
    from keras.layers import Input, ZeroPadding2D

  2. densenet121.py line 8 :
    add
    from keras.layers.merge import Concatenate

  3. densenet121.py line 166 :
    change
    concat_feat = merge([concat_feat, x], mode='concat', concat_axis=concat_axis, name='concat_'+str(stage)+'_'+str(branch))
    to
    concat_feat = Concatenate(axis=concat_axis)([concat_feat, x])

Hope it can help you!

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