Closed sayakpaul closed 3 years ago
@sayakpaul tf 2.3.1 is fine :)))
@abattery @thaink can you guys help? many thanks :D
@dathudeptrai I used TensorFlow 2.4.0 since it's mentioned in @jaeyoo's initial notebook too and it's currently the most stable version.
Here's my Colab Notebook for reproducibility.
The above colab notebook works fine.
Here's my Colab Notebook for reproducibility.
The above colab notebook works fine.
I just explicit force tf-gpu==2.3.1 so the notebook works fine :D.
I just tried TensorFlow 2.3.1 and the inference results have gotten messed up now. Here's the updated Colab Notebook. Anything I am missing out on?
@dathudeptrai I've tested it before tf-gpu==2.3.1 is added. The colab notebook was successfully ran with the tf-nightly version. Now, the tf-gpu==2.3.1 requirement prevents the usage of tensorflow 2.4.0 or tensorflow nightly since the TensorFlowTTS project explicitly depends on the certain version.
@abattery possible for you to take my initial Colab Notebook and suggest any changes to run the TFLite model successfully?
I did not change anythings. In my side, it just worked with tf-nightly.
Let me try then.
@abattery with tf-nightly (2.5.0-dev20201221) the inference results get messed up. Here's my Colab Notebook - https://colab.research.google.com/gist/sayakpaul/91013bd6c48af59db8b63cdc50822fe3/tensorflowtts-fastspeech-with-tflite.ipynb.
Can you suggest further?
@abattery with tf-nightly (2.5.0-dev20201221) the inference results get messed up. Here's my Colab Notebook - https://colab.research.google.com/gist/sayakpaul/91013bd6c48af59db8b63cdc50822fe3/tensorflowtts-fastspeech-with-tflite.ipynb.
Can you suggest further?
you forgot load weight for fastspeech2. About tflite nightly, everything ok, there is no bug in tensorflowtts side and tflite side.
fastspeech._build()
fastspeech.load_weights("/content/fastspeech2-generator-1500000.h5")
Really sorry about the pesky bug. Thanks for pointing it out. It all now runs end-to-end inside Colab (updated Colab Notebook).
@dathudeptrai would you like me to submit a PR including this Colab Notebook? This might be helpful for the community in case they are interested to run it entirely on Colab.
@sayakpaul the repo includes all colab and seems you did not realize that :D. (https://colab.research.google.com/drive/1akxtrLZHKuMiQup00tzO2olCaN-y3KiD?usp=sharing, https://colab.research.google.com/drive/1HudLLpT9CQdh2k04c06bHUwLubhGTWxA?usp=sharing, https://colab.research.google.com/drive/1YpSHRBRPBI7cnTkQn1UcVTWEQVbsUm1S?usp=sharing, https://colab.research.google.com/drive/1ybWwOS5tipgPFttNulp77P6DAB5MtiuN?usp=sharing)
@dathudeptrai I am aware. Probably I failed to convey. Let me retry.
The notebook TensorFlowTTS_FastSpeech_with_TFLite.ipynb (located inside the notebooks
directory) does not run end-to-end on Colab. It will error out in its current form. Hence, I was asking as I already created a variant of the notebook that runs fully on Colab (without any errors) should I create a PR including my notebook.
Let me know if anything is unclear.
@dathudeptrai a gentle ping in case you missed my previous comment.
@dathudeptrai a gentle ping in case you missed my previous comment.
let create a PR :D.
Thanks for the go-ahead, I will proceed @dathudeptrai :)
Hi folks.
I am working to make the TensorFlowTTS_FastSpeech_with_TFLite.ipynb notebook fully runnable on Colab. After successfully converting the Fastspeech2 model to TensorFlow Lite I am unable to run inference and here's what I am getting -
I am using TensorFlow 2.4.0 (have tested with nightly too, it doesn't help). Here's my Colab Notebook for reproducibility.
Tagging in @jaeyoo for visibility.