ASLP-lab/DiffRhythm2 已完整同步
license: apache-2.0
Di♪♪Rhythm 2: Efficient And High Fidelity Song Generation Via Block Flow Matching
Yuepeng Jiang, Huakang Chen, Ziqian Ning, Jixun Yao, Zerui Han, Di Wu, Meng Meng, Jian Luan, Zhonghua Fu, Lei Xie†
DiffRhythm 2 (Chinese: 谛韵, Dì Yùn) is the next-generation open-sourced music generation framework that advances the original DiffRhythm with a semi-autoregressive diffusion architecture. It is capable of generating full-length songs with precise lyric alignment and coherent musical structures. The name inherits the essence of DiffRhythm — “Diff” reflects its diffusion-based generative backbone, while “Rhythm” emphasizes its dedication to musicality and temporal flow. The Chinese name 谛韵 (Dì Yùn) continues this dual symbolism: “谛” (attentive listening) represents perceptual awareness, and “韵” (melodic charm) captures the expressive beauty of music.
📢 News and Updates
- 2025.10.30 🚀 We released the DiffRhythm2 paper, demo code, and model weights.
📋 TODOs
- Support Colab.
- Gradio support.
- Song extension.
- Instrumental music generation.
- Release code and weights.
- Release paper to Arxiv.
🔨 Inference
Following the steps below to clone the repository and install the environment.
# clone and enter the repositry
git clone https://github.com/ASLP-lab/DiffRhythm2.git
cd DiffRhythm2
# install the environment
## espeak-ng
# For Debian-like distribution (e.g. Ubuntu, Mint, etc.)
sudo apt-get install espeak-ng
# For RedHat-like distribution (e.g. CentOS, Fedora, etc.)
sudo yum install espeak-ng
# For MacOS
brew install espeak-ng
# For Windows
# Please visit https://github.com/espeak-ng/espeak-ng/releases to download .msi installer
## install requirements
pip install -r requirements.txt
On Linux you can now simply use the inference script:
# For inference using a reference WAV file
bash inference.sh
Weights will be automatically downloaded from Hugging Face upon the first run.
Example files of lyrics and reference audio can be found in example.
📜 License & Disclaimer
DiffRhythm 2 (code and weights) is released under the Apache License 2.0. This open-source license allows you to freely use, modify, and distribute the model, as long as you include the appropriate copyright notice and disclaimer.
We do not make any p
7 个文件
浏览文件数据集版权信息
本数据集的许可证为 Apache License 2.0。如有违反相关条款,请联系 WEHUB,我们将及时处理。 查看许可证
通过 WeHub CLI 下载当前数据集快照。下列命令会固定为当前页面展示的数据版本(如果页面提供版本)。文件字节由本机直连存储下载,浏览器不会签发或保存下载链接。
前置要求
需要 Node.js 18 及以上,以及 npm(或 npx)。
1. 安装 CLI
npm install -g wehub-cli@latest
2. 下载此数据集
wehub datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c
若中断或部分失败,在同一目录重新执行同一命令即可续传。默认会校验 SHA-256。
免全局安装
npx --yes wehub-cli@latest datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c
高级选项
以下为 wehub datasets download 已支持的参数示例:
强制重新下载,不复用已校验的本地文件
wehub datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c --overwrite
仅包含匹配路径
wehub datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c --include "*.jsonl"
排除匹配路径
wehub datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c --exclude "*.md"
提高并发下载数
wehub datasets download ds_ext_1782_c5bbe4ae0c --revision 9aa15742e4889c0eb2e198db6fdab1facf1b6761 --output ./ds_ext_1782_c5bbe4ae0c --jobs 8
完整帮助:wehub datasets download --help