NVIDIA / tacotron2

Tacotron 2 - PyTorch implementation with faster-than-realtime inference
BSD 3-Clause "New" or "Revised" License
5.06k stars 1.38k forks source link

Tacotron 2 no longer works on Google colab #582

Open JCThornton90 opened 1 year ago

JCThornton90 commented 1 year ago

Since Google colab no longer functions with Tensorflow 1, it has corrupted Tacotron 2 training and synthesis notebooks. Even when I use the Tensorflow 2, it still corrupts Tacotron 2 by not recognizing the child directories. Like: os.chdir('tacotron2') no longer functions. Is there a way to fix?

Colabnoob commented 1 year ago

I am looking for a fix too, have you found a solution?

parapsychic commented 1 year ago

Upgrade the Tacotron repo (this repo) to use TensorFlow 2 !tf_upgrade_v2 --intree "/content/tacotron2" --outtree "/content/tacotron2_v2" --reportfile "/content/report.txt"

I go the extra steps and rename the new version to "tacotron" by executing the following: mv tacotron2 tacotron2_v1 mv tacotron2_v2 tacotron

You should also change the hparams.py file by following the steps in this comment linked below as TF2 does not support contrib. https://github.com/NVIDIA/tacotron2/issues/278#issuecomment-1217529009