一个专业的ComfyUI人脸视频裁剪节点,支持智能人脸检测、平滑追踪和镜头切换检测。
mediapipe opencv-python numpy torch
custom_nodes目录:cd ComfyUI/custom_nodes
git clone https://cnb.cool/piaoheshi/ComfyUI_FaceCrop_Simple.git
pip install -r Video-Face-Cropper-Pro/requirements.txt
custom_nodes目录pip install -r requirements.txt
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| images | IMAGE | - | 输入的图像序列 |
| target_size | INT | 512 | 输出尺寸(64-4096,步长64) |
| expansion_factor | FLOAT | 1.5 | 裁剪框扩展倍数(1.0-3.0) |
| smoothing_factor | FLOAT | 0.15 | 平滑力度(0.01-1.0) |
| shot_cut_threshold | FLOAT | 0.1 | 镜头切换阈值(0.01-0.5) |
| align_eyes | BOOLEAN | True | 是否启用眼部对齐 |
本项目遵循开源许可证,详见项目根目录LICENSE文件。
欢迎提交Issue和Pull Request来改进这个项目。