DiffSinger

MoonInTheRiverMIT活跃维护

基于浅层扩散机制的歌声合成与语音合成模型,AAAI 2022 官方实现,支持 MIDI 输入生成歌声,兼顾合成质量与推理速度。

DiffSinger: Singing Voice Synthesis via Shallow Diffusion Mechanism (SVS & TTS); AAAI 2022; Official code

pretrain-model发布于 2022-01-17 03:30 UTC4,894star +1 / 7 天833fork同步于 2026-11-10 05:36 UTC

怎么上手

由 README 提炼,执行前请确认
conda create -n your_env_name python=3.8
source activate your_env_name
pip install -r requirements_2080.txt
硬件要求按 README 说明

README 按 GPU 2080Ti(CUDA 10.2)和 3090(CUDA 11.4)分别提供依赖文件,未说明显存大小与 CPU 运行情况

需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

AAAI 2022 官方 PyTorch 实现,用浅层扩散做歌声合成与语音合成

基于浅层扩散机制的歌声合成与语音合成模型,AAAI 2022 官方实现,支持 MIDI 输入生成歌声,兼顾合成质量与推理速度。

核心能力

  • 用浅层扩散机制加速扩散模型的采样过程
  • 同时支持歌声合成 SVS 与文本转语音 TTS
  • 提供歌词加 MIDI 或歌词加 F0 两条合成流程
  • 集成 HiFiGAN 与 NSF-HiFiGAN 声码器输出波形
  • 可选 PNDM/PLMS 插件进一步加速推理

容易踩的坑

依赖按显卡区分,2080Ti 用 requirements_2080.txt、3090 用 requirements_3090.txt,装错易出问题;虚拟环境方式需先固定 numpy==1.19.1 和 torch==1.9.0;具体训练与推理步骤分散在 docs 下的多份子文档,需按所选流程另读

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本pretrain-model
  1. pretrain-modelCodes with pretrained models最新正式版2022-01-17 · 2022-01-17 03:30 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    DiffSinger: Singing Voice Synthesis via Shallow Diffusion Mechanism

    arXiv GitHub Stars downloads Hugging Face Hugging Face

    This repository is the official PyTorch implementation of our AAAI-2022 paper, in which we propose DiffSinger (for Singing-Voice-Synthesis) and DiffSpeech (for Text-to-Speech).

    :tada: :tada: :tada: Updates:

    • Sep.11, 2022: :electric_plug: DiffSinger-PN. Add plug-in PNDM, ICLR 2022 in our laboratory, to accelerate DiffSinger freely.
    • Jul.27, 2022: Update documents for SVS. Add easy inference A & B; Add Interactive SVS running on HuggingFace🤗 SVS.
    • Mar.2, 2022: MIDI-B-version.
    • Mar.1, 2022: NeuralSVB, for singing voice beautifying, has been released.
    • Feb.13, 2022: NATSpeech, the improved code framework, which contains the implementations of DiffSpeech and our NeurIPS-2021 work PortaSpeech has been released.
    • Jan.29, 2022: support MIDI-A-version SVS.
    • Jan.13, 2022: support SVS, release PopCS dataset.
    • Dec.19, 2021: support TTS. HuggingFace🤗 TTS

    :rocket: News:

    • Feb.24, 2022: Our new work, NeuralSVB was accepted by ACL-2022 arXiv. Demo Page.
    • Dec.01, 2021: DiffSinger was accepted by AAAI-2022.
    • Sep.29, 2021: Our recent work PortaSpeech: Portable and High-Quality Generative Text-to-Speech was accepted by NeurIPS-2021 arXiv .
    • May.06, 2021: We submitted DiffSinger to Arxiv arXiv.

    Environments

    1. If you want to use env of anaconda:

      conda create -n your_env_name python=3.8
      source activate your_env_name 
      pip install -r requirements_2080.txt   (GPU 2080Ti, CUDA 10.2)
      or pip install -r requirements_3090.txt   (GPU 3090, CUDA 11.4)
      
    2. Or, if you want to use virtual env of python:

      ## Install Python 3.8 first. 
      python -m venv venv
      source venv/bin/activate
      # install requirements.
      pip install -U pip
      pip install Cython numpy==1.19.1
      pip install torch==1.9.0
      pip install -r requirements.txt
      

    Documents

    Overview

    Mel PipelineDatasetPitch InputF0 PredictionAcceleration MethodVocoder
    DiffSpeech (Text->F0, Text+F0->Mel, Mel->Wav)LjspeechNoneExplicitShallow DiffusionHiFiGAN
    DiffSinger (Lyric+F0->Mel, Mel->Wav)PopCSGround-Truth F0NoneShallow DiffusionNSF-HiFiGAN
    DiffSinger (Lyric+MIDI->F0, Lyric+F0->Mel, Mel->Wav)OpenCpopMIDIExplicitShallow DiffusionNSF-HiFiGAN
    FFT-Singer (Lyric+MIDI->F0, Lyric+F0->Mel, Mel->Wav)OpenCpopMIDIExplicitInvalidNSF-HiFiGAN
    DiffSinger (Lyric+MIDI->Mel, Mel->Wav)OpenCpopMIDIImplicitNonePitch-Extractor + NSF-HiFiGAN
    DiffSinger+PNDM (Lyric+MIDI->Mel, Mel->Wav)OpenCpopMIDIImplicitPLMSPitch-Extractor + NSF-HiFiGAN
    DiffSpeech+PNDM (Text->Mel, Mel->Wav)LjspeechNoneImplicitPLMSHiFiGAN

    Tensorboard

    tensorboard --logdir_spec exp_name
    

    Citation

    @article{liu2021diffsinger,
      title={Diffsinger: Singing voice synthesis via shallow diffusion mechanism},
      author={Liu, Jinglin and Li, Chengxi and Ren, Yi and Chen, Feiyang and Liu, Peng and Zhao, Zhou},
      journal={arXiv preprint arXiv:2105.02446},
      volume={2},
      year={2021}}
    

    Acknowledgements

    Especially thanks to:

    • Team Openvpi's maintenance: DiffSinger.
    • Your re-creation and sharing.