git clone https://github.com/equal-singer/DiffSingerMiniEngine.git
Docker build -t diff-singer-engine .
Docker run -d -p 9266:9266 --name diff-singer-engine diff-singer-engine
워크스테이션 사양에 맞춰서
--gpus
옵션 넣으면 됨
pip install -r requirements.txt
python init.py
python server.py
A minimum inference engine for DiffSinger MIDI-less mode.
- Install
onnxruntime
following 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/vocoder
directory. - Download an ONNX rhythm predictor from here and put it into
assets/rhythmizer
directory. - Put your ONNX acoustic models into
assets/acoustic
directory. - Edit
configs/default.yaml
or create another config file according to your preference and local environment. - Run server with
python server.py
orpython 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.