tugstugi / dl-colab-notebooks

Try out deep learning models online on Google Colab
1.72k stars 465 forks source link

Issue with RealTimeVoiceCloning #20

Closed anirudhcmohan closed 4 years ago

anirudhcmohan commented 4 years ago

I'm trying to run the colab notebook exactly as specified but keep running into this error after running the first command. I've tried uninstalling + reinstalling Tensorflow, but no luck!

Error:

ImportError Traceback (most recent call last)

in () 26 from dl_colab_notebooks.audio import record_audio, upload_audio 27 ---> 28 from synthesizer.inference import Synthesizer 29 from encoder import inference as encoder 30 from vocoder import inference as vocoder 17 frames /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/saving/__init__.py in () 31 from tensorflow.python.keras.saving.save import load_model 32 from tensorflow.python.keras.saving.save import save_model ---> 33 from tensorflow.python.keras.saving.saved_model import export_saved_model 34 from tensorflow.python.keras.saving.saved_model import load_from_saved_model 35 from tensorflow.python.keras.saving.saving_utils import trace_model_call ImportError: cannot import name 'export_saved_model'
anirudhcmohan commented 4 years ago

I got it to work, never mind!

Ran the following:

%tensorflow_version 1.x import tensorflow

tugstugi commented 4 years ago

fixed in the notebook now: https://github.com/tugstugi/dl-colab-notebooks/commit/67caaeb668aa6b596b4ad3df2acf15228b5ba0be