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

Tacotron2 TTS demo: Adapt to the latest tensorflow #117

Open
r9y9 opened this issue Sep 29, 2018 · 13 comments
Open

Tacotron2 TTS demo: Adapt to the latest tensorflow #117

r9y9 opened this issue Sep 29, 2018 · 13 comments

Comments

@r9y9
Copy link
Owner

r9y9 commented Sep 29, 2018

It seems there's no clean way to downgrade tensorflow on google colab, so we might need to update https://github.com/r9y9/Tacotron-2 to make it run on the latest tensorflow.

@sandeepnedeng
Copy link

Up vote!

@m-toman
Copy link

m-toman commented Sep 30, 2018

Actually for me adding
! pip install "tensorflow<=1.9.0"
worked.

But I agree about the "clean" thing ;)

r9y9 added a commit to r9y9/Colaboratory that referenced this issue Oct 13, 2018
@yhgon
Copy link

yhgon commented Oct 29, 2018

If you want to use GPU in mel generation in COLAB, eliminate current tensorflow 1.12r0x and re-install tensorflow-gpu==1.9.0 However, it requires to install exactly matching CUDA libraries. so below script you could some CUDA libraries which COLAB didn't included such as cublas-9.0

before git clone the files run below script. it take 10 minutes to prepare jupyter each time. It's temporal solution before current tf tacotron2 implementation support tensorflow 1.12.x,

%%bash
nvidia-smi
pip3 uninstall -y tensorflow tensorflow-gpu pytorch torch
rm -rf cuda-repo*
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
apt-get install dirmngr
dpkg -i cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
apt-get update
apt-get install  -y --no-install-recommends  \
 cuda-core-9-0 \
 cuda-cublas-9-0 cuda-cublas-dev-9-0 cuda-cudart-9-0 cuda-cudart-dev-9-0 \
 cuda-cufft-9-0 cuda-cufft-dev-9-0 cuda-curand-9-0 cuda-curand-dev-9-0 \
 cuda-cusolver-9-0 cuda-cusolver-dev-9-0 cuda-cusparse-9-0 \
 cuda-cusparse-dev-9-0 \
 cuda-libraries-9-0 cuda-libraries-dev-9-0 \
 cuda-misc-headers-9-0 cuda-npp-9-0 cuda-npp-dev-9-0 \
 cuda-nvgraph-9-0 cuda-nvgraph-dev-9-0 cuda-nvml-dev-9-0 cuda-nvrtc-9-0 \
 cuda-nvrtc-dev-9-0
rm -rf cuda-repo*
rm -rf wget-log*
pip3 install -q tensorflow-gpu==1.9.0  
pip3 install -q torch

it takes about 17 min x 2 to generate 'good job wavenet'
0%| | 3/26624 [00:00<15:42, 28.26it/s]
0 good job wavenet
100%|██████████| 26624/26624 [16:01<00:00, 27.70it/s]

@r9y9 r9y9 changed the title Tacotron2 : TTS demo is not working anymore due to the tensorflow version upgrade Tacotron2 TTS demo: Adapt to the latest tensorflow Nov 29, 2018
@stale
Copy link

stale bot commented May 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 30, 2019
@r9y9 r9y9 added help wanted and removed wontfix labels May 30, 2019
@japita-se
Copy link

somebody get working the google colab notebook?

@r9y9
Copy link
Owner Author

r9y9 commented Aug 22, 2019

Didn't it work?

@r9y9
Copy link
Owner Author

r9y9 commented Aug 22, 2019

btw I'm unlikely to have time to do this for a while... pretty busy recently.

@MohammadJavadD
Copy link

MohammadJavadD commented Apr 18, 2020

! pip install tensorflow==1.6
! pip install keras==2.2.0

@japita-se I've tried this and it works.

@MohammadJavadD
Copy link

Hi @r9y9,
I almost have done this. How do you want to update that? I mean a new branch or what?

@r9y9
Copy link
Owner Author

r9y9 commented Apr 22, 2020

@MohammadJavadD HI, thank you for working on this. If the changes are only for the notebook, I would appreciate it if you make a PR to https://github.com/r9y9/Colaboratory.

Did you make changes to Tacotron2 code as well?

@MohammadJavadD
Copy link

MohammadJavadD commented Apr 22, 2020

@MohammadJavadD HI, thank you for working on this. If the changes are only for the notebook, I would appreciate it if you make a PR to https://github.com/r9y9/Colaboratory.

Did you make changes to Tacotron2 code as well?

@r9y9
The problem is tf.compat which have used on both Tacotron2 and WaveNet_vocoder so I followed what was done on WaveNet_vocoder newest version (Copying module) so all three repos need to change a bit. Also, the params.py file has changed in the different versions of WaveNet_vocoder (builder parameter).

@do-web
Copy link

do-web commented May 5, 2021

The current codelab demo is not working, any updates here?

@qwertyuu
Copy link

https://colab.research.google.com/drive/1EPoNkTHIyYeLq_fZZY5HS1ecjCUQEGvg?usp=sharing

That one works on my end, but it uses TF 1.x instead of TF 2.x. I just removed/adjusted the code where it needed to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants