Skip to main content

Terrain Diffusion

Fast, difficulty-conditioned terrain generation with an endpoint-distilled one-step model and ONNX Runtime.

The teaser above shows all 100 difficulties across six simulator renderers.

Install

pip install adaptive-terrain-diffusion
pip install "adaptive-terrain-diffusion[render,images]"  # optional rendering and TIFF support

Python

from terrain_diffusion import TerrainGenerator, render_terrains, save_terrains

generator = TerrainGenerator()  # automatically selects CUDA when available

terrains, difficulties = generator.generate(
    4,
    shape=(256, 384),
    difficulty="random",       # or any integer from 1 to 100
    seed=7,
    return_difficulties=True,
)

variations = generator.generate_from(
    terrains[0], difficulty=75, strength=0.5, variants=4
)

save_terrains("terrains", terrains, suffix=".npy")
render_terrains(terrains, save_path="terrains.png")

generate_from also accepts batches and .txt, .csv, .npy, .npz, or TIFF files. Larger-than-native maps use overlapping, blended generation automatically.

CLI

terrain-diffusion generate --output terrains --num 4 --difficulty 60 --shape 256 384 --render
terrain-diffusion vary terrain.npy --output variants --difficulty 75 --variants 4
terrain-diffusion simulate mujoco --difficulty 100 --shape 1024 1024

Simulators

SimulatorTerrain.apply() supports IsaacLab, MuJoCo, MuJoCo Playground, MuJoCo Warp, PyBullet, and Gazebo without adding simulator packages as dependencies.

from terrain_diffusion import SimulatorTerrain

asset = SimulatorTerrain(terrains[0], horizontal_scale=0.1)
asset.apply("pybullet", client_id)

See the simulator tutorial for complete integrations.

Metadata

Release files for adaptive-terrain-diffusion 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adaptive-terrain-diffusion 0.4.2
File Size Uploaded Provenance
adaptive_terrain_diffusion-0.4.2.tar.gz 38.9 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adaptive-terrain-diffusion 0.4.2
File Interpreter ABI Platform
adaptive_terrain_diffusion-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 77.9 MB

Release files / adaptive_terrain_diffusion-0.4.2.tar.gz

Download URL adaptive_terrain_diffusion-0.4.2.tar.gz
Size 38.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9efcd9d3225de79a0a77df923bedd3f6b253b74f87f10828e0995c10c1d975a9
BLAKE2b-256 checksum
How to use checksums
1cb25f4b0fdc39625718543479dc7526ec1d3e0846cfefe1d4e5a7ea2ecd91a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release files / adaptive_terrain_diffusion-0.4.2-py3-none-any.whl

Download URL adaptive_terrain_diffusion-0.4.2-py3-none-any.whl
Size 38.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dd803be2c98d764e4e64db18c631eef46c210282b398c4dd080f4cda3fa7c84d
BLAKE2b-256 checksum
How to use checksums
f119b3ebc3d4d49cd67e5c618bd92cb13b629ef0a488272d93c848a3f62b48f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Security for adaptive-terrain-diffusion 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adaptive_terrain_diffusion-0.4.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page