Official code repository: microsoft/OctWorld. Model weights: OctWorld-1.5 on Hugging Face.
OctMap-Guided Generation with Precise Camera Control
OctWorld.mp4
Inside OctMap Online Integration
OctMap.mp4
OctWorld is a video generation framework with persistent 3D spatial memory. Starting from a single image, it generates explorable scenes along user-specified camera trajectories. Its spatially adaptive octree map, OctMap, accumulates geometry and appearance from generated RGB-D observations and renders spatial conditions for subsequent chunks, helping preserve world consistency over long camera paths and revisits.
This release provides the Wan-based inference pipeline, OctMap, depth prediction, and custom-input examples. The training-data pipeline and training code are not released yet.
Autoregressive video generation backed by a persistent 3D map, with spatial conditioning from previously observed regions when the camera returns to them.
OctMap progressively fuses RGB-D observations into a sparse octree. Spatial resolution adapts to image evidence, retaining useful geometry and appearance without a uniformly dense scene representation.
Condition generation on a first-frame image, camera poses, anchor depth, and text. The customization tools turn camera-movement instructions into trajectories, with optional smooth interpolation, MoGe anchor depth, and Qwen3-VL prompt planning.
- Release the paper and project page.
- Release single-case and batch world-generation inference code.
- Release OctMap spatial memory and depth-prediction integration.
- Release example inputs and custom camera-trajectory tools.
- Release OctWorld-1.5 weights on Hugging Face.
- Release datapipe β training-data processing and preparation (not released yet).
- Release training code β end-to-end training and fine-tuning (not released yet).
The custom-input builder below prepares inference inputs; it is not the training-data pipeline listed above.
- System: Linux x86_64, Python 3.10 (tested with 3.10.21).
- Hardware: an NVIDIA Ampere-or-newer GPU with at least 70 GB of GPU memory. Tested on an A100 80 GB.
- Toolchain: CUDA Toolkit 12.6, a compatible NVIDIA driver, a C++ compiler, Git, and FFmpeg. The toolkit is needed for native rendering extensions, not just the CUDA runtime bundled with PyTorch.
- Runtime: PyTorch 2.8.0+cu126, torchvision 0.23.0+cu126, xformers 0.0.32.post2, and flash-attn 2.8.3.
-
Clone the official repository, including the pinned depth-model submodules:
git clone --recurse-submodules https://github.com/microsoft/OctWorld.git cd OctWorldFor an existing checkout, initialize the submodules with
git submodule update --init --recursive. -
Activate a Python 3.10 environment. If needed, create it first:
conda create -n octworld python=3.10.21 -y conda activate octworld
Skip the creation command if the environment already exists.
-
Install the pinned inference and custom-input dependencies:
export CUDA_HOME=/usr/local/cuda-12.6 bash setup.shsetup.sh installs into the selected environment using its Python; it does not create environments, install system packages, or download weights. It uses requirements.txt, protects the CUDA stack with constraints.txt, and pins native/Git dependencies to the tested revisions.
-
Check an existing environment without reinstalling anything:
python scripts/check_environment.py
This checks imports, DA3's fused FFN, GPU capacity, and small FlashAttention / nvdiffrast CUDA operations without loading any model weights.
OctWorld-1.5 is the Wan 14B-based world-generation model, available at Maxtir/OctWorld-1.5 on Hugging Face. See the inference guide for model loading and generation options.
Download the complete model package from the repository root after installation:
hf download Maxtir/OctWorld-1.5 --local-dir model_weights/octworld-1.5The hf CLI is included in the installed huggingface-hub dependency. This
downloads the checkpoint, pipeline configuration, and negative-text embedding
into the layout shown below. Generation requires both OctWorld-1.5 and the
auxiliary models; the auxiliary downloader does not download OctWorld-1.5.
python scripts/download_models.pyThe downloader prepares all six auxiliary components for inference and custom-input preparation. Every Hugging Face revision and file hash is pinned in the model manifest.
| Component | Upstream source | Used for |
|---|---|---|
| Wan VAE / T5 / CLIP + tokenizers | Wan2.1-I2V-14B-480P | Image, text, and video encoding/decoding; the original Wan DiT is not downloaded. |
| DA3 Nested Giant-Large 1.1 | DA3NESTED-GIANT-LARGE-1.1 | Per-chunk depth aligned to user cameras. |
| RAFT Large | Torchvision checkpoint | Keyframe selection. |
| Sky segmentation | skyseg | Sky masking before integration. |
| MoGe v1 | moge-vitl | Anchor depth and intrinsics for custom inputs. |
| Qwen3-VL-8B-Instruct | Qwen3-VL-8B-Instruct | Prompt planning for custom inputs. |
These auxiliary files occupy approximately 42.44 GB (39.53 GiB), excluding OctWorld-1.5, temporary downloads, and generated outputs. Matching local files are verified and reused; available matching Hugging Face cache files are copied into the expected layout. Mismatched existing files are reported, never silently overwritten. Hugging Face transfers support resuming incomplete downloads.
List the plan without network access or file changes, or verify all downloaded files offline (including their hashes):
python scripts/download_models.py --list
python scripts/download_models.py --checkUse --models wan da3 raft skyseg for bundled-case inference only, or
--models moge qwen for custom-input preparation only. The default downloads both
groups.
The default output is the repository's local model directory, independent of the shell's working directory. Model weights are not stored in Git:
model_weights/
βββ octworld-1.5/
β βββ model/
β βββ pipe_config.json
β βββ neg_text_embed.pt
βββ Wan2.1-I2V-14B-480P/ # Wan VAE, T5, CLIP, and tokenizers
βββ da3/ # config.json and model.safetensors
βββ raft/ # RAFT keyframe-selection weights
βββ skyseg/ # Sky-segmentation weights
βββ moge/
β βββ model.pt # MoGe v1, loaded locally (no implicit download)
βββ Qwen3-VL-8B-Instruct/ # Only needed for custom prompt planning
The OctWorld checkpoint uses the Wan 14B backbone. Its pipeline configuration and negative-text embedding are resolved from the model root above the DiT checkpoint directory. MoGe v1 anchor-depth estimation is needed only when building new inputs; the bundled inference examples already contain anchor depth and prompts, so they do not require MoGe or Qwen3-VL to be run again.
Run all commands from the repository root, with the environment and model weights prepared. Use a new or empty output directory for every generation run; existing results are not overwritten.
The single-case example defaults to the bundled DL3DV scene with its original camera trajectory:
python example/worldgen/wan/world_gen.py \
--dit_ckpt model_weights/octworld-1.5/model \
--model_weights_dir model_weights \
--save_dir outputs/dl3dv_gtThis example generates 4 chunks / 321 frames at 480 Γ 832 (H Γ W), 15 fps.
Successful single-case runs contain:
| Output | Description |
|---|---|
output.mp4 |
Generated RGB video. |
depth.mp4 |
Colorized inverse-depth visualization, not metric depth. |
warp.mp4 |
Rendered spatial conditions used during generation. |
sha256.json |
Seed information and sampling/conditioning tensor hashes. |
The final chunk of a multi-chunk run does not update the map, so its depth-video
segment is black. The default uses online OctMap integration, DA3 depth
aligned to user cameras, and seed 425. See the
inference guide for output semantics, backend
requirements, and reproducibility limits; use --help for CLI options.
Run all three bundled cases with one model load:
python example/worldgen/wan/batch_world_gen.py \
--instances assets/standard/instances.json \
--dit_ckpt model_weights/octworld-1.5/model \
--model_weights_dir model_weights \
--base_folder outputs/batchResults are written under outputs/batch/instances/<sample_id>/, together with
per-case metadata and success/failure markers. For multiple single-GPU workers,
the runner supports --rank and --world_size; select each worker's GPU with
CUDA_VISIBLE_DEVICES.
The customization example converts an
image and a camera-turn file into the same standard dataset format used by batch
inference. It plans prompts with Qwen3-VL, estimates anchor depth with MoGe v1,
and validates the generated dataset before publishing it.
Build a custom case from the bundled editable Minecraft input without modifying the original assets:
python example/customize_world_gen/build_standard.py \
--image assets/raw/MinecraftCanyon/image.png \
--camera-movement assets/raw/MinecraftCanyon/camera_turns.txt \
--dl3dv-source assets/standard \
--model-dir model_weights/Qwen3-VL-8B-Instruct \
--smooth-camera \
--output outputs/my_case/standardThen generate its video:
python example/worldgen/wan/batch_world_gen.py \
--instances outputs/my_case/standard/instances.json \
--base_folder outputs/my_case/generatedReplace the image and camera-turn paths with your own to explore a new scene. Each turn adds 80 generated frames; optional smoothing preserves turn-boundary keyframes. The customization guide documents supported movements, trajectory preview, dataset validation, and rebuilding the complete bundled dataset.
- OctWorld: Wan-based models and autoregressive inference pipelines.
- Spatial Memory: OctMap mapping and spatial-condition rendering.
- Depth Prediction: depth-model wrappers and camera alignment.
- Examples and Assets: ready-to-run inputs and editable custom cases.
The code is released under the MIT License. Third-party code, model weights, and datasets remain subject to their respective licenses and usage terms.
We thank the following open-source projects that this work builds upon:
The example assets include cases from WorldScore and DL3DV-10K.
If you find OctWorld useful for your research, please cite our paper:
@article{lv2026octworld,
title = {OctWorld: Long-Range World-Consistent Video Generation
with Octree-based 3D Mapping},
author = {Lv, Zelong and Xu, Sicheng and Xiang, Jianfeng and
Wang, Ruicheng and Dong, Yue and Deng, Yu and
Sun, Guangzhong and Yang, Jiaolong},
journal = {arXiv preprint arXiv:2609.03919},
year = {2026}
}This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.