Skip to content

Repository files navigation

StreamHOI

arXiv Model

StreamHOI is a low-latency streaming framework designed for long-duration Human-Object Interaction (HOI) video generation. While existing models rely on offline pipelines or compute-intensive frame-chaining, StreamHOI enables real-time generation (17.6 FPS) by optimizing how historical memory is structured within diffusion transformers to preserve long-term interaction consistency.

Video Demo

StreamHOI demo video

Method Overview

pipeline

Quick Start

  1. Create the environment.
conda create -n stream_hoi python=3.11 -y
conda activate stream_hoi
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt
pip install flash-attn --no-build-isolation
  1. Download the model weights.

This downloads:

Repo Used as
Wan-AI/Wan2.2-II2V-5B Wan2.2-TI2V backbone for video generation
KlingTeam/StreamHOI StreamHOI checkpoints, including streamhoi_model.pt, streamhoi_lora.pt

The default layout is:

checkpoints/streamhoi/
|-- wan_models/
    |-- Wan-AI/
      |-- Wan2.2-TI2V-5B/
|-- checkpoints/
    |-- streamhoi_model.pt
    `-- streamhoi_lora.pt
  1. Run the demo.
bash inference.sh

Outputs are written to demo/output.

For a single 40GB GPU, run :

python inference.py \
  --config_path $config_path \
  --data_path $data_path \
  --output_folder $output_folder\
  --generator_ckpt $generator_ckpt \
  --lora_ckpt $lora_ckpt \
  --cover_config

Use Your Own Inputs

Prepare a CSV file with two columns: path (image path, relative to the project root) and caption (text description). For example, create my_data.csv:

path caption
my_images/img1.png "A person is playing guitar in a room."
my_images/img2.png "A woman is cooking in the kitchen."

Put your first-frame images in the corresponding directory, then run:

bash inference.sh

Training

bash train_init.sh # uniform-sink
bash train_bmst.sh # bias-guided memory-specialized training (B-MST)

Citation

If StreamHOI is useful for your research, please cite:

@misc{rao2026streamhoiinteractionawaretemporalmemory,
      title={StreamHOI: Interaction-aware Temporal Memory Adaptation for Streaming HOI Video Generation}, 
      author={Zejing Rao and Haoxian Zhang and Xiaoqiang Liu and Yiping Meng and Guoxin Zhang and Pengfei Wan and Fan Tang and Tong-Yee Lee},
      year={2026},
      eprint={2607.20174},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2607.20174}, 
}

Acknowledgements

StreamHOI builds on open research from Self forcing, Causal Forcing, Longlive and Wan2.2.

About

Project page for "StreamHOI: Interaction-aware Temporal Memory Adaptation for Streaming HOI Video Generation"

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages