What it is
HY-World 2.0 is a multi-modal world model framework for world generation and world reconstruction. It accepts text, single-view images, multi-view images, and videos, and produces 3D representations such as meshes and Gaussian Splattings. Generation runs a four-stage pipeline (HY-Pano 2.0, WorldNav, WorldStereo 2.0, WorldMirror 2.0 with 3DGS learning), while reconstruction uses the feed-forward WorldMirror 2.0 model.
Who it's for
- Researchers working on 3D world generation and reconstruction
- Developers who need editable 3D assets (meshes/3DGS) for engines like Blender, Unity, Unreal Engine or Isaac Sim
- Practitioners reconstructing 3D scenes from multi-view images or casual videos
Requirements
Requirements
- CUDA 12.8 and Python 3.11+ recommended
- Conda environment (README uses python=3.11.15)
- One FlashAttention backend (FlashAttention-3 recommended for Hopper GPUs, or FlashAttention-2)
- gsplat (custom gsplat_maskgaussian variant recommended; official gsplat supported for worldrecon only)
- Extra git-based dependencies and the navmesh extension for World Generation
- Multi-GPU WorldMirror mode requires number of input images >= number of GPUs
Setup
Create the shared environment
Clone the repo and create a conda environment.
bashgit clone https://github.com/Tencent-Hunyuan/HY-World-2.0 cd HY-World-2.0 conda create -n hyworld2 python=3.11.15 conda activate hyworld2Install World Reconstruction dependencies
Install base requirements and the recommended custom gsplat variant.
bash# Base dependencies shared by worldrecon and worldgen pip install -r requirements.txt # Recommended: install the custom gsplat variant once for both worldrecon and worldgen cd hyworld2/worldgen/third_party/gsplat_maskgaussian pip install -e . --no-build-isolation cd ../../../../Install a FlashAttention backend
Install one backend; the simpler FlashAttention-2 option is shown.
bashpip install flash-attn --no-build-isolationAdd World Generation dependencies (optional)
Only needed for worldgen, with the hyworld2 environment active.
bash# Git-based dependencies require torch/CUDA to be installed first pip install --no-build-isolation -r requirements_git.txt # recastnavigation is managed as a git submodule git submodule update --init --recursive # Recast navmesh extension for trajectory planning cd hyworld2/worldgen/third_party/navmesh pip install . --no-build-isolation cd ../../../../
Examples
WorldMirror 2.0 reconstruction in Python
pythonfrom hyworld2.worldrecon.pipeline import WorldMirrorPipeline
pipeline = WorldMirrorPipeline.from_pretrained('tencent/HY-World-2.0')
result = pipeline('path/to/images')What it does: Loads WorldMirror 2.0 with a diffusers-like API; weights download automatically from Hugging Face on first run.
Reconstruction with camera and depth priors
pythonresult = pipeline(
'path/to/images',
prior_cam_path='path/to/prior_camera.json',
prior_depth_path='path/to/prior_depth/',
)What it does: Injects camera and depth priors into reconstruction; the README links DOCUMENTATION.md for how to prepare them.
WorldMirror CLI on multiple GPUs
bash# Single GPU
python -m hyworld2.worldrecon.pipeline --input_path path/to/images
# Multi-GPU
torchrun --nproc_per_node=2 -m hyworld2.worldrecon.pipeline \
--input_path path/to/images \
--use_fsdp --enable_bf16What it does: Runs reconstruction from the command line; in multi-GPU mode provide at least as many images as GPUs.
Panorama generation with HY-Pano 2.0
pythonfrom pipeline import HunyuanPanoPipeline
pipeline = HunyuanPanoPipeline.from_pretrained('tencent/HY-World-2.0')
output = pipeline('input.png')
output.save('output_panorama.png')What it does: Generates a 360° panorama from an input image using the diffusers-like API.
Launch the Gradio demo
bash# Single GPU
python -m hyworld2.worldrecon.gradio_app
# Multi-GPU
torchrun --nproc_per_node=2 -m hyworld2.worldrecon.gradio_app \
--use_fsdp --enable_bf16What it does: Starts a browser demo to upload images/videos and view 3DGS, point clouds, depth, normals and cameras.
Pros & cons
Pros
- Pro:Outputs real, persistent 3D assets (meshes/3DGS/point clouds) importable into Blender, Unity, Unreal Engine and Isaac Sim
- Pro:Covers both reconstruction (WorldMirror 2.0) and generation (panorama, trajectory planning, expansion, composition) with released code and weights
- Pro:Diffusers-like Python API, CLI, and Gradio demo with automatic weight download
- Pro:Optional camera and depth prior injection improves reconstruction accuracy in reported benchmarks
Cons
- Con:Complex setup: custom gsplat build, FlashAttention, git submodules and a navmesh extension for World Generation
- Con:Large models (HY-Pano-2 ~80B, WorldStereo-2 ~17B) imply heavy compute needs
- Con:World generation is a five-stage script pipeline with details deferred to separate READMEs
Images
