smthemex 6ae9faaede Merge pull request #25 from oldskool978/main
moved VAE so weights and tensors reside on the same hardware.
2025-02-14 11:19:53 +08:00
2025-02-07 17:33:15 +08:00
2025-02-13 13:51:59 +08:00
2025-02-11 10:22:17 +08:00
2025-02-07 17:32:06 +08:00
2025-02-11 10:14:01 +08:00
2025-02-07 17:32:06 +08:00
2025-02-13 13:52:24 +08:00
2025-02-11 10:08:14 +08:00
2025-02-07 17:32:06 +08:00
2025-02-07 14:28:05 +08:00
2025-02-14 09:06:12 +08:00
2025-02-07 17:32:06 +08:00
2025-02-14 09:09:04 +08:00
2025-02-13 18:16:11 +08:00
2025-02-14 09:05:04 +08:00

ComfyUI_Sonic

Sonic is a method about ' Shifting Focus to Global Audio Perception in Portrait Animation',you can use it in comfyUI

Update

  • fix some code try to adapt MAC 修改一些代码,看是否能适配MAC。
  • Replace 'frame number' with 'duration',you can use it to change 'infer audio seconds'. 使用duration替换frame number选项,用于控制输出音频的长度(单位为秒),注意因为实际对比长度是音频振幅数组,不是百分比精准;
  • Fixed the bug of batch mismatch when the frame rate is not 25.修复帧率不是25时,batch不匹配的bug。

1. Installation

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

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

2. Requirements

pip install -r requirements.txt

3.Model

  • 3.1.1 download checkpoints from google 从Google下载必须的模型,文件结构如下图
  • 3.1.2 download openai/whisper-tiny
--  ComfyUI/models/sonic/
    |-- audio2bucket.pth
    |-- audio2token.pth
    |-- unet.pth
    |-- yoloface_v5m.pt
    |-- whisper-tiny/
        |--config.json
        |--model.safetensors
        |--preprocessor_config.json
    |-- RIFE/
        |--flownet.pkl
--   ComfyUI/models/checkpoints
    ├── svd_xt.safetensors  or  svd_xt_1_1.safetensors

Example

  • newest 最新

Previous update

  • Change the model loading to a monolithic SVD model, 模型加载改为单体SVD模型;
  • Support output of non square images,OOM 支持非正方形图片的输出,容易OOM;
  • image_size is used to control the minimum size of the output image. If OOM, please reduce this value ,image_size用于控制输出图片的最小尺寸,如果OOM请调小这个数值;
  • 感谢@civen-cn 提交的PR

Citation

@article{ji2024sonic,
  title={Sonic: Shifting Focus to Global Audio Perception in Portrait Animation},
  author={Ji, Xiaozhong and Hu, Xiaobin and Xu, Zhihong and Zhu, Junwei and Lin, Chuming and He, Qingdong and Zhang, Jiangning and Luo, Donghao and Chen, Yi and Lin, Qin and others},
  journal={arXiv preprint arXiv:2411.16331},
  year={2024}
}

@article{ji2024realtalk,
  title={Realtalk: Real-time and realistic audio-driven face generation with 3d facial prior-guided identity alignment network},
  author={Ji, Xiaozhong and Lin, Chuming and Ding, Zhonggan and Tai, Ying and Zhu, Junwei and Hu, Xiaobin and Luo, Donghao and Ge, Yanhao and Wang, Chengjie},
  journal={arXiv preprint arXiv:2406.18284},
  year={2024}
}
S
Description
No description provided
Readme MIT
5.5 MiB
Languages
Python 100%