L3G-World

Real-Time Infinite World Generation with Latent 3D Gaussian Memory

Jinhyeok Choi1,* Β· JoungBin Lee1,* Β· Jongmin Lee1 Β· Minkyeong Jeon1 Β· Jiyoung Kim1 Β· Kaeun Han2
Yoonjin Yoon1,3,† Β· Seungryong Kim1,†

1 KAIST AI   2 Ewha Womans University   3 KAIST Urban AI Institute
* Equal contribution   † Corresponding authors

Project Page arXiv GitHub Hugging Face

L3G-World overview: input images, text and cameras initialize latent 3D Gaussian memory; L3G-Mem updates the memory while L3G-Gen generates subsequent video chunks.

L3G-World couples L3G-Mem and L3G-Gen to generate consistent worlds over long horizons. Given one image, a text prompt, and a camera trajectory, L3G-World alternates between generating video chunks and updating a persistent latent 3D Gaussian memory. Its memory grows with the extent of the explored scene, while direct rendering into the diffusion model's latent space enables real-time generation with a few-step video diffusion model.

Check out our project page for more videos and details!

🌟 Features

  • Adaptive 3D memory. L3G-Mem spawns Gaussians in newly observed regions and refines existing ones, reducing redundant accumulation and correcting geometric errors.
  • Direct latent rendering. Each Gaussian stores VAE latents that render directly into the diffusion model's latent space, avoiding RGB rendering followed by VAE re-encoding when conditioning L3G-Gen.
  • Consistent world generation. L3G-World autoregressively conditions each video chunk on the updated 3D memory to maintain consistency over long horizons.

πŸ“’ News

  • πŸš€ 2026.11.28 - Released L3G-World inference code and checkpoints!
  • πŸš€ 2026.10.30 - Released our project page and arXiv paper!

πŸ› οΈ Installation

L3G-World has been tested on Linux with:

  • Python 3.10
  • PyTorch 2.7.0
  • CUDA 12.8
  • NVIDIA A100 GPU (80 GB)

1. Clone the repository

git clone https://github.com/cvlab-kaist/L3G-World.git
cd L3G-World

The repository is organized as follows:

l3g_world/
  src/             # L3G-Mem, L3G-Gen, and shared utilities
  external/        # Upstream model implementations and licenses
scripts/           # Inference, downloads, and data preparation
gui/               # Interactive trajectory viewer and browser assets
config/            # Downloaded L3G-Mem and L3G-Gen configurations

2. Set up the environment

Use either a Conda environment or a uv virtual environment:

# Conda environment

conda create -n l3g-world python=3.10 pip -y
conda activate l3g-world
./scripts/install_dependencies.sh

Alternatively, install uv, then run:

# uv environment

uv venv --python 3.10 .venv
source .venv/bin/activate
L3G_INSTALLER=uv ./scripts/install_dependencies.sh

3. Prepare a metric-depth estimator (optional)

For world generation on your own data, install the optional dependency and download the Depth Anything 3 checkpoint for metric depth:

python -m pip install addict==2.4.0
hf download depth-anything/DA3NESTED-GIANT-LARGE-1.1 \
  --local-dir checkpoints/DA3NESTED-GIANT-LARGE-1.1

For a uv environment, use uv pip install addict==2.4.0 instead of the pip command.

πŸ€– Checkpoints

The checkpoints and configuration files are available at wlsgur1018/L3G-World:

File Description
L3G-Mem/L3G-Mem.pt L3G-Mem: 3D Gaussian memory updater
L3G-Mem/L3G-Mem.yaml L3G-Mem inference configuration
L3G-Gen/L3G-Gen.pt L3G-Gen: video DiT adapter weights
L3G-Gen/L3G-Gen.yaml L3G-Gen inference configuration

The L3G-Gen checkpoint contains the trained LoRA, UCPE camera-conditioning, and input-projection weights.

World generation also requires the original Cosmos-Predict2.5-2B checkpoint. Accept the model's access terms on its Hugging Face repository before downloading the checkpoints.

Download the checkpoints:

# For online 3D reconstruction only (L3G-Mem and the Cosmos video VAE)
python scripts/download_checkpoints.py --profile memory --local-dir checkpoints

# For world generation (the above models, L3G-Gen, and Cosmos-Predict2.5-2B)
hf auth login
python scripts/download_checkpoints.py --profile world --local-dir checkpoints

Weights are saved in checkpoints/ and model configurations in config/.

World generation automatically downloads Cosmos-Reason1-7B on its first run to prepare text conditioning.

🌏 World Generation

L3G-World generates camera-controlled videos of a consistent 3D world from a single input image and a text prompt.

We provide three examples in examples/generation/. Each includes an input image, a text prompt, and an OpenCV camera trajectory (c2w).

Run generation from an example:

CUDA_VISIBLE_DEVICES=0 python scripts/generate.py \
  --image examples/generation/cathedral/input.png \
  --text-prompt examples/generation/cathedral/prompt.txt \
  --cameras examples/generation/cathedral/cameras.npz \
  --output outputs/generation/cathedral

Outputs are saved in outputs/generation/cathedral, including:

  • generated.mp4: generated RGB video.
  • memory_condition.mp4: an RGB visualization of the conditioning memory.
  • memory/*.npz: initial and per-chunk Gaussian memory snapshots, including geometry and stored VAE features.
  • cameras.npz: transformed OpenCV camera poses and intrinsics, aligned with the saved memory.
  • input.png and prompt.txt: the cropped input image and text prompt.
  • frames/*.png: generated RGB frames, saved when --save-frames is enabled.

L3G-World generates videos at 832 Γ— 480 resolution (width Γ— height).

Configuration options

Option Default value Description
--steps 35 Number of diffusion sampling steps.
--config-dir config/ Directory containing the L3G-Mem and L3G-Gen model configurations.
--guidance 3.0 Classifier-free guidance scale.
--max-gaussians 51200 Maximum new Gaussians predicted per memory update.
--min-gaussians 5120 Minimum new Gaussians predicted per memory update.
--retrieval-tokens 2048 Maximum Gaussian-memory tokens retrieved per update.
--save-frames Disabled Save generated RGB frames as PNGs.
--depth None First-frame depth aligned with the camera trajectory. Without it, generation on custom inputs first estimates metric depth.

World Generation on Custom Data

Choose a workflow based on the camera information available:

  • Run on a prepared dataset: use metric-scale cameras, or provide first-frame depth aligned with the camera trajectory.
  • Review or design a trajectory: use the interactive viewer when cameras have arbitrary scale and no aligned depth, or when no trajectory is available.

Run on a prepared dataset

  1. Prepare input files in the same format as the provided examples:
inputs/my_world/
  input.png
  prompt.txt
  cameras.npz
  depth.npz        # Optional first-frame reference depth for scale alignment

Provide the camera parameters in an NPZ file with the following fields:

  • c2w, an array of shape [frames,4,4] containing OpenCV camera-to-world transforms (x right, y down, z forward).
  • K, pixel-space intrinsics of shape [frames,3,3] or one shared [3,3] matrix, expressed at the supplied image/video resolution before cropping.

The first camera must correspond to the input image. Images are cropped without stretching to 832 Γ— 480, and intrinsics and depth are transformed consistently.

  1. If you have metric-scale cameras, run generation with automatic first-frame metric-depth estimation:
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py \
  --image inputs/my_world/input.png \
  --text-prompt inputs/my_world/prompt.txt \
  --cameras inputs/my_world/cameras.npz \
  --output outputs/my_world
  1. Alternatively, you can use first-frame depth and aligned cameras. Store positive camera-axis depth in depth.npz under the key depth as a float32 [H,W] array matching the original input image. An optional boolean valid_mask of the same shape can exclude invalid pixels.

For example, given a NumPy depth array:

np.savez_compressed("inputs/my_world/depth.npz",
                    depth=depth.astype(np.float32),
                    valid_mask=np.isfinite(depth) & (depth > 0))

Run generation with the --depth option:

CUDA_VISIBLE_DEVICES=0 python scripts/generate.py \
  --image inputs/my_world/input.png \
  --text-prompt inputs/my_world/prompt.txt \
  --cameras inputs/my_world/cameras.npz \
  --depth inputs/my_world/depth.npz \
  --output outputs/my_world

Review or design a trajectory interactively

  1. To review or design a trajectory, prepare an input folder with this structure:
inputs/my_world/
  input.png
  cameras.npz     # Optional: existing trajectory to review
  prompt.txt
  1. Launch the viewer with an input folder and a separate workspace:
CUDA_VISIBLE_DEVICES=0 python gui/viewer.py \
  --input inputs/my_world --workspace inputs/my_world_review \
  --port 8001

--workspace is a writable working folder. It stores the copied inputs, initialized Gaussian memory, keyframes, and exported trajectory and calibration.

Open http://localhost:8001. You can adjust Translation scale to align camera travel with the reconstructed scene. Click Play path to follow the trajectory.

  1. To build your own trajectory, click Reset keyframes and add the current camera as a keyframe.
  • Use WASD to move and Q/E to move down/up. Use the arrow keys or drag the mouse to look around.
  • You can set Frame gap before adding each camera or edit the gap on an existing keyframe.
  • Click Play path to play the trajectory.
  • Click Save trajectory & inputs to save cameras.npz and the reviewed calibration in source.json in the workspace folder.

To resume editing, rerun the viewer with the same --workspace and omit --input.

  1. Run generation using the saved workspace files:
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py \
  --image inputs/my_world_review/input.png \
  --text-prompt inputs/my_world_review/prompt.txt \
  --cameras inputs/my_world_review/cameras.npz \
  --output outputs/my_world

🧩 Online 3D Reconstruction

L3G-Mem reconstructs 3D Gaussians from an input video stream in real time.

You can download input data from DL3DV. For example, accept the access terms for DL3DV/DL3DV-ALL-960P, then download an example scene:

hf auth login
dl3dv_scene=0bfdd020cf475b9c68e4b469d1d1a2d0cad303eefe8b78fb2307855afdaac8be
hf download DL3DV/DL3DV-ALL-960P "8K/$dl3dv_scene.zip" --repo-type dataset \
  --local-dir inputs/dl3dv
python -m zipfile -e "inputs/dl3dv/8K/$dl3dv_scene.zip" "inputs/dl3dv/$dl3dv_scene"

python scripts/prepare_reconstruction_example.py \
  --scene-dir "inputs/dl3dv/$dl3dv_scene" \
  --output inputs/reconstruction/dl3dv_example

The preparation script creates input.mp4 and cameras.npz, converting Nerfstudio cameras to OpenCV camera-to-world poses and adjusting intrinsics for the crop. You can use another officially downloaded scene by pointing --scene-dir at its directory containing transforms.json and images.

Run online reconstruction from an example:

CUDA_VISIBLE_DEVICES=0 python scripts/reconstruct.py \
  --video inputs/reconstruction/dl3dv_example/input.mp4 \
  --cameras inputs/reconstruction/dl3dv_example/cameras.npz \
  --output outputs/reconstruction/dl3dv_example

Outputs are saved in outputs/reconstruction/dl3dv_example, including:

  • input.mp4: the cropped input video.
  • rgb.mp4: RGB rendering of the reconstructed Gaussian memory.
  • vae_pca.mp4: PCA visualization of the rendered VAE latents, omitted with --no-vae.
  • memory/*.npz: Gaussian memory snapshots after each update, including geometry and, when enabled, stored VAE features.
  • cameras.npz: normalized OpenCV camera poses and transformed intrinsics, aligned with the saved memory.

Output videos are synchronized and saved at 832 Γ— 480 resolution (width Γ— height). L3G-Mem performs reconstruction using RGB frames at 364 Γ— 210 resolution. Use --no-vae to skip VAE encoding and latent lifting.

Configuration options

Option Default value Description
--max-gaussians 10240 Maximum new Gaussians predicted per memory update.
--config-dir config/ Directory containing the L3G-Mem model configuration.
--min-gaussians 2048 Minimum new Gaussians predicted per memory update.
--retrieval-tokens 1024 Maximum Gaussian-memory tokens retrieved per update.
--views-per-update 9 Number of observed RGB/VAE views per memory update.
--observer-offset 0.0 Move the rendering camera behind the input viewpoint; 0 uses the input viewpoint.
--no-vae Disabled Disable VAE encoding and latent lifting; save RGB rendering only.

πŸ“Œ Release Plan

  • L3G-Mem and L3G-Gen checkpoints.
  • L3G-Mem inference code (online reconstruction).
  • L3G-World inference code (world generation).
  • Few-step model checkpoints and L3G-World Fast inference code.

πŸ™ Acknowledgements

We thank the authors and contributors of Cosmos-Predict2.5 and ZipSplat for their open-source projects.

Some example input images are sourced from Atlas by World Labs. We also thank the DL3DV-10K authors for making their dataset available.

βš–οΈ License

Our original code is licensed under MIT. Code from Cosmos-Predict2.5 and ZipSplat retains its Apache-2.0 license. L3G-Mem weights are subject to CC BY-NC 4.0 (non-commercial), while L3G-Gen and L3G-Gen Fast weights follow the NVIDIA Open Model License. Additional dependency and dataset terms apply; see NOTICE.

Built on NVIDIA Cosmos.

πŸ“œ Citation

@misc{choi2026l3gworldrealtimeinfiniteworld,
      title={L3G-World: Real-Time Infinite World Generation with Latent 3D Gaussian Memory},
      author={Jinhyeok Choi and JoungBin Lee and Jongmin Lee and Minkyeong Jeon and Jiyoung Kim and Kaeun Han and Yoonjin Yoon and Seungryong Kim},
      year={2026},
      eprint={2610.40614},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2610.40614},
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for wlsgur1018/L3G-World

Finetuned
(36)
this model

Paper for wlsgur1018/L3G-World