MCPcopy Index your code
hub / github.com/MixLabPro/comfyui-liveportrait

github.com/MixLabPro/comfyui-liveportrait @v1.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.0 ↗ · + Follow
277 symbols 810 edges 37 files 60 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LivePortrait的Comfyui版本。

!! 支持多人脸 、不同的脸 指定不同的动画

寻求帮助 Mixlab nodes discord

推荐:mixlab-nodes

更新

expression_editor:

alt text

示例工作流

表情代码:修改自ComfyUI-AdvancedLivePortrait

face crop 模型参考comfyui-ultralytics-yolo

下载 face_yolov8m.pt 或者 face_yolov8n.ptmodels/ultralytics/bbox/

教程

image

workflow

配合 comfyui-mixlab-nodes 使用

支持视频模式 video-to-video

全家福

alt text 不同脸对应不同的驱动视频 Workflow JSON

alt text

全家福 Workflow JSON

alt text

Workflow JSON

AppInfo workflow JSON

Nodes

Live Portrait,用于生成动态肖像。

输入参数: source_image:输入一张静态图像,作为生成动态肖像的基础。 driving_video:输入一个驱动视频,决定动态肖像的动作和表情变化。 crop_info:输入人脸裁剪信息,用于指定人脸的裁剪区域。

输出: video:输出生成的动态肖像视频。 video_concat:输出与驱动视频合成后的动态肖像视频(如果有的话)。

Face Crop Info,用于提取图像中的人脸裁剪信息。

可调参数: face_sorting_direction:设置人脸排序方向,可选值为 "left-right"(从左到右)或 "large-small"(从大到小)。用于在图像中包含多张人脸时,确定哪张人脸优先处理。

face_index:指定要处理的人脸索引,默认值为 -1,表示处理所有检测到的人脸。可以设置为特定的索引值以选择特定的人脸。

debug:开启或关闭调试模式。设置为 true 时,会输出调试图像以便查看人脸检测和裁剪区域;设置为 false 时,不输出调试图像。

Retargeting 可开关eye lip是否驱动

models

google drive

百度

放置到

Comfyui/models/liveportrait

Comfyui/models/insightface

python环境依赖

打包好的环境

如果安装了 comfyui-mixlab-nodes ,是不需要再安装新的依赖的。

相关插件推荐

Comfyui-ChatTTS

comfyui-sound-lab

comfyui-Image-reward

comfyui-ultralytics-yolo

comfyui-moondream

Core symbols most depended-on inside this repo

get
called by 59
nodes/LivePortrait/src/utils/face_analysis_diy.py
get_kp_info
called by 10
nodes/LivePortrait/src/live_portrait_wrapper.py
get_rotation_matrix
called by 10
nodes/LivePortrait/src/utils/camera.py
load_model
called by 10
nodes/LivePortrait/src/utils/helper.py
headpose_pred_to_degree
called by 9
nodes/LivePortrait/src/utils/camera.py
make_abs_path
called by 8
nodes/LivePortrait/src/config/base_config.py
stitching
called by 7
nodes/LivePortrait/src/live_portrait_wrapper.py
retarget_lip
called by 6
nodes/LivePortrait/src/live_portrait_wrapper.py

Shape

Method 138
Function 88
Class 51

Languages

Python100%

Modules by API surface

nodes/LivePortrait/src/modules/util.py51 symbols
nodes/expression_editor.py30 symbols
nodes/live_portrait.py24 symbols
nodes/LivePortrait/src/live_portrait_wrapper.py20 symbols
nodes/LivePortrait/src/utils/helper.py14 symbols
nodes/LivePortrait/src/utils/crop.py14 symbols
nodes/LivePortrait/src/utils/video.py12 symbols
nodes/LivePortrait/src/utils/cropper.py9 symbols
nodes/LivePortrait/src/modules/convnextv2.py9 symbols
nodes/LivePortrait/inference.py8 symbols
nodes/LivePortrait/src/utils/landmark_runner.py7 symbols
nodes/LivePortrait/src/utils/io.py7 symbols

For agents

$ claude mcp add comfyui-liveportrait \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact