Jaeyoung Chung*, Suyoung Lee*, Jianfeng Xiang, Jiaolong Yang, Kyoung Mu Lee
[2026.09.05] We release the inference & demo code.
- Clone Map2World.
git clone https://github.com/robot0321/Map2World.git
cd Map2World-
Install the environment following the official TRELLIS installation guide. Map2World uses the same environment as TRELLIS.
-
Download pretrained models.
Stage 1 uses the upstream TRELLIS text-to-3D XL model from Hugging Face:
huggingface-cli download microsoft/TRELLIS-text-xlargeStage 2 uses Map2World enhancement checkpoints. Download pretrained_models.tar.gz and extract it at the repository root as ./pretrained_models:
tar -xzf pretrained_models.tar.gzDemo examples are defined in demo.py as EXAMPLE_INPUTS; each entry points to a prompt text file and optionally a segmentation map.
# preset examples: [ex1, ex2, ex3, ex4]
python demo.py ex1 --scale_level 2 To run step-by-step,
# Running stage1: Scene Generation
python stage1_SceneGeneration.py \
--size 2 2 1 \
--scale_level 2 \
--segmap "rand" \
--prompt \
"Spring village with wildflower meadows, cherry blossoms, clear sky" \
"Summer village on green grass, stone houses with red roofs, green leafy trees" \
"Autumn village with golden-red maple trees, fallen leaves" \
"Winter village with wooden cabins, snow-covered roofs, glowing windows, pine trees"
# Running stage2: Enhancing details.
python stage2_DetailEnhancer.py logs/<stage1_run_dir>
# Outputs are written in the same folderThe Spark Viewer is an optional local tool. Install its JS dependencies when needed:
npm install --prefix toolsStart the Spark Viewer:
python tools/spark_viewer/serve_spark_viewer.py --port 8080Open the viewer in your browser:
http://localhost:8080/tools/spark_viewer/
For Remote Server
Forward the remote port over SSH:
ssh -NfL 8080:localhost:8080 user@server- Text prompts have a large impact on generation quality, so provide text that describes "a scene". Otherwise, the scene geometry can collapse.
- As of the current commit, scale 0 geometry is unstable. We will update this in a future revision.
- Add Training code
- Stabilize scale 0
- Fix the error in scale 1 mask (wrong upper range)
If you find our work helpful, please consider citing:
@article{chung2026map2world,
title={Map2World: Segment Map Conditioned Text to 3D World Generation},
author={Chung, Jaeyoung and Lee, Suyoung and Xiang, Jianfeng and Yang, Jiaolong and Lee, Kyoung Mu},
journal={ECCV},
year={2026}
}
We thank all authors behind these repositories for their excellent work: TRELLIS.

