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 5 |
+
base_model:
|
| 6 |
+
- tencent/HunyuanCustom
|
| 7 |
---
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
<h1 align="center">
|
| 11 |
+
CustomX: Unified Character, Action, and Scene Customization in Video World Models
|
| 12 |
+
</h1>
|
| 13 |
+
|
| 14 |
+
<h3 align="center">
|
| 15 |
+
ECCV 2026
|
| 16 |
+
</h3>
|
| 17 |
+
|
| 18 |
+
<p align="center">
|
| 19 |
+
<a href="https://arxiv.org/abs/2512.17796"><img src="https://img.shields.io/badge/arXiv-Paper-B31B1B?style=flat&labelColor=555555&logo=arxiv&logoColor=white" alt="arXiv"></a>
|
| 20 |
+
<a href="https://snowflakewang.github.io/CustomX_Page/"><img src="https://img.shields.io/badge/Project-Page-4F46E5?style=flat&labelColor=555555&logo=googlechrome&logoColor=white" alt="Project Page"></a>
|
| 21 |
+
<a href="https://github.com/snowflakewang/CustomX"><img src="https://img.shields.io/badge/Code-GitHub-181717?style=flat&labelColor=555555&logo=github&logoColor=white" alt="Code"></a>
|
| 22 |
+
</p>
|
| 23 |
+
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## ๐ Abstract
|
| 29 |
+
|
| 30 |
+
Recent advances in world models have greatly enhanced interactive environment simulation. Existing methods mainly fall into two categories: (1) static world generation models, which construct 3D environments without active agents, and (2) controllable-entity models, which allow a single entity to perform limited actions in an otherwise uncontrollable environment. In this work, we introduce CustomX, leveraging the realism and structural grounding of static world generation while extending controllable-entity models to support user-specified characters capable of performing open-ended actions. Users can provide a 3DGS scene and a character, then use natural language to direct the character to perform diverse behaviors, ranging from basic locomotion to object-centric interactions, while freely exploring the environment. CustomX synthesizes temporally coherent video clips that preserve visual fidelity with the provided scene and character, formulated as a conditional autoregressive video generation problem. Built upon a pre-trained video generator, our training strategy significantly enhances motion dynamics while maintaining generalization across actions and characters. Our evaluation covers a broad range of aspects, including visual quality, character consistency, action controllability, and long-horizon coherence.
|
| 31 |
+
|
| 32 |
+
<div align="center">
|
| 33 |
+
<img src="./assets/teaser_v3.jpg" width="100%" alt="CustomX Teaser"/>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
## ๐ ๏ธ Installation
|
| 37 |
+
```bash
|
| 38 |
+
conda create -n customx python==3.11.9
|
| 39 |
+
conda activate customx
|
| 40 |
+
|
| 41 |
+
pip install uv
|
| 42 |
+
|
| 43 |
+
uv pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124
|
| 44 |
+
uv pip install -r requirements.txt
|
| 45 |
+
|
| 46 |
+
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.6.3/flash_attn-2.6.3+cu123torch2.4cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
|
| 47 |
+
uv pip install flash_attn-2.6.3+cu123torch2.4cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## ๐ฆ Download Checkpoints
|
| 51 |
+
### HunyuanCustom Base Model
|
| 52 |
+
Download HunyuanCustom base model [here](https://huggingface.co/tencent/HunyuanCustom).
|
| 53 |
+
|
| 54 |
+
Only need to download the following files from HunyuanCustom:
|
| 55 |
+
```shell
|
| 56 |
+
CustomX
|
| 57 |
+
โโโ models
|
| 58 |
+
โโโ base
|
| 59 |
+
โโโ hunyuancustom_editing_720P
|
| 60 |
+
โ โโโ mp_rank_00_model_states.pt
|
| 61 |
+
โโโ vae_3d
|
| 62 |
+
โโโ openai_clip-vit-large-patch14
|
| 63 |
+
โโโ llava-llama-3-8b-v1_1
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
### CustomX LoRA
|
| 67 |
+
```bash
|
| 68 |
+
TOKEN=xxx # add your Hugging Face token here
|
| 69 |
+
|
| 70 |
+
hf download --token $TOKEN \
|
| 71 |
+
SnowflakeWang/CustomX \
|
| 72 |
+
--local-dir models/lora
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## ๐ Inference
|
| 76 |
+
|
| 77 |
+
### Input Preparation
|
| 78 |
+
We provide a sample input in the [input](input) directory. To use your own inputs, organize them following the same structure.
|
| 79 |
+
|
| 80 |
+
```shell
|
| 81 |
+
input
|
| 82 |
+
โโโ character_assets
|
| 83 |
+
โ โโโ orangeRobot
|
| 84 |
+
โ โโโ input_list
|
| 85 |
+
โ โ โโโ ar_cond.list
|
| 86 |
+
โ โ โโโ character.list
|
| 87 |
+
โ โ โโโ output_video.list
|
| 88 |
+
โ โ โโโ pos_prompt.list
|
| 89 |
+
โ โ โโโ scene.list
|
| 90 |
+
โ โ โโโ scene_mask.list
|
| 91 |
+
โ โโโ multi_view
|
| 92 |
+
โ โโโ 000_0001.png
|
| 93 |
+
โ โโโ 002_0001.png
|
| 94 |
+
โ โโโ 004_0001.png
|
| 95 |
+
โ โโโ 006_0001.png
|
| 96 |
+
โโโ scene_assets
|
| 97 |
+
โโโ futureUtopia
|
| 98 |
+
โโโ all_frame_mask.mp4
|
| 99 |
+
โโโ videos
|
| 100 |
+
โโโ 0.mp4
|
| 101 |
+
โโโ 1.mp4
|
| 102 |
+
โโโ ...
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
### Multi-GPU Inference (Recommended)
|
| 106 |
+
```bash
|
| 107 |
+
# 720P video inference
|
| 108 |
+
# Tested on 8 NVIDIA A100-80G GPUs
|
| 109 |
+
bash inference_multi_gpu.sh
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
### Single-GPU Inference
|
| 113 |
+
```bash
|
| 114 |
+
# 360P video inference
|
| 115 |
+
# Tested on 1 NVIDIA A100-80G GPU
|
| 116 |
+
bash inference_single_gpu.sh
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
### Video Merging
|
| 120 |
+
```bash
|
| 121 |
+
# Merge videos generated by auto-regressive inference
|
| 122 |
+
python video_merge.py --input_dir "output/orangeRobot_futureUtopia"
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## ๐ฎ Citation
|
| 126 |
+
|
| 127 |
+
```bibtex
|
| 128 |
+
@misc{wang2026customx,
|
| 129 |
+
title={CustomX: Unified Character, Action, and Scene Customization in Video World Models},
|
| 130 |
+
author={Yitong Wang and Fangyun Wei and Hongyang Zhang and Bo Dai and Yan Lu},
|
| 131 |
+
year={2026},
|
| 132 |
+
eprint={2512.17796},
|
| 133 |
+
archivePrefix={arXiv},
|
| 134 |
+
primaryClass={cs.CV},
|
| 135 |
+
url={https://arxiv.org/abs/2512.17796},
|
| 136 |
+
}
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
## ๐ Acknowledgements
|
| 140 |
+
|
| 141 |
+
- [HunyuanCustom](https://github.com/Tencent-Hunyuan/HunyuanCustom)
|
| 142 |
+
- [Diffusers](https://github.com/huggingface/diffusers)
|
| 143 |
+
- [Transformers](https://github.com/huggingface/transformers)
|
| 144 |
+
- [DeepSpeed](https://github.com/deepspeedai/DeepSpeed)
|
| 145 |
+
- [Grand Theft Auto V](https://www.rockstargames.com/gta-v)
|
| 146 |
+
|
| 147 |
+
## ๐ License
|
| 148 |
+
|
| 149 |
+
This project is licensed under the [CC BY-SA 4.0 License](http://creativecommons.org/licenses/by-sa/4.0/).
|