Skip to content

Import error for Adam optimizer #4

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

Open
gillesoldano opened this issue Aug 30, 2021 · 1 comment
Open

Import error for Adam optimizer #4

gillesoldano opened this issue Aug 30, 2021 · 1 comment

Comments

@gillesoldano
Copy link

Hi @jcvasquezc

While using the disvoice library I encountered this AttributeError when importing the Adam optimizer from keras:
AttributeError: module 'keras.optimizers' has no attribute 'Adam'

This occurs in the phonet.py. What worked for me was replacing all the keras imports, for example from keras import optimizers to from tensorflow.keras import optimizers.

I don't know if it's only me getting this problem, if not, could you kindly make a release with this few changes.
Best regards.

@wulingyu1028
Copy link

Hi,
pip uninstall keras
pip install --upgrade tensorflow
would be helpful.

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