ComfyUI Extension: ComfyUI_SongGeneration

Authored by smthemex

Created

Updated

160 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

a/SongGeneration:High-Quality Song Generation with Multi-Preference Alignment (SOTA),you can try VRAM>12G

Looking for a different extension?

Custom Nodes (0)

    README

    ComfyUI_SongGeneration

    SongGeneration:High-Quality Song Generation with Multi-Preference Alignment (SOTA),you can try VRAM>12G

    Update

    • 支持v2模型,加入transformer2的层卸载以方便12G Vram用户,需要使用新的工作流,加入gguf模型支持,以加快推理速度,修复offload的bug
    • support v2 model, gguf,fix offload bugs.

    Previous

    • 11/22 修复入参顺序颠倒的错误,修复一个找很久没找到的print,并修复其模块导入问题
    • 10/23 同步官方代码,删除fairseq库,已无安装难度;
    • 10/21同步官方代码,精简模型加载,删除hubert模型,优化lm模型加载顺序,避免转移到显存时峰值OOM;
    • 10/18 修改加载流程,支持最新的full ,new,large模型,large模型12GVram可能会OOM,修复高版本transformer 的函数错误/Modify the loading process to support the latest full, new, and large models, and fix function errors in higher versions of transformers
    • 07/29,支持bgm和人声(vocal,目前还是有bgm底噪)单独输出,选择mixed为合成全部,模型加载方式更合理,去掉诸多debug打印,新增save_separate按钮,开启则保存三个音频(bgm,vocal,mixed);
    • Test env(插件测试环境):window11,python3.11, torch2.6 ,cu124, VR12G,(transformers 4.45.1)

    1. Installation

    In the ./ComfyUI/custom_nodes directory, run the following:

    git clone https://github.com/smthemex/ComfyUI_SongGeneration.git
    

    2. Requirements

    • 如果缺失库,打开requirements_orgin.txt文件,看是少了哪个,手动安装;
    • If the library is missing, open the ’requirements_orgin.txt‘ file and see which one is missing, then manually install it;
    pip install -r requirements.txt
    

    3.Model

    --  ComfyUI/models/SongGeneration/ # 24.4G all 整个文件夹的大小
        |-- htdemucs.pth #150M
        |--prompt.pt  # 3M
        |--new_prompt.pt  # 3M
        |--new_auto_prompt.pt  # v2 version V2版本
        |--model_2.safetensors
        |--model_2_fixed.safetensors
        |--new_model.pt  # rename from model.pt #可选
        |--large_model.pt  #  rename from model.pt #可选
        |--large_model_v2.pt  # must to rename from model.pt #必须重命名才能识别 v2版本
        |--large_model_v2_Q8_0.gguf  # or Q6,optional 可选
        |-- ckpt/  
            |--encode-s12k.pt  # 3.68G
    --  ComfyUI/models/vae/
        |--autoencoder_music_1320k.ckpt
    --  ComfyUI/models/gguf/
        |--large_model_v2_Q8_0.gguf  # or Q6,optional 可选
    

    4 Example

    5 Citation

    @article{lei2025levo,
      title={LeVo: High-Quality Song Generation with Multi-Preference Alignment},
      author={Lei, Shun and Xu, Yaoxun and Lin, Zhiwei and Zhang, Huaicheng and Tan, Wei and Chen, Hangting and Yu, Jianwei and Zhang, Yixuan and Yang, Chenyu and Zhu, Haina and Wang, Shuai and Wu, Zhiyong and Yu, Dong},
      journal={arXiv preprint arXiv:2506.07520},
      year={2025}
    }
    

    Run ComfyUI workflows without the setup

    No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

    Learn more