A minimum inference engine for DiffSinger MIDI-less mode.
- Install
onnxruntimefollowing the official guidance. - Install other dependencies with
pip install PyYAML soundfile. - Download ONNX version of the NSF-HiFiGAN vocoder from here and unzip it into
assets/vocoderdirectory. - Download an ONNX rhythm predictor from here and put it into
assets/rhythmizerdirectory. - Put your ONNX acoustic models into
assets/acousticdirectory. - Edit
configs/default.yamlor create another config file according to your preference and local environment. - Run server with
python server.pyorpython server.py --config <YOUR_CONFIG>.
TBD
- Train with your own dataset or download pretrained checkpoints from here.
- Export PyTorch checkpoints to ONNX format. See instructions here.