RepositoryPython
VAST-AI-Research

VAST-AI-Research/StereoWorld

[CVPR 2026] Stereo World Model

112stars
3forks
4issues
0views

Stereo World Model

Paper Website HuggingFace

Flexible Stereo

flex demo

Fixed-Baseline Stereo

stereo demo

Features

  • Camera-guided stereo video generation from a single RGB image.
  • WASD-style camera controls for translation, yaw, and pitch.
  • Flexible stereo: independent left/right camera control with multiple right-camera modes (converging, horizontal offset, depth offset, height offset).
  • Fixed-baseline stereo: side-by-side stereo output with configurable stereo baseline.
  • Autoregressive long video: 4-step autoregressive student model for generating extended sequences beyond the single-clip frame budget.
  • Single-GPU inference and optional multi-GPU sequence-parallel inference.

teaser

Installation

Create a Python environment and install the dependencies:

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

The code is tested with CUDA 12.6 and PyTorch 2.4+. For faster attention, install flash-attn if it is compatible with your CUDA/PyTorch environment. Multi-GPU sequence parallel inference additionally requires xfuser and its dependencies.

Model Weights

The teacher models are hosted in Yang-Tian/StereoWorld.

Download all released models:

huggingface-cli download Yang-Tian/StereoWorld --local-dir weights

Or download only the one you need:

# Fixed-Baseline Stereo
huggingface-cli download Yang-Tian/StereoWorld \
  --include "StereoWorldModel/*" \
  --local-dir weights

# Flexible Stereo
huggingface-cli download Yang-Tian/StereoWorld \
  --include "StereoWorldFlexModel/*" \
  --local-dir weights

# Fixed-Left View Inpainting
huggingface-cli download Yang-Tian/StereoWorld \
  --include "StereoWorldInpaintModel/*" \
  --local-dir weights

Download the 4-step autoregressive student from ToRealU/StereoWorld-AR-4Step:

huggingface-cli download ToRealU/StereoWorld-AR-4Step \
  stereoworld_ar_4step.pt \
  --local-dir weights

You can keep the weights anywhere and pass their paths with --pipeline_dir and --checkpoint.

TODO

  • Open-source the 5-second, 832x480 binocular teacher model.
  • Release the 4-step autoregressive student model.
  • Release more flexible multi-view world model.

Quick Start

Fixed-Baseline Stereo

Run the included demo set on one GPU:

bash run_single.sh \
  --pipeline_dir weights/StereoWorldModel \
  --use_raymap

Run on multiple GPUs:

bash run.sh \
  --pipeline_dir weights/StereoWorldModel \
  --num_gpus 4 \
  --use_raymap

By default, the scripts use ExpData/demo_custom_eval.json, which contains 33 prompt/action examples. The corresponding input images are included under ExpData/demo_custom/.

Autoregressive Long Video

Run the 4-step autoregressive student on one GPU:

bash run_ar.sh \
  --pipeline_dir weights/StereoWorldModel \
  --checkpoint weights/stereoworld_ar_4step.pt \
  --eval_json ExpData/demo_custom_eval.json \
  --output_dir output_ar \
  --num_frames 153

Flexible Stereo

Run the flexible stereo model on one GPU:

bash run_flex_single.sh \
  --pipeline_dir weights/StereoWorldFlexModel

Run on multiple GPUs:

bash run_flex.sh \
  --pipeline_dir weights/StereoWorldFlexModel \
  --num_gpus 4

By default, the scripts use ExpData/flex_demo_custom_eval.json, which contains 77 prompt/action examples across four right-camera modes. The corresponding input images are included under ExpData/flex_demo_custom/.

Fixed-left View Inpainting

The curated video inputs are bundled as ExpData/view_inpaint/case1.mp4 through case5.mp4. Their camera settings are collected in ExpData/view_inpaint_eval.json. Download the inpainting model first:

huggingface-cli download Yang-Tian/StereoWorld \
  --include "StereoWorldInpaintModel/*" \
  --local-dir weights

Then run the batch demo on one GPU:

bash run_view_inpaint_single.sh

