Instructions to use Soul-AILab/LiveAct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Soul-AILab/LiveAct with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Soul-AILab/LiveAct", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +7 -0
- .ipynb_checkpoints/README-checkpoint.md +198 -0
- README.md +198 -0
- assets.zip +3 -0
- assets/.DS_Store +0 -0
- assets/1.mp4 +3 -0
- assets/2.mp4 +3 -0
- assets/demo.mp4 +3 -0
- assets/logo.png +3 -0
- assets/podcast.mp4 +3 -0
- assets/teaser1.mp4 +3 -0
- assets/teaser2.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
google/umt5-xxl/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
xlm-roberta-large/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
google/umt5-xxl/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
xlm-roberta-large/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/1.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/2.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/demo.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/logo.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
assets/podcast.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
assets/teaser1.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
assets/teaser2.mp4 filter=lfs diff=lfs merge=lfs -text
|
.ipynb_checkpoints/README-checkpoint.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div align="center">
|
| 2 |
+
|
| 3 |
+
<img src="./assets/logo.png" alt="LiveAct Logo" width="30%">
|
| 4 |
+
|
| 5 |
+
# SoulX-LiveAct: Towards Hour-Scale Real-Time Human Animation with Neighbor Forcing and ConvKV Memory
|
| 6 |
+
|
| 7 |
+
[Dingcheng Zhen*<sup>✉</sup>](https://scholar.google.com/citations?user=jSLx3CcAAAAJ) Β· [Xu Zheng*](https://scholar.google.com/citations?user=Ii1c51QAAAAJ) Β· [Ruixin Zhang*](https://openreview.net/profile?id=~Ruixin_Zhang5) Β· [Zhiqi Jiang*](https://openreview.net/profile?id=~Zhiqi_Jiang3)
|
| 8 |
+
|
| 9 |
+
[Yichao Yan]() Β· [Ming Tao]() Β· [Shunshun Yin]()
|
| 10 |
+
|
| 11 |
+
</div>
|
| 12 |
+
|
| 13 |
+
**LiveAct** presents a novel framework that enables **lifelike, multimodal-controlled, high-fidelity** human animation video generation for real-time streaming interactions.
|
| 14 |
+
|
| 15 |
+
(I) We identify diffusion-step-aligned neighbor latents as a key inductive bias for AR diffusion, providing a principled and theoretically grounded **Neighbor Forcing** for step-consistent AR video generation.
|
| 16 |
+
|
| 17 |
+
(II) We introduce **ConvKV Memory**, a lightweight plug-in compression mechanism that enables constant-memory hour-scale video generation with negligible overhead.
|
| 18 |
+
|
| 19 |
+
(III) We develop an optimized real-time system that achieves **20 FPS using only two H100/H200 GPUs** with end-end adaptive FP8 precision, sequence parallelism, and communication-computation parallelism at 720Γ416 or 512Γ512 resolution.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
<div align="center">
|
| 23 |
+
<a href='http://arxiv.org/abs/2603.11746'><img src='https://img.shields.io/badge/Technical-Report-red'></a>
|
| 24 |
+
<a href='https://demopagedemo.github.io/LiveAct/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
| 25 |
+
<a href='https://github.com/Soul-AILab/SoulX-LiveAct'><img src='https://img.shields.io/badge/Github-Home-blue'></a>
|
| 26 |
+
<a href='https://huggingface.co/Soul-AILab/LiveAct'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-yellow'></a>
|
| 27 |
+
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## π₯π₯π₯ News
|
| 32 |
+
|
| 33 |
+
* π Mar 16, 2026: We release the inference code and model weights of LiveAct.
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
## π₯ Demo
|
| 37 |
+
|
| 38 |
+
### π« Podcast
|
| 39 |
+
<div>
|
| 40 |
+
<video controls playsInline src="./assets/podcast.mp4" width="40%"></video>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
### π€ Music & Talk Show
|
| 44 |
+
<table>
|
| 45 |
+
<tr>
|
| 46 |
+
<td><video controls playsinline width="360" src="./assets/teaser1.mp4"></video></td>
|
| 47 |
+
<td><video controls playsinline width="360" src="./assets/teaser2.mp4"></video></td>
|
| 48 |
+
</tr>
|
| 49 |
+
</table>
|
| 50 |
+
|
| 51 |
+
### π± FaceTime
|
| 52 |
+
<table>
|
| 53 |
+
<tr>
|
| 54 |
+
<td><video controls playsinline width="360" src="./assets/1.mp4"></video></td>
|
| 55 |
+
<td><video controls playsinline width="360" src="./assets/2.mp4"></video></td>
|
| 56 |
+
</tr>
|
| 57 |
+
</table>
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
## π Open-source Plan
|
| 61 |
+
|
| 62 |
+
- [x] Release inference code and checkpoints
|
| 63 |
+
- [x] GUI demo Support
|
| 64 |
+
- [x] End-end adaptive FP8 precision
|
| 65 |
+
- [ ] Support FP4 precision for B-series GPUs (e.g., RTX 5090, B100, B200)
|
| 66 |
+
- [ ] Release training code
|
| 67 |
+
|
| 68 |
+
## βΆοΈ Quick Start
|
| 69 |
+
|
| 70 |
+
### π οΈ Dependencies and Installation
|
| 71 |
+
|
| 72 |
+
#### Step 1: Install Basic Dependencies
|
| 73 |
+
|
| 74 |
+
```bash
|
| 75 |
+
conda create -n liveact python=3.10
|
| 76 |
+
conda activate liveact
|
| 77 |
+
pip install -r requirements.txt
|
| 78 |
+
conda install conda-forge::sox -y
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
#### Step 2: Install SageAttention
|
| 82 |
+
To enable fp8 attention kernel, you need to install SageAttention:
|
| 83 |
+
* Install SageAttention:
|
| 84 |
+
```bash
|
| 85 |
+
pip install sageattention==2.2.0 --no-build-isolation
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
* (Optional) Install the modified version of SageAttention:
|
| 89 |
+
To enable SageAttention for QKV communicationβcomputation parallelism, you need to install it by the following command:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
git clone https://github.com/ZhiqiJiang/SageAttentionFusion.git
|
| 93 |
+
cd SageAttentionFusion
|
| 94 |
+
python setup.py install
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
#### Step 3: Install vllm:
|
| 98 |
+
To enable fp8 gemm kernel, you need to install vllm:
|
| 99 |
+
```bash
|
| 100 |
+
pip install vllm==0.11.0
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
### π€ Download Checkpoints
|
| 105 |
+
|
| 106 |
+
### Model Cards
|
| 107 |
+
| ModelName | Download |
|
| 108 |
+
|-----------------------|-------------------------------------------------------------|
|
| 109 |
+
| LiveAct | [π€ Huggingface](https://huggingface.co/Soul-AILab/LiveAct) |
|
| 110 |
+
| chinese-wav2vec2-base | π€ [Huggingface](https://huggingface.co/TencentGameMate/chinese-wav2vec2-base) |
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
### π Inference
|
| 114 |
+
|
| 115 |
+
#### Usage of LiveAct
|
| 116 |
+
|
| 117 |
+
#### 1. Run real-time streaming inference on two H100/H200 GPUs
|
| 118 |
+
|
| 119 |
+
```bash
|
| 120 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=0,1 \
|
| 121 |
+
torchrun --nproc_per_node=2 --master_port=$(shuf -n 1 -i 10000-65535) \
|
| 122 |
+
generate.py \
|
| 123 |
+
--size 416*720 \
|
| 124 |
+
--ckpt_dir MODEL_PATH \
|
| 125 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 126 |
+
--fps 20 \
|
| 127 |
+
--dura_print \
|
| 128 |
+
--input_json examples/example.json \
|
| 129 |
+
--steam_audio
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
#### 2. Run with single GPU for Eval
|
| 133 |
+
|
| 134 |
+
```bash
|
| 135 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=7 \
|
| 136 |
+
python generate.py \
|
| 137 |
+
--size 480*832 \
|
| 138 |
+
--ckpt_dir MODEL_PATH \
|
| 139 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 140 |
+
--fps 24 \
|
| 141 |
+
--input_json examples/example.json \
|
| 142 |
+
--audio_cfg 1.7 \
|
| 143 |
+
--t5_cpu
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
### Command Line Arguments
|
| 148 |
+
|
| 149 |
+
| Argument | Type | Required | Default | Description |
|
| 150 |
+
|-------------------|-------|----------|---------|-----------------------------------------------------------------------------------------------|
|
| 151 |
+
| `--size` | str | Yes | - | The width and height of the generated video. |
|
| 152 |
+
| `--t5_cpu` | bool | No | false | Whether to place T5 model on CPU. |
|
| 153 |
+
| `--offload_cache` | bool | No | - | Whether to place kv cache on CPU. |
|
| 154 |
+
| `--fps` | int | Yes | - | The target fps of the generated video. |
|
| 155 |
+
| `--audio_cfg` | float | No | 1.0 | Classifier free guidance scale for audio control. |
|
| 156 |
+
| `--dura_print` | bool | No | no | Whether print duration for every block. |
|
| 157 |
+
| `--input_json` | str | Yes | _ | The condition json file path to generate the video. |
|
| 158 |
+
| `--seed` | int | No | 42 | The seed to use for generating the image or video. |
|
| 159 |
+
| `--steam_audio` | bool | No | false | Whether inference with steaming audio. |
|
| 160 |
+
| `--mean_memory` | bool | No | false | Whether to use the mean memory strategy during inference for further performance improvement. |
|
| 161 |
+
|
| 162 |
+
### π» GUI demo
|
| 163 |
+
Run LiveAct inference on the GUI demo and evaluate real-time performance.
|
| 164 |
+
|
| 165 |
+
<div>
|
| 166 |
+
<video controls playsInline src="./assets/demo.mp4" width="50%"></video>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
**Note:** The first few blocks during the initial run require warm-up. Normal performance will be observed from the second run onward.
|
| 170 |
+
|
| 171 |
+
```bash
|
| 172 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=0,1 \
|
| 173 |
+
torchrun --nproc_per_node=2 --master_port=$(shuf -n 1 -i 10000-65535) \
|
| 174 |
+
demo.py \
|
| 175 |
+
--ckpt_dir MODEL_PATH \
|
| 176 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 177 |
+
--size 416*720 \
|
| 178 |
+
--video_save_path ./generated_videos
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
## π Citation
|
| 184 |
+
|
| 185 |
+
```bibtex
|
| 186 |
+
@misc{zhen2026soulxliveacthourscalerealtimehuman,
|
| 187 |
+
title={SoulX-LiveAct: Towards Hour-Scale Real-Time Human Animation with Neighbor Forcing and ConvKV Memory},
|
| 188 |
+
author={Dingcheng Zhen and Xu Zheng and Ruixin Zhang and Zhiqi Jiang and Yichao Yan and Ming Tao and Shunshun Yin},
|
| 189 |
+
year={2026},
|
| 190 |
+
eprint={2603.11746},
|
| 191 |
+
archivePrefix={arXiv},
|
| 192 |
+
primaryClass={cs.CV},
|
| 193 |
+
url={https://arxiv.org/abs/2603.11746},
|
| 194 |
+
}
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
## π Acknowledgements
|
| 198 |
+
We would like to thank the contributors to the [Transformers](https://github.com/huggingface/transformers), [Diffusers](https://github.com/huggingface/diffusers) , [HuggingFace](https://huggingface.co/) and [Qwen-VL](https://github.com/QwenLM/Qwen-VL), for their open research and exploration.
|
README.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div align="center">
|
| 2 |
+
|
| 3 |
+
<img src="./assets/logo.png" alt="LiveAct Logo" width="30%">
|
| 4 |
+
|
| 5 |
+
# SoulX-LiveAct: Towards Hour-Scale Real-Time Human Animation with Neighbor Forcing and ConvKV Memory
|
| 6 |
+
|
| 7 |
+
[Dingcheng Zhen*<sup>✉</sup>](https://scholar.google.com/citations?user=jSLx3CcAAAAJ) Β· [Xu Zheng*](https://scholar.google.com/citations?user=Ii1c51QAAAAJ) Β· [Ruixin Zhang*](https://openreview.net/profile?id=~Ruixin_Zhang5) Β· [Zhiqi Jiang*](https://openreview.net/profile?id=~Zhiqi_Jiang3)
|
| 8 |
+
|
| 9 |
+
[Yichao Yan]() Β· [Ming Tao]() Β· [Shunshun Yin]()
|
| 10 |
+
|
| 11 |
+
</div>
|
| 12 |
+
|
| 13 |
+
**LiveAct** presents a novel framework that enables **lifelike, multimodal-controlled, high-fidelity** human animation video generation for real-time streaming interactions.
|
| 14 |
+
|
| 15 |
+
(I) We identify diffusion-step-aligned neighbor latents as a key inductive bias for AR diffusion, providing a principled and theoretically grounded **Neighbor Forcing** for step-consistent AR video generation.
|
| 16 |
+
|
| 17 |
+
(II) We introduce **ConvKV Memory**, a lightweight plug-in compression mechanism that enables constant-memory hour-scale video generation with negligible overhead.
|
| 18 |
+
|
| 19 |
+
(III) We develop an optimized real-time system that achieves **20 FPS using only two H100/H200 GPUs** with end-end adaptive FP8 precision, sequence parallelism, and communication-computation parallelism at 720Γ416 or 512Γ512 resolution.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
<div align="center">
|
| 23 |
+
<a href='http://arxiv.org/abs/2603.11746'><img src='https://img.shields.io/badge/Technical-Report-red'></a>
|
| 24 |
+
<a href='https://demopagedemo.github.io/LiveAct/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
| 25 |
+
<a href='https://github.com/Soul-AILab/SoulX-LiveAct'><img src='https://img.shields.io/badge/Github-Home-blue'></a>
|
| 26 |
+
<a href='https://huggingface.co/Soul-AILab/LiveAct'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-yellow'></a>
|
| 27 |
+
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## π₯π₯π₯ News
|
| 32 |
+
|
| 33 |
+
* π Mar 16, 2026: We release the inference code and model weights of LiveAct.
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
## π₯ Demo
|
| 37 |
+
|
| 38 |
+
### π« Podcast
|
| 39 |
+
<div>
|
| 40 |
+
<video controls playsInline src="./assets/podcast.mp4" width="40%"></video>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
### π€ Music & Talk Show
|
| 44 |
+
<table>
|
| 45 |
+
<tr>
|
| 46 |
+
<td><video controls playsinline width="360" src="./assets/teaser1.mp4"></video></td>
|
| 47 |
+
<td><video controls playsinline width="360" src="./assets/teaser2.mp4"></video></td>
|
| 48 |
+
</tr>
|
| 49 |
+
</table>
|
| 50 |
+
|
| 51 |
+
### π± FaceTime
|
| 52 |
+
<table>
|
| 53 |
+
<tr>
|
| 54 |
+
<td><video controls playsinline width="360" src="./assets/1.mp4"></video></td>
|
| 55 |
+
<td><video controls playsinline width="360" src="./assets/2.mp4"></video></td>
|
| 56 |
+
</tr>
|
| 57 |
+
</table>
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
## π Open-source Plan
|
| 61 |
+
|
| 62 |
+
- [x] Release inference code and checkpoints
|
| 63 |
+
- [x] GUI demo Support
|
| 64 |
+
- [x] End-end adaptive FP8 precision
|
| 65 |
+
- [ ] Support FP4 precision for B-series GPUs (e.g., RTX 5090, B100, B200)
|
| 66 |
+
- [ ] Release training code
|
| 67 |
+
|
| 68 |
+
## βΆοΈ Quick Start
|
| 69 |
+
|
| 70 |
+
### π οΈ Dependencies and Installation
|
| 71 |
+
|
| 72 |
+
#### Step 1: Install Basic Dependencies
|
| 73 |
+
|
| 74 |
+
```bash
|
| 75 |
+
conda create -n liveact python=3.10
|
| 76 |
+
conda activate liveact
|
| 77 |
+
pip install -r requirements.txt
|
| 78 |
+
conda install conda-forge::sox -y
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
#### Step 2: Install SageAttention
|
| 82 |
+
To enable fp8 attention kernel, you need to install SageAttention:
|
| 83 |
+
* Install SageAttention:
|
| 84 |
+
```bash
|
| 85 |
+
pip install sageattention==2.2.0 --no-build-isolation
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
* (Optional) Install the modified version of SageAttention:
|
| 89 |
+
To enable SageAttention for QKV communicationβcomputation parallelism, you need to install it by the following command:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
git clone https://github.com/ZhiqiJiang/SageAttentionFusion.git
|
| 93 |
+
cd SageAttentionFusion
|
| 94 |
+
python setup.py install
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
#### Step 3: Install vllm:
|
| 98 |
+
To enable fp8 gemm kernel, you need to install vllm:
|
| 99 |
+
```bash
|
| 100 |
+
pip install vllm==0.11.0
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
### π€ Download Checkpoints
|
| 105 |
+
|
| 106 |
+
### Model Cards
|
| 107 |
+
| ModelName | Download |
|
| 108 |
+
|-----------------------|-------------------------------------------------------------|
|
| 109 |
+
| LiveAct | [π€ Huggingface](https://huggingface.co/Soul-AILab/LiveAct) |
|
| 110 |
+
| chinese-wav2vec2-base | π€ [Huggingface](https://huggingface.co/TencentGameMate/chinese-wav2vec2-base) |
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
### π Inference
|
| 114 |
+
|
| 115 |
+
#### Usage of LiveAct
|
| 116 |
+
|
| 117 |
+
#### 1. Run real-time streaming inference on two H100/H200 GPUs
|
| 118 |
+
|
| 119 |
+
```bash
|
| 120 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=0,1 \
|
| 121 |
+
torchrun --nproc_per_node=2 --master_port=$(shuf -n 1 -i 10000-65535) \
|
| 122 |
+
generate.py \
|
| 123 |
+
--size 416*720 \
|
| 124 |
+
--ckpt_dir MODEL_PATH \
|
| 125 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 126 |
+
--fps 20 \
|
| 127 |
+
--dura_print \
|
| 128 |
+
--input_json examples/example.json \
|
| 129 |
+
--steam_audio
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
#### 2. Run with single GPU for Eval
|
| 133 |
+
|
| 134 |
+
```bash
|
| 135 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=7 \
|
| 136 |
+
python generate.py \
|
| 137 |
+
--size 480*832 \
|
| 138 |
+
--ckpt_dir MODEL_PATH \
|
| 139 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 140 |
+
--fps 24 \
|
| 141 |
+
--input_json examples/example.json \
|
| 142 |
+
--audio_cfg 1.7 \
|
| 143 |
+
--t5_cpu
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
### Command Line Arguments
|
| 148 |
+
|
| 149 |
+
| Argument | Type | Required | Default | Description |
|
| 150 |
+
|-------------------|-------|----------|---------|-----------------------------------------------------------------------------------------------|
|
| 151 |
+
| `--size` | str | Yes | - | The width and height of the generated video. |
|
| 152 |
+
| `--t5_cpu` | bool | No | false | Whether to place T5 model on CPU. |
|
| 153 |
+
| `--offload_cache` | bool | No | - | Whether to place kv cache on CPU. |
|
| 154 |
+
| `--fps` | int | Yes | - | The target fps of the generated video. |
|
| 155 |
+
| `--audio_cfg` | float | No | 1.0 | Classifier free guidance scale for audio control. |
|
| 156 |
+
| `--dura_print` | bool | No | no | Whether print duration for every block. |
|
| 157 |
+
| `--input_json` | str | Yes | _ | The condition json file path to generate the video. |
|
| 158 |
+
| `--seed` | int | No | 42 | The seed to use for generating the image or video. |
|
| 159 |
+
| `--steam_audio` | bool | No | false | Whether inference with steaming audio. |
|
| 160 |
+
| `--mean_memory` | bool | No | false | Whether to use the mean memory strategy during inference for further performance improvement. |
|
| 161 |
+
|
| 162 |
+
### π» GUI demo
|
| 163 |
+
Run LiveAct inference on the GUI demo and evaluate real-time performance.
|
| 164 |
+
|
| 165 |
+
<div>
|
| 166 |
+
<video controls playsInline src="./assets/demo.mp4" width="50%"></video>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
**Note:** The first few blocks during the initial run require warm-up. Normal performance will be observed from the second run onward.
|
| 170 |
+
|
| 171 |
+
```bash
|
| 172 |
+
USE_CHANNELS_LAST_3D=1 CUDA_VISIBLE_DEVICES=0,1 \
|
| 173 |
+
torchrun --nproc_per_node=2 --master_port=$(shuf -n 1 -i 10000-65535) \
|
| 174 |
+
demo.py \
|
| 175 |
+
--ckpt_dir MODEL_PATH \
|
| 176 |
+
--wav2vec_dir chinese-wav2vec2-base \
|
| 177 |
+
--size 416*720 \
|
| 178 |
+
--video_save_path ./generated_videos
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
## π Citation
|
| 184 |
+
|
| 185 |
+
```bibtex
|
| 186 |
+
@misc{zhen2026soulxliveacthourscalerealtimehuman,
|
| 187 |
+
title={SoulX-LiveAct: Towards Hour-Scale Real-Time Human Animation with Neighbor Forcing and ConvKV Memory},
|
| 188 |
+
author={Dingcheng Zhen and Xu Zheng and Ruixin Zhang and Zhiqi Jiang and Yichao Yan and Ming Tao and Shunshun Yin},
|
| 189 |
+
year={2026},
|
| 190 |
+
eprint={2603.11746},
|
| 191 |
+
archivePrefix={arXiv},
|
| 192 |
+
primaryClass={cs.CV},
|
| 193 |
+
url={https://arxiv.org/abs/2603.11746},
|
| 194 |
+
}
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
## π Acknowledgements
|
| 198 |
+
We would like to thank the contributors to the [Transformers](https://github.com/huggingface/transformers), [Diffusers](https://github.com/huggingface/diffusers) , [HuggingFace](https://huggingface.co/) and [Qwen-VL](https://github.com/QwenLM/Qwen-VL), for their open research and exploration.
|
assets.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03b17b75edb202cf88e7ea6e0de7b7ad46de14bd8c8b3f6ca0a7a38c48983c9d
|
| 3 |
+
size 252691650
|
assets/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
assets/1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90afc7f5b2c9e9d853722e64eed159729b7287b140830fef3d5a5fca10dda9c8
|
| 3 |
+
size 32768594
|
assets/2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92ec70a0fc071f42cfe1438aebd04c9ce392fee55edc47edaa1523f867ee1778
|
| 3 |
+
size 45440570
|
assets/demo.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc3ea4b884e9838631ee449df39521cc71b414c5f63b966e0429520341c4535b
|
| 3 |
+
size 73248443
|
assets/logo.png
ADDED
|
Git LFS Details
|
assets/podcast.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25003d333c1e4c13359e527da2c06cce1c62bdf3318e91ab7d118e55c73c2e6e
|
| 3 |
+
size 58516823
|
assets/teaser1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68de74fc9bea923ea28d663a201924df6dda85f921c88e19e14e061267f8393c
|
| 3 |
+
size 16793577
|
assets/teaser2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d49627bc089f5b8bd8bea8fdd214c9ed0bd06a29f76e69983e498a1ae7ae449d
|
| 3 |
+
size 25039362
|