LivePortrait | AI Portrait Animation Skill

A汉堡包 · Skills

Upload a photo of a person and a driving video to generate a dynamic portrait that follows the motion and facial expression changes.

Price
¥1
Compatible model
通用
Version
v1.0
Delivery
Download · ZIP archive

About this work

An AI portrait animation Skill based on LivePortrait that combines a person's photo or video with driving motion to generate a dynamic portrait video with synchronized facial expressions and poses.

How to use:

1. Extract liveportrait.zip into your Skill directory and restart Codex.

2. Prepare:

- A photo or video of a person

- A driving video

- The LivePortrait upstream repository, Python 3.10, FFmpeg, PyTorch, and model weights

3. In the conversation, simply say:

> Please use LivePortrait to make this person's photo follow this driving video's facial expressions and pose changes, and output an MP4.

4. Command-line invocation:

python scripts/liveportrait.py check \

--repo-dir "/path/to/LivePortrait"

python scripts/liveportrait.py run \

--repo-dir "/path/to/LivePortrait" \

--source "/path/to/source.jpg" \

--driving "/path/to/driving.mp4" \

--output-dir "/path/to/output" \

--crop-driving

The generated video will be saved in the output folder. You can also launch the local Gradio interface:

python scripts/liveportrait.py serve \

--repo-dir "/path/to/LivePortrait" \

--port 8890