scene-generation
Generate WorldGen 3D scenes from text, images, or equirectangular panoramas, choose splat or mesh output, and explore results in a local Viser viewer.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- scene-generation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Generate WorldGen 3D scenes from text, images, or equirectangular panoramas, choose splat or mesh output, and explore results in a local Viser viewer.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md2.8 KB
- 参考文档references/workflows.md4.0 KB
03 SKILL.md 正文
Scene generation
Use this route when the task asks for a WorldGen scene from a text prompt, source image, or 360 panorama; wants a Gaussian splat or Open3D mesh; needs low-VRAM or experimental Sharp/inpainting options; or wants to explore and export novel views in a browser.
Choose the input path
- Text-to-scene: construct
WorldGen(mode="t2s", ...)and callgenerate_world(prompt). - Image-to-scene: construct
WorldGen(mode="i2s", ...), load an RGB PIL image, and callgenerate_world(prompt, image=image). - Panorama-to-scene: load a 2:1 equirectangular PIL image and call
_generate_world(pano_image, return_mesh=...)to skip panorama diffusion. - Interactive viewer: run the bundled
scripts/worldgen_demo.py; it starts Viser athttp://localhost:8080, renders the scene, and exposes camera path and novel-view export controls.
Read references/workflows.md for concrete code and
command recipes. Read references/troubleshooting.md
for workflow-specific failures after the package-level checks in the root
references/troubleshooting.md.
Select the output
- Leave
return_mesh=Falsefor the defaultSplatFileGaussian scene. Save it withscene.save("scene.ply"). - Set
return_mesh=Truefor an Open3D triangle mesh and save it withopen3d.io.write_triangle_mesh("scene.glb", mesh). - Do not combine
return_mesh=Trueandinpaint_bg=Truein the bundled demo. The inpainting implementation merges foreground/background splats.
Select runtime options
- Use
low_vram=Truewhen the GPU has limited memory or when model loading causes an OOM. The bundled launcher auto-enables it below 24 GB. - Use
use_sharp=Trueonly after the base pipeline works and the optional Sharp package/checkpoint is available. - Use
inpaint_bg=Trueonly for an explicitly experimental background repair; it adds segmentation and LaMa model dependencies and extra downloads. - Use
resolutionto trade panorama detail against memory and latency. Start lower when debugging an environment or an input contract.
Safe preflight
Before a long model download or generation run:
python scripts/check_worldgen_env.py --demo-help
This confirms the installed public API and a tiny CUDA allocation without loading FLUX, DA-2, Sharp, or LaMa weights. For the full flag surface, run:
python scripts/worldgen_demo.py --help
Boundaries
This sub-skill owns user-facing generation, output conversion, the bundled viewer helper, and optional generation modes. It does not own package installation diagnosis, upstream DA-2/PyTorch3D development, model training, release engineering, or repository maintenance. Route those questions to the root references or a more appropriate skill.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).