basveeling / wavenet

Keras WaveNet implementation
https://soundcloud.com/basveeling/wavenet-sample
1.06k stars 219 forks source link

ReduceLROnPlateau is not importing from keras.callbacks #1

Closed rlkelly closed 7 years ago

rlkelly commented 7 years ago

ImportError: cannot import name ReduceLROnPlateau

It appears I am having trouble with the modified install of keras, I'm going to try again in a virtual environment and see if that's the problem.

rlkelly commented 7 years ago

It appears that was the issue, It might be helpful to put a note about using a virtual environment in the quickstart guide.

R-Gaurav commented 7 years ago

hello all, I am also getting "ImportError: cannot import name ReduceLROnPlateau". I tried installing a new tensorflow environment through conda and the installing keras via pip in the same environment. I also referred https://github.com/basveeling/wavenet/issues/5. But the issue still persists. Can some one help? Thanks for your interest.

anewlearner commented 7 years ago

@R-Gaurav

  1. Update keras(The master branch does not have ReduceLROnPlateau now ).
  2. from keras.callbacks import ReduceLROnPlateau ReduceLROnPlateau is not imported from optimizers but callbacks.
JagadishSivakumar commented 4 years ago

This worked for me, from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau