1 Star 0 Fork 0

idea/ComfyUI_DiffRhythm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

中文 | English

DiffRhythm 的 ComfyUI 节点

快速而简单的端到端全长歌曲生成.

📣 更新

[2025-03-21]⚒️: 代码重构, 超快生成速度, 4分45秒音乐, 20秒不到生成, 1分35秒音乐, 7秒不到生成. 增加更多可调参数, 畅玩更自由. 可选是否卸载模型.

[2025-03-16]⚒️: 发布版本 v2.0.0. 支持全长音乐生成, 4 分钟仅需 62 秒.

下载模型放到 ComfyUI\models\TTS\DiffRhythm 文件夹下:

  • DiffRhythm-full 模型重命名为 cfm_full_model.pt, 同时下载 comfig.json 放到一起.

[2025-03-13]⚒️: 发布版本 v1.0.0.

  • 所有参数均是可选的, 不提供任何参数随机生成音乐.

安装

cd ComfyUI/custom_nodes
git clone https://github.com/billwuhao/ComfyUI_DiffRhythm.git
cd ComfyUI_DiffRhythm
pip install -r requirements.txt

# python_embeded
./python_embeded/python.exe -m pip install -r requirements.txt

模型下载

模型会自动下载到 ComfyUI\models\TTS\DiffRhythm 文件夹下.

结构如下:

手动下载地址:

https://huggingface.co/ASLP-lab/DiffRhythm-base/blob/main/cfm_model.pt
https://huggingface.co/ASLP-lab/DiffRhythm-vae/blob/main/vae_model.pt
https://huggingface.co/OpenMuQ/MuQ-MuLan-large/tree/main
https://huggingface.co/OpenMuQ/MuQ-large-msd-iter/tree/main
https://huggingface.co/FacebookAI/xlm-roberta-base/tree/main

环境配置

Windows 系统做如下配置.

下载安装最新版 espeak-ng

添加环境变量 PHONEMIZER_ESPEAK_LIBRARY 到系统中, 值是你安装的 espeak-ng 软件中 libespeak-ng.dll 文件的路径, 例如: C:\Program Files\eSpeak NG\libespeak-ng.dll.

Linux 系统下, 需要安装 espeak-ng 软件包. 执行如下命令安装:

apt-get -qq -y install espeak-ng

应该支持 Mac, 但尚未测试.

享受音乐吧🎶

鸣谢

DiffRhythm

感谢 DiffRhythm 团队的卓越的工作, 目前最强开源 音乐/歌曲 生成模型👍.

MIT License Copyright (c) 2025 MW Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/analyzesystem/ComfyUI_DiffRhythm.git
git@gitee.com:analyzesystem/ComfyUI_DiffRhythm.git
analyzesystem
ComfyUI_DiffRhythm
ComfyUI_DiffRhythm
master

搜索帮助