Install ·
Download weights and data ·
Prepare data ·
Train ·
Evaluate ·
Results
TwoPass is an action-conditioned video prediction model for robotic manipulation, fine-tuned from Wan2.2-TI2V-5B: given one observed frame and the future robot actions, it predicts the following frames in as few as four network calls. Self-Generated Draft Training teaches the model to refine its own draft prediction, a Refinement-Only Late Adapter gives draft-conditioned calls a dedicated correction pathway, and Draft-Reuse Iterative Refinement reuses every clean estimate as the next draft at inference, so each solver step costs one network call.
pip install -r requirements.txt # Python 3.10, PyTorch 2.8- Pretrained weights, Wan2.2-TI2V-5B:
pip install -U huggingface_hub hf download Wan-AI/Wan2.2-TI2V-5B --local-dir ./Wan2.2-TI2V-5B
- Datasets, Bridge and Language Table as released by
IRASim:
bridge_train_data.tar.gz and
languagetable_train_data.tar.gz
(also on Hugging Face). The
archives hold the training and test splits and extract to
opensource_robotdata/{bridge,languagetable}; such a dataset directory isDATA_ROOTbelow. - I3D detector for FVD,
i3d_torchscript.ptof StyleGAN-V: https://www.dropbox.com/s/ge9e5ujwgetktms/i3d_torchscript.pt?dl=1 - TwoPass checkpoints on Hugging Face:
Bridge ·
Language Table
Pass
hf download Junjun2333/TwoPass --local-dir ./checkpoints
./checkpoints/bridge/twopass_bridge.pt(or./checkpoints/languagetable/twopass_languagetable.pt) as--checkpointin Evaluation to reproduce the results without training.
Commands are shown for Bridge; use configs/languagetable.json and the Language
Table DATA_ROOT for the other dataset.
Select the training windows, then encode them
with the Wan2.2 VAE and text encoder (one GPU, or several with
--shard i --nshards n):
python -m twopass.select_windows --config configs/bridge.json \
--data_root $DATA_ROOT --out_dir /path/to/train_data/bridge
python -m twopass.cache_windows --config configs/bridge.json \
--manifest /path/to/train_data/bridge/train_manifest.json --wan_dir ./Wan2.2-TI2V-5BThe configs follow the schedule of the paper, 300k iterations at an equivalent batch size of eight:
export WAN_DIR=/path/to/Wan2.2-TI2V-5B
MANIFEST=/path/to/train_data/bridge/train_manifest.json OUT_DIR=/path/to/runs/bridge \
bash scripts/train.sh configs/bridge.json
MANIFEST=/path/to/train_data/languagetable/train_manifest.json OUT_DIR=/path/to/runs/languagetable \
bash scripts/train.sh configs/languagetable.jsonAdd --resume_checkpoint $OUT_DIR/stepXXXXXXX.pt to continue a run.
Generate and score the test set with 4 (or 6) network calls per
clip, then report PSNR / SSIM / LPIPS / FVD (--shard i --nshards n splits the
generation over GPUs):
python -m twopass.evaluate --config configs/bridge.json --nfe 4 \
--checkpoint /path/to/runs/bridge/step0300000.pt --wan_dir $WAN_DIR \
--data_root $DATA_ROOT --i3d_path /path/to/i3d_torchscript.pt --out_dir /path/to/eval/bridge
python -m twopass.aggregate --config configs/bridge.json \
--data_root $DATA_ROOT --eval_dir /path/to/eval/bridgeIf you find TwoPass useful, please cite our paper:
@article{liu2026twopass,
title = {TwoPass: Draft-Guided Few-Step Video Prediction for Robotic Manipulation},
author = {Liu, Yijun and Ge, Shijia and Feng, Tongtong and Wang, Xin and Meng, Yuan and Liu, Yuwei and Wang, Zhi and Zhu, Wenwu},
journal = {arXiv preprint arXiv:2611.25553},
year = {2026},
eprint = {2611.25553},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2611.25553}
}Released under the Apache License 2.0. The files in wan/ come from
Wan2.2 (Apache License 2.0, see NOTICE).
The datasets are provided by IRASim, FVD uses the I3D detector of StyleGAN-V,
and LPIPS uses the lpips package.


