MCPcopy Index your code
hub / github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait

github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
200 symbols 455 edges 21 files 31 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ComfyUI-AdvancedLivePortrait

Update

8/21/2024

You can create a video without a video.

Track the face of the source video.

The workflow has been updated.

Introduction

AdvancedLivePortrait is faster and has real-time preview

https://github.com/user-attachments/assets/90b78639-6477-48af-ba49-7945488df581

Edit facial expressions in photos.

Insert facial expressions into videos.

Create animations using multiple facial expressions.

Extract facial expressions from sample photos.

Installation

This project has been registered with ComfyUI-Manager. Now you can install it automatically using the manager.

Usage

The workflows and sample datas placed in '\custom_nodes\ComfyUI-AdvancedLivePortrait\sample\'


You can add expressions to the video. See 'workflow2_advanced.json'.

Describes the 'command' in 'workflow2_advanced.json'

readme

[Motion index] = [Changing frame length] : [Length of frames waiting for next motion]

Motion index 0 is the original source image.

They are numbered in the order they lead to the motion_link.

Linking the driving video to 'src_images' will add facial expressions to the driving video.


You can save and load expressions with the 'Load Exp Data' 'Save Exp Data' nodes.

\ComfyUI\output\exp_data\ Path to the folder being saved


Thanks

Original author's link : https://liveportrait.github.io/

This project uses a model converted by kijai. link : https://github.com/kijai/ComfyUI-LivePortraitKJ

Core symbols most depended-on inside this repo

get
called by 29
LivePortrait/utils/face_analysis_diy.py
get_rgb_size
called by 6
nodes.py
headpose_pred_to_degree
called by 6
LivePortrait/utils/camera.py
get_model_dir
called by 5
nodes.py
load_model
called by 5
nodes.py
retargeting
called by 4
nodes.py
get_pipeline
called by 4
nodes.py
add
called by 4
nodes.py

Shape

Method 113
Function 50
Class 37

Languages

Python100%

Modules by API surface

nodes.py62 symbols
LivePortrait/modules/util.py51 symbols
LivePortrait/utils/video.py12 symbols
LivePortrait/utils/helper.py12 symbols
LivePortrait/modules/convnextv2.py9 symbols
LivePortrait/live_portrait_wrapper.py9 symbols
LivePortrait/utils/io.py7 symbols
LivePortrait/modules/dense_motion.py6 symbols
LivePortrait/utils/timer.py5 symbols
LivePortrait/utils/face_analysis_diy.py5 symbols
LivePortrait/modules/warping_network.py4 symbols
LivePortrait/modules/stitching_retargeting_network.py4 symbols

For agents

$ claude mcp add ComfyUI-AdvancedLivePortrait \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact