Closed sayakpaul closed 3 years ago
ONNX does not export custom parameters. weight
is manually created.
BTW you might try to export SpeedySpeech model as an alternative. It'd be a nice PR as well.
Cc'ing @tulasiram58827.
Tulasi and I have worked on a couple of TFLite conversions of popular TTS models. We were able to convert GlowTTS from pth
to onnx
to tflite
. But inference is breaking with the converted TFLite model. We have raised an issue on TensorFlow's GitHub as well.
SpeedySpeech seems like a good candidate for our repository that I mentioned above. Will keep you posted if we end up converting it.
@sayakpaul I tried Speedy Speech also but having some onnx operator issues. Didn't remember exactly what is the issue. Will share once I found the notebook.
Cc'ing @tulasiram58827.
Tulasi and I have worked on a couple of TFLite conversions of popular TTS models. We were able to convert GlowTTS from
pth
toonnx
totflite
. But inference is breaking with the converted TFLite model. We have raised an issue on TensorFlow's GitHub as well.SpeedySpeech seems like a good candidate for our repository that I mentioned above. Will keep you posted if we end up converting it.
Thx for the update. Have you tried running inference on ONNX for Glow TTS ?
Yes
and does it work?
Yes it works
Then I guess you fixed the problem above :)
Hmm Yes :) . But our end goal is to make inference with TFLite format
Hmm Yes :) . But our end goal is to make inference with TFLite format
Just to expand on this point, it's so because we are broadly interested in exploring the limits of TinyML and EdgeML for that matter. ONNX solves the unification problem pretty well but to make these SoTA models accessible to a wide range of developer audience (like Mobile Application Developers) we believe tools like TensorFlow Lite is necessary.
Cc'ing @tulasiram58827.
Tulasi and I have worked on a couple of TFLite conversions of popular TTS models. We were able to convert GlowTTS from
pth
toonnx
totflite
. But inference is breaking with the converted TFLite model. We have raised an issue on TensorFlow's GitHub as well.SpeedySpeech seems like a good candidate for our repository that I mentioned above. Will keep you posted if we end up converting it. @sayakpaul You have able to convert glowTTS weeights to onnx. can you pls help me in this regard. can you pls share any reference for this.
Yes it works
@tulasiram58827 I am getting error while onnx inferencing for glowTTS. can you pls help me in this regard
Yes it works
@tulasiram58827 looking forward from hearing from you
Hello.
I am trying to convert the Glow TTS model from PyTorch to ONNX. I am running in to the following issue during the export step -
Here’s my Colab Notebook for the full reproduction of the issue - https://colab.research.google.com/gist/sayakpaul/96f00d33385cbb2c97e1befedcf2e3cd/copy-of-glow_tts.ipynb. Any directions to solve this issue would be greatly helpful.