The default pipeline directory is weights/StereoWorldInpaintModel. Pass --pipeline_dir /path/to/StereoWorldInpaintModel to use another location.

Custom Inference — batch/single-folder inference options (click to expand)

Fixed-Baseline Stereo

Batch inference from an eval JSON:

python3 inference.py \
  --pipeline_dir weights/StereoWorldModel \
  --eval_json /path/to/eval.json \
  --output_dir output \
  --H 480 --W 832 \
  --num_frames 81 \
  --baseline 0.2

Single-folder inference:

python3 inference.py \
  --pipeline_dir weights/StereoWorldModel \
  --input_dir /path/to/sample_folder \
  --action_seq w wl wj \

For --input_dir, the folder should contain:

sample_folder/
  left.png
  caption.txt

For --eval_json, each entry should contain:

{
  "image_path": "./demo_custom/example.jpg",
  "caption": "A descriptive text prompt.",
  "action_seq": ["w", "wl", "wj"],
  "scene_name": "example_scene"
}

Relative image_path values are resolved relative to the JSON file. scene_name is optional; when omitted, the image filename is used.

Flexible Stereo

Batch inference from an eval JSON:

python3 inference_flex.py \
  --pipeline_dir weights/StereoWorldFlexModel \
  --eval_json /path/to/eval.json \
  --output_dir output_flex \
  --H 480 --W 832 \
  --num_frames 81

For --eval_json, each entry should contain:

{
  "image_path": "./flex_demo_custom/scene_example.jpg",
  "caption": "A descriptive text prompt.",
  "right_mode": "converging",
  "action_seq_left": ["w", "wl"],
  "action_speed_left": [3, 2],
  "action_seq_right": ["w", "wl"],
  "action_speed_right": [3, 2],
  "scene_name": "example_scene"
}

Supported right_mode values:

ModeDescription
convergingLeft and right cameras converge toward a common point
horizontal_offsetRight camera offset horizontally from left
depth_offsetRight camera offset along the depth axis
height_offsetRight camera offset vertically from left

Left and right cameras have independent action sequences and speed lists, enabling asymmetric camera trajectories.

Camera Actions

KeyMotion
wmove forward
smove backward
amove left
dmove right
jyaw left
lyaw right
ipitch up
kpitch down

Actions can be combined in one segment, for example wl means moving forward while yawing right.

Outputs

Each job writes:

  • {scene_name}.mp4: side-by-side stereo video, left view on the left and right view on the right.
  • {scene_name}.json: metadata including caption, action sequence, baseline, intrinsics, and camera poses.

num_frames must satisfy 1 + 4k, for example 81 or 121. Height and width must be divisible by 8.

Acknowledgements

We thank the authors of the following projects and models for their open-source contributions:

Citation

If you find our work useful, please consider citing:

@article{sun2026stereo,
  title={Stereo World Model: Camera-Guided Stereo Video Generation},
  author={Sun, Yang-Tian and Huang, Zehuan and Niu, Yifan and Ma, Lin and Cao, Yan-Pei and Ma, Yuewen and Qi, Xiaojuan},
  journal={arXiv preprint arXiv:2603.17375},
  year={2026}
}

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
vllm-project/vllm-omni

A framework for efficient model inference with omni-modality models

8.0k
Nov 30, 2026
RepositoryPython
GVCLab/PersonaLive

[CVPR 2026] PersonaLive! : Expressive Portrait Image Animation for Live Streaming

4.3k
Aug 28, 2026
RepositoryPython
SkyworkAI/Matrix-Game

Matrix-Game 4.0: Streaming Neural Rendering for Playable Games

3.0k
Oct 29, 2026
Model
tencent/Hy-Nomas

中文 | English Hy-Nomas: Towards Free-Form Interactive World Generation 🚀 Try the Demo → Model Introduction Hy-Nomas is a video world generation model that supports free-form, multi-turn interaction through text instructions and camera cont...

♥0
51.8k
Nov 24, 2026
RepositoryTypeScript
immich-app/immich

High performance self-hosted photo and video management solution.

120.6k
Dec 1, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026