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

Not able to find encoder.onnx and decoder.onnx #3

Open
patel-lyzr opened this issue May 3, 2024 · 3 comments
Open

Not able to find encoder.onnx and decoder.onnx #3

patel-lyzr opened this issue May 3, 2024 · 3 comments

Comments

@patel-lyzr
Copy link

patel-lyzr commented May 3, 2024

@marty1885 Where to find encoder.onnx and decoder.onnx?

@marty1885
Copy link
Owner

Please read the README. The file is on HuggingFace
https://huggingface.co/marty1885/streaming-piper/tree/main/ljspeech

@patel-lyzr
Copy link
Author

@marty1885 Thank you for the prompt reply, I would like know to how to convert Other Piper models to encoder and decoder, or is there any way to use this piper models directly. to try other Voices, I read the readme. it has the link to training code. and the piper lib.

@marty1885
Copy link
Owner

marty1885 commented May 11, 2024

@patel-lyzr Please refer to the obtaining model section of the README document.

Quote:

to convert checkpoints into ONNX file pairs, you'll need mush42's piper fork and the streaming branch. Run

python3 -m piper_train.export_onnx_streaming /path/to/your/traning/lighting_logs/version_0/checkpoints/blablablas.ckpt /path/to/output/directory

The branch has been merged into Piper so the latest version of piper should work just fine. But you NEED the checkpoint file generated during the training process. That's what generates the ONNX models. You cannot convert Piper's ONNX models into streaming format (not without major effort and some deep ONNX hacking at least).

If you don't have that - unfortunately you have to train one from scratch. It's not that hard though. I trained the demo LJSpeech one over a single weekend with a single 3090. The training process is also well documented in Piper's documents.

Or, just ask the model's creator and see if they can release the checkpoint.

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

No branches or pull requests

2 participants