phonet icon indicating copy to clipboard operation
phonet copied to clipboard

Import error for Adam optimizer

Open gillesoldano opened this issue 4 years ago • 1 comments

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.

gillesoldano avatar Aug 30 '21 11:08 gillesoldano

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

wulingyu1028 avatar Dec 22 '21 03:12 wulingyu1028