question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FS2 + MBMelgan Speech sounds much worse when exported to TFLite in Android

See original GitHub issue

Hi,

I have trained a FS2 model and fine-tuned my MBMelgan model. Here is a sample of the speech produced in Python before exporting to TFLite: Normal FS2 and MBMelgan.

Once converted to TFLite and used in Android (based on TensorFlowTTS/examples/android/) the models sound much worse…

  1. Using my FS2 model + repo’s pretrained multiband_melgan.v1_24k, both exported as TFLite. Speech

  2. Using my FS2 model + my MB MelGAN, both exported as TFLite. Speech

  • In 1 and 2 the speech sounds lower quality, the voice is less life-like and sounds less like my speaker. It’s also much lower pitch, even though f0_ratio 1.0 is passed into both models.

  • When using my vocoder in (2) you can hear low-frequency crackling you do not hear before converting to TFLite.

Is it normal to expect the model to sound worse once exported to TFLite?

Why do you think my vocoder adds crackling noise but the repo’s pre-trained one does not?

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:30 (22 by maintainers)

github_iconTop GitHub Comments

3reactions
monatiscommented, Dec 7, 2020

Hi @OscarVanL, this is what I also observed in German model I trained. Basically, I obtained good results after removing optimizations with:

converter.optimizations = []

Default optimizations do not disturb the performance of Tacotron 2 seriously, but the performance of Multi-band MelGAN quickly degrades with optimizations. So I applied them to the former but not to the latter.

1reaction
OscarVanLcommented, Dec 9, 2020

Sometimes it’s so easy to narrow your vision on something you miss the obvious…

Thanks for your excellent Android example model, it works really well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when using fastspeech2 Tflite model with Android studio
Hi, I am getting this error when trying to run my Tflte model on Android studio: E/InputWorker: Exception: java.lang.
Read more >
Exporting Edge models | AutoML Vision - Google Cloud
After exporting your model to a Google Cloud Storage bucket you can deploy your AutoML Vision Edge model on Android devices, iOS devices,...
Read more >
Top issues for TensorSpeech/tensorflowtts GitHub project ...
Discussion FastSpeech Feature Request enhancement question ❓ ... FS2 + MBMelgan Speech sounds much worse when exported to TFLite in Android.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found