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

Fixed get_custom_objects() import #128

Merged
merged 2 commits into from
Aug 24, 2020
Merged

Fixed get_custom_objects() import #128

merged 2 commits into from
Aug 24, 2020

Conversation

burntcarrot
Copy link
Contributor

@burntcarrot burntcarrot commented Aug 6, 2020

The issue of an old import has been fixed. keras.utils.generic_utils is now keras.utils.

References:

Fixed #127

Copy link
Owner

@qubvel qubvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it in try-catch block (not just replace, but another variant in case of exception) to save backward compatibility.

@burntcarrot
Copy link
Contributor Author

@qubvel Could you please review the changes?

@qubvel qubvel merged commit d5f4d3f into qubvel:master Aug 24, 2020
@qubvel
Copy link
Owner

qubvel commented Aug 24, 2020

Thanks!

@tarunnith
Copy link

tarunnith commented Nov 17, 2020

I have imported the segmentation model and still getting this error--

AttributeError: module 'keras.utils' has no attribute 'generic_utils' but resolved after downgrading the tensorflow to the version 2.1.0

pip install tensorflow==2.1.0

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

Successfully merging this pull request may close these issues.

AttributeError: module 'keras.utils' has no attribute 'generic_utils'
3 participants