Run this model with HF Jobs
Run pci-lab/worldflow3d on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/pci-lab/worldflow3d. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/pci-lab/worldflow3d on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use pci-lab/worldflow3d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pci-lab/worldflow3d with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("pci-lab/worldflow3d", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Front3D-only card after Waymo split
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108---license: apache-2.0tags:- 3d-generation- diffusion- flow-matching- voxel- scene-generation- autonomous-driving- indoor-scenesdatasets:- waymo-open-dataset- 3D-FRONT---# WorldFlow3DHierarchical, map/layout-conditioned **3D scene generation** via chunked flowmatching. This repo holds the released model **cascade** (coarse → refinement) forboth outdoor (Waymo, map-conditioned) and indoor (3D-FRONT, layout-conditioned)scenes, packaged in the [diffusers](https://github.com/huggingface/diffusers) style.- **Code:** <https://github.com/princeton-computational-imaging/WorldFlow3D>- **License:** Apache-2.0 (code & weights). **Training data** (Waymo Open Dataset,3D-FRONT) carries its own terms — see *Training data & licensing* below.## Repository layout (one repo = the whole cascade)Each stage is a self-contained diffusers layout in its own **subfolder**. The model*code* ships in the `worldflow3d` package, so the subfolders hold only weights + config:```waymo-coarse/ coarse outdoor geometry (map-conditioned), 0.4 m voxelswaymo-refine/ source-flow refinement -> 0.2 m voxelsfront3d-coarse/ coarse indoor geometryfront3d-color/ source-flow + color refinement (unet in=4)```The four `unet/` folders are four distinct trained models, not copies.## Usage```bashpip install worldflow3d # see the GitHub repo for source install``````pythonimport numpy as npfrom worldflow3d import WorldFlow3DPipelinefrom worldflow3d.pipeline.datatypes import LayoutContextfrom worldflow3d.conditioning.waymo import load_waymo_map_jsonfrom worldflow3d.recon import save_mesh# Load the Waymo coarse -> refine cascade straight from this repo.pipe = WorldFlow3DPipeline.from_hub("pci-lab/worldflow3d", stage="waymo-coarse", refinement_stages=["waymo-refine"],device="cuda",)map_json = load_waymo_map_json("102062", map_dir="waymo_maps", data_root="waymo_scenes")transform = np.load("waymo_scenes/coord_transforms/udf_voxel_0.4/segment-102062_training.npy",allow_pickle=True).item()ctx = LayoutContext("waymo", "102062", map_json, transform_data=transform)result = pipe(layout_context=ctx, cfg_scale=1.5, sampling_steps=30,refine=True, refine_sampling_steps=30, use_uniform_chunking=True,smaller_map=True, fraction=0.12)save_mesh(result.voxels.cpu(), result.voxel_size, "scene.ply")```Indoor (3D-FRONT), layout-conditioned coarse → color refinement:```pythonpipe = WorldFlow3DPipeline.from_hub("pci-lab/worldflow3d", stage="front3d-coarse", refinement_stages=["front3d-color"],device="cuda",)```> **Loading note.** Use `WorldFlow3DPipeline.from_hub(...)` (this package). The bare> `diffusers.DiffusionPipeline.from_pretrained(repo, trust_remote_code=True)` one-liner> does **not** work here: diffusers reads `model_index.json` only from a repo *root*,> never a subfolder — so a subfolder/cascade repo is loaded via the package.## Model details| | ||---|---|| Architecture | 3D UNet, velocity-prediction (flow-matching) Euler sampler || Representation | Truncated UDF voxels (direct-diffusion; no VAE). Z is the vertical axis || Conditioning | Waymo vector maps (lanes, road edges/lines, crosswalks); 3D-FRONT layouts (walls/floors/doors/windows/furniture); optional tags (time/weather/location) || Generation | Chunked, coarse→refine cascade; sequential or simultaneous (feather-averaged) || Frameworks | `torch>=2.2`, `diffusers>=0.29` (tested on torch 2.2/diffusers 0.29.2 and torch 2.5/diffusers 0.38) |## Training data & licensingThe weights are **derived from**:- **Waymo Open Dataset** — <https://waymo.com/open/> — non-commercial research license;redistribution of raw data is restricted. The `waymo-*` weights are for research useconsistent with the WOD terms.- **3D-FRONT** — Alibaba; research license.Code and weights are Apache-2.0, but **your use must also comply with the upstreamdataset licenses**. No raw dataset content is redistributed in this repo.## CitationIf you use WorldFlow3D, please cite the project (see the GitHub repository).1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950---license: otherlicense_name: 3d-front-license-nclicense_link: https://3dfront.github.io/library_name: worldflow3dtags:- 3d-scene-generation- flow-matching- diffusers- indoor- front3d- non-commercial---# WorldFlow3D — Front3D (indoor) modelsLayout-conditioned 3D indoor-scene generation (3D-FRONT), as a coarse → colorrefinement flow-matching cascade. Use with the[`worldflow3d`](https://github.com/princeton-computational-imaging/WorldFlow3D)package (`pip install worldflow3d`).> **License.** These models are trained on the **3D-FRONT** dataset and are> released for **non-commercial / research use** under the 3D-FRONT dataset> terms. The `worldflow3d` *code* is Apache-2.0, but that license does not grant> rights to these 3D-FRONT-derived weights. See the 3D-FRONT dataset terms.The **Waymo** (outdoor) models are trained on the Waymo Open Dataset and live ina separate repo, [`pci-lab/worldflow3d-waymo`](https://huggingface.co/pci-lab/worldflow3d-waymo),under the Waymo Dataset License (non-commercial).## Cascade stages| Subfolder | Role ||-----------|------|| `front3d-coarse` | coarse layout-conditioned generation (direct-diffusion) || `front3d-color` | source-flow + color refinement (UNet in=4, color mesh sidecar) |## Usage```pythonfrom worldflow3d import WorldFlow3DPipelinepipe = WorldFlow3DPipeline.from_hub("pci-lab/worldflow3d", stage="front3d-coarse",refinement_stages=["front3d-color"], device="cuda",)```See the [GitHub repo](https://github.com/princeton-computational-imaging/WorldFlow3D)for full docs and the `generate_indoor` CLI.
README.md+30-88