Low level library for DiffSinger onnx model inference.
- Vocoder Inference
- Acoustic Inference
- Duration Inference (Encoder/Decoder)
- Pitch Inference
- Variance Inference
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-windows
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg install \
--x-manifest-root=../scripts/vcpkg-manifest \
--x-install-root=./installed \
--triplet=<triplet>
# triplet:
# Mac: `x64-osx` or `arm64-osx`
# Linux: `x64-linux` or `arm64-linux`
cd libs && cmake [-Dep=gpu] -P ../scripts/setup-onnxruntime.cmake
The buildsystem is able to deploy the shared libraries to build directory and install directory automatically.
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=<dir> \ # install directory
-DCMAKE_PREFIX_PATH=<dir> \ # directory `Qt5Config.cmake` locates
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake \
-DQMSETUP_APPLOCAL_DEPS_PATHS_DEBUG=vcpkg/installed/<triplet>/debug/<runtime> \
-DQMSETUP_APPLOCAL_DEPS_PATHS_RELEASE=vcpkg/installed/<triplet>/<runtime> \
-DCMAKE_BUILD_TYPE=Release
cmake --build build --target all
cmake --build build --target install
# triplet:
# Windows: `x64-windows`
# Mac: `x64-osx` or `arm64-osx`
# Linux: `x64-linux` or `arm64-linux`
# runtime:
# Windows: `bin`
# Mac/Linux: `lib`