Terrain-Urban Diffusion

A diffusion model that grows small towns on real terrain. It is trained on forty years of observed settlement change (GHSL 1980–2020), and a 15-minute-city scorecard ranks what it generates. Draw a plan below, or drop in a screenshot of any city grid, and the model continues it.

Try it: sketch or screenshot → grown town

Black lines are roads, warm colours are buildings, green is kept free. Upload works with map screenshots too: dark thin features read as roads, warm blocks as buildings. Terrain is procedural here; the research pipeline uses real elevation.

your plan kept free (locked) res low res med res high commercial industrial institutional mixed use farmland water suggested bike lane orange = untyped growth roads steep (locked) ★ proposed local centres

Real-town mode: grow a real place on the map

Click anywhere on the map to drop a 1.9 km study window. The site fetches real elevation (AWS terrain tiles) and real roads and buildings (OpenStreetMap) for that spot, runs the model, and drapes the generated growth over the map. Five experts cover villages, hilly towns, planned fringes, informal frontiers, and megacity edges; the router picks one per window and the status line reports which.

existing town res low res med res high commercial industrial institutional mixed use farmland water suggested bike lane orange = untyped growth faint = advisory zoning (expansion land) water (locked) steep (locked) ★ proposed local centres

Read the rules from your planning document

Paste text from a zoning ordinance, comprehensive plan, or model-code excerpt (for example your jurisdiction's adopted version of the International Building Code; no code text ships with this site). A deterministic reader extracts the numeric development rules it recognises, quotes the sentence each number came from, merges duplicates under a strictest-wins rule, and can apply an extracted slope limit to the steep lock above. This is a machine reading, not an interpretation: confirm every value against the document. The full extractor, including an optional local language-model layer and the compliance checks the rules feed, is src/jurisdiction.py in the repository.

What you are looking at

The model is a mixture of five compact conditional U-Nets (~13M parameters each), one per growth regime: village, hilly town, planned flat fringe, informal peri-urban frontier, and megacity edge. A hard router on the conditioning statistics picks the expert for each window, and each expert denoises a growth plan given five conditioning rasters: elevation, slope, the existing built footprint, the road network, and water. The output has three channels: new roads, new built density, and a proposed amenity-density field. Alongside housing, it suggests where a bakery, school or clinic would let the new streets work as a 15-minute neighbourhood. In the full pipeline, sixteen futures are sampled per site and an 11-metric scorecard (walk coverage, green preservation, flood and landslide avoidance, congestion, access equity) keeps the most sustainable ones.

Example output

Top-3 ranked futures for a held-out town
Top-3 sustainability-ranked futures for a held-out town (v2 model): generated density, per-pixel 15-minute walk-time maps, and bike-lane annotations from the slope-aware edge classifier.
Gubbio, Italy: existing footprint Gubbio, Italy: generated growth plan
Gubbio, Italy (held out): existing footprint (left) vs. a generated growth plan (right), v5 five-expert model, routed to the town expert.
Wengen, Switzerland: existing footprint Wengen, Switzerland: generated growth plan
Wengen, Switzerland (held out): a village-scale window routed to the village expert.
Delhi, Narela: existing footprint Delhi, Narela: generated growth plan
Delhi, Narela (held out): a megacity growth edge routed to the megacity expert.
Antananarivo west fringe: existing footprint Antananarivo west fringe: generated growth plan
Antananarivo, Madagascar, western fringe (held out): an informal peri-urban frontier routed to the informal expert.
Des Moines NW fringe: existing footprint Des Moines NW fringe: generated growth plan
Des Moines, Iowa (NW urban fringe, a training window kept as a routing check): existing footprint (left) vs. a generated growth plan (right), v5 model, routed to the urban expert.