Synthetic street data from a procedural city
I'd never done synthetic data labelling before, so I wanted to use my Painted Ladies street as an exercise to learn how it works. Since every window, door and bay in the street is generated, the scene already knows what everything is. I used my Houdini MCP to turn it into a dataset generator, so every render comes with labels for each pixel, bounding boxes, depth and camera data.

Explore a sample
Hover over the image to see what each pixel is labelled as. Click an object to pin it and see its full annotation. You can also switch between the class map, the instance map (a different colour for each object), depth and surface normals.
- Wall
- Window
- Door
- Garage
- Bay
- Stairs
- Porch
- Roof
- Ornament
- Road
- Sidewalk
- Vegetation
Why synthetic labels
To train a model to recognise things like windows and doors, you need a lot of images where every pixel is labelled. Labelling real photos by hand takes a long time. With a rendered scene, the labels can come straight out of the render, since the scene already knows what each object is.
Robotics and self-driving teams use synthetic data like this a lot, especially for situations that are hard to capture in real life. Changing things like lighting, colours and camera angles between images helps a model focus on what matters. A procedural street makes that easy, since every seed gives a different street.
Deciding what the labels mean
Before rendering anything, I had to decide what the labels should mean. Each pixel gets one class. When one object sits inside another, the more specific one wins, so a window inside a bay is labelled as a window. Each object also gets its own ID, and windows inside a bay are linked to that bay, so the bay can still be found as a whole.
For the houses, the classes are walls, windows, doors, garages, bays, stairs, porches, roofs, ornament and house numbers. The street (road, sidewalk, trees, street furniture and the buildings in the distance) only gets classes, without separate IDs, since you wouldn't need to count those.
How it works
I added the labels inside the house HDA, right after each step that builds geometry. The step that builds the windows already knows it's making windows, so it's the most reliable place to tag them. Every face gets three attributes: what it is (semantic_id), which object it belongs to (instance_id), and the object it sits inside (parent_id). At the street level, each house's IDs are made unique, and the street pieces get their classes.
These attributes carry over into Solaris, where Karma renders them as extra image layers alongside the normal render. Each frame is rendered twice: once normally, and once with every material made opaque for the labels, because transparent glass would mix a window's ID with the room behind it. The label render uses one sample per pixel, so no pixel is ever an average of two objects. It also outputs depth and normals.
All of this runs through one tool in my MCP, synth_render. For each seed and camera, it renders both passes, saves the images and label maps, and writes everything into a COCO file, a common format for detection datasets.
In the USD stage, the faces are grouped by material, since that's how the materials get assigned. So the object hierarchy (house, bay, window) lives in the primvars on each face rather than in the prim paths. The explorer above shows both: the hierarchy built from those IDs, and the primvar values on the object you select. A next step would be to restructure the stage so each object is its own prim, which is how tools like NVIDIA's Replicator organise their scenes.
What each sample contains
- The rendered image, in one of the lighting looks.
- A class map and an instance map, with one value per pixel.
- A depth map and a surface normal map.
- For every object: its class, 2D box, mask, size in pixels, the object it sits inside, and its 3D box.
- The camera's lens and position, so the 2D images can be matched back to 3D.
- The seed, camera and lighting look it was made with.
- A scene file per seed with each house's door, stairs and porch boxes and the step sizes, in metres, for rebuilding the stoop in a physics simulator.
The full run was 10 seeds, 3 cameras (a street view, a sidewalk view and one at robot height, about 1.2 m off the ground) and 2 lighting looks: 60 frames. An automatic check rejected 4 of them, where a backdrop building sat right in front of the camera, leaving 56 images and 2,074 labelled objects. It took about three hours on my Mac's CPU.
| Class | Objects |
|---|---|
| Window | 1,048 |
| Bay | 214 |
| Wall | 210 |
| Garage | 138 |
| Door | 134 |
| Roof | 122 |
| Porch | 96 |
| Stairs | 94 |
| House number | 18 |
332 of those objects are linked to a parent, mostly windows inside bays. That's enough to test the pipeline, but far too small to train a real model on. That would take hundreds or thousands of frames from overnight runs.
What's in the download
Each batch is one folder per camera and lighting look, plus a single annotations.json that covers every frame. This is the layout:
synth_dataset/
annotations.json one COCO file for every frame
cam_wide_golden/
images/cam_wide_golden_22.png the render
labels/cam_wide_golden_22_class.png class per pixel (8-bit)
labels/cam_wide_golden_22_instance.png object ID per pixel (16-bit)
labels/cam_wide_golden_22_depth.png metres x 256 (16-bit)
labels/cam_wide_golden_22_normal.png surface direction as colour
cam_street_sunny/ ...
cam_robot_golden/
images/, labels/
scene/seed_22.json door, stairs and porch boxes, step sizesAnd this is one annotation from that file, the front door of the hero house in seed 22. The mask is stored as run lengths (so many pixels off, so many on), which is how COCO keeps masks small.
{
"category_id": 3, // door
"instance_id": 1300, // house 0 (the hero), object 300
"bbox": [58, 222, 74, 95], // x, y, width, height in pixels
"area": 4935, // visible pixels
"segmentation": { "size": [360, 640], "counts": [21193, 4, 303, ...] },
"bbox_3d": [0.39, 0.18, -1.21, 2.57, 3.03, 0.06], // world box, metres
"parent_id": 0 // not inside another object
}Every image entry also stores the camera: focal length and image centre in pixels, and where the camera sits in the world. With that and the depth map, any pixel can be turned back into a 3D point.
Problems I ran into
- Glass mixed up the IDs of windows and the rooms behind them, so the labels needed their own render with opaque materials.
- Karma saved the label layers in a separate part of the image file, which my first version didn't read.
- My first label render still blended IDs where objects meet: 14% of pixels held a number that wasn't a real ID. Karma has a filter meant to stop this, but it had no effect in my setup. At first I patched the bad pixels afterwards by snapping them to a valid neighbour, which hid the problem rather than fixing it. Comparing the two versions later showed the patch had invented about 300-pixel "house numbers" in dark gaps between houses. Now the label render takes exactly one sample per pixel, so each pixel comes from a single surface. The edges are jagged, but every label is exact, and across all 60 frames the check found 0 pixels to fix.
- The Houdini Apprentice watermark appears in every layer, so that corner is marked to be ignored.
- Depth of field blurred the edges, so it's switched off for the label render.
- Checking the first batch, I found two seeds where a backdrop building sits right in front of the wide camera. The labels were correct, but the images were useless. Depth caught it: a "distant" building shouldn't be 1 m from the camera. That check now runs after every batch, and frames that fail are left out of the dataset and listed in a QA report.