Skip to content

equal-singer/DiffSingerMiniEngine

 
 

Repository files navigation

DiffSingerMiniEngine

Clone repo

git clone https://github.com/equal-singer/DiffSingerMiniEngine.git

도커 이미지를 빌드해서 사용하는 경우

Docker image build

Docker build -t diff-singer-engine .

Docker Run

Docker run -d -p 9266:9266 --name diff-singer-engine diff-singer-engine

워크스테이션 사양에 맞춰서 --gpus 옵션 넣으면 됨

바로 사용하는 경우


디펜던시 설치

pip install -r requirements.txt

모델 다운로드

python init.py

서버 실행 (port: 9266)

python server.py

DiffSingerMiniEngine

A minimum inference engine for DiffSinger MIDI-less mode.

Getting Started

  1. Install onnxruntime following the official guidance.
  2. Install other dependencies with pip install PyYAML soundfile.
  3. Download ONNX version of the NSF-HiFiGAN vocoder from here and unzip it into assets/vocoder directory.
  4. Download an ONNX rhythm predictor from here and put it into assets/rhythmizer directory.
  5. Put your ONNX acoustic models into assets/acoustic directory.
  6. Edit configs/default.yaml or create another config file according to your preference and local environment.
  7. Run server with python server.py or python server.py --config <YOUR_CONFIG>.

API Specification

TBD

How to Obtain Acoustic Models

  1. Train with your own dataset or download pretrained checkpoints from here.
  2. Export PyTorch checkpoints to ONNX format. See instructions here.

About

A minimum inference engine for DiffSinger

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.4%
  • Dockerfile 0.6%