T
TerrainSR
Open Sourceπ Alt to World CreatorFast, realistic AI-powered heightmap upscaling for 3D terrains
π³ Self-Hostableβ‘ Editorial Signal: 76/100β
32 Stars
git clone https://huggingface.co/joe-gibbs/terrainsrTerrainSR is an efficient AI model designed to upscale low-resolution heightmaps into highly detailed terrain data. It solves the common bottleneck of generating realistic, high-fidelity geographical or 3D world assets without expensive manual sculpting.
Transforms low-res heightmaps into detailed 3D terrain grids rapidly.
Generates natural-looking erosion and geological features during the upscaling process.
Optimized for speed to fit smoothly into automated 3D asset generation pipelines.
Generating massive open-world game maps from low-resolution elevation data
Upscaling historical topographical maps for architectural visualization and simulation
Automating procedural content generation pipelines for 3D environment artists
Unlike commercial world-generation tools like World Creator, TerrainSR offers a lightweight, open-source AI approach that can be directly embedded into custom pipelines.
Game developers, 3D environment artists, and simulation engineers needing automated heightmap refinement.
TerrainSR is engineered to eliminate critical operational friction in ai & machine learning. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
TerrainSR is an open-source deep learning super-resolution engine engineered specifically to upscale coarse geographical digital elevation models (DEMs) into high-fidelity topographical terrain grids. Developed by Joe Gibbs, the model addresses the trade-off in geographical data processing: low-resolution elevation datasets (such as 100-meter grids) are compact and devoid of modern human infrastructure but lack visual detail, whereas high-resolution LiDAR datasets (10-meter grids) are massive and contaminated with roads, quarries, and buildings. TerrainSR operates a distilled, single-step convolutional neural network that synthesizes plausible pre-human geological erosion and geomorphology. The execution loop accepts a dual-channel tensor input: a 2D coarse elevation array sampled at 100-meter resolution paired with a high-resolution binary water mask at 10-meter resolution (where 1 designates water bodies and 0 designates land). Through specialized residual dense blocks and hydrological spatial conditioning, the network upscales elevation data by a factor of 10x, emitting a 32-bit floating-point elevation tensor. Implemented in PyTorch with exportable ONNX and TensorRT backends, TerrainSR executes in under 800 milliseconds for a 564x564 grid tile on an NVIDIA RTX 4070, replacing hours of CPU-bound hydraulic erosion simulation with near-instantaneous GPU inference. Memory allocation during tensor execution remains strictly bounded, utilizing mixed-precision FP16 operations to minimize VRAM utilization.
Developer ergonomics in TerrainSR are optimized for technical environment artists, GIS data specialists, and game engine pipeline developers working in Unreal Engine 5, Unity, and Houdini. The model weights and inference scripts are hosted openly on Hugging Face (joe-gibbs/terrainsr) and can be loaded with minimal boilerplate: import torch; model = torch.hub.load('joe-gibbs/terrainsr'); high_res_dem = model(coarse_dem_100m, water_mask_10m). Configuration ergonomics are straightforward, governed by simple Python parameters or YAML pipeline manifests specifying input raster bounds, coordinate reference systems (CRS) such as EPSG:4326 or UTM projections, and normalization boundaries. For large-scale geographical expanses, TerrainSR includes a sliding-window tiling engine that segments regional heightmaps into tiles up to 564 cells per side with even dimensions. The tiling utility applies configurable edge overlapping margins and cosine-taper blending functions, eliminating visible grid seams across adjacent output tiles. The tool natively reads and exports standard geospatial and graphics formats, including GeoTIFF, raw 16-bit and 32-bit floating-point heightmap arrays, and PNG height textures, enabling direct drag-and-drop ingestion into procedural landscape generators and game engine landscape actors. Automated command-line scripts allow artists to batch-process multi-gigabyte regional elevation datasets unattended across local workstations or headless cloud render nodes.
TerrainSR is distributed under permissive open-source licensing terms on Hugging Face (MIT/Apache 2.0 compatible), granting game development studios, GIS researchers, and independent creators unrestricted commercial rights without revenue sharing or per-seat fees. From a Total Cost of Ownership perspective, TerrainSR dramatically reduces the compute and labor expenditures typically required to construct expansive, realistic 3D game terrains. Commercial world-generation software suites such as World Creator ($289 per license) and QuadSpinner Gaea ($99 to $299 per seat) require substantial software licensing budgets and rely on computationally demanding multi-threaded hydraulic erosion algorithms that can take hours to bake across continental landscapes. TerrainSR replaces these lengthy simulation phases with sub-second GPU inference runs costing pennies on consumer-grade hardware or cloud GPU instances (such as AWS g4dn.xlarge at $0.52 per hour). The model's remarkably lean training lineageβcosting less than $100 in rental compute to train initiallyβproves that studios can easily fine-tune the architecture on bespoke geographical datasets (such as arid canyonlands or glacial fjords) without multimillion-dollar R&D budgets or specialized supercomputing clusters. Furthermore, eliminating proprietary software lock-in enables technical artists to embed super-resolution kernels directly into bespoke in-house world-building DCC tools.
TerrainSR is production-ready for offline terrain generation pipelines, open-world video game environment authoring, historical geographical visualizations, and geographical simulation environments requiring realistic 1:1 scale elevation models. It delivers outstanding value for environment artists seeking to generate natural geological formations rapidly without manual sculpting. However, the model is strictly calibrated for Earth-like topography with 100-meter to 10-meter resolution transitions; attempting to upscale ultra-coarse data (>500m) or extraterrestrial topography (such as Martian surface scans) results in anomalous geological artifacts because the model's learned weights assume terrestrial fluvial erosion physics. Additionally, input tiles must adhere strictly to even grid dimensions and maximum edge bounds (564x564 cells). For enterprise production pipelines, package TerrainSR within containerized worker instances running PyTorch with TensorRT acceleration on scalable GPU infrastructure. Integrate the service with Celery or Temporal to coordinate parallel tile processing across regional GeoTIFF source data. Ensure that pipeline ingestion scripts apply a 16-pixel overlapping margin between adjacent tiles, using smooth Hermite spline blending to guarantee seamless landscape continuity in final game engine heightmaps. Post-generation normal map audits should be configured to flag synthetic artifact spikes along steep mountain cliffs.
TerrainSR is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike commercial world-generation tools like World Creator, TerrainSR offers a lightweight, open-source AI approach that can be directly embedded into custom pipelines.
Yes. TerrainSR is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
An account registration is standard to provision access credentials, manage configurations, and coordinate team access.
You can launch or test TerrainSR quickly using the following command: git clone https://huggingface.co/joe-gibbs/terrainsr Visit the official portal at https://huggingface.co/joe-gibbs/terrainsr for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of TerrainSR was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of TerrainSR and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/terrainsr)<a href="https://lordorange.top/tool/terrainsr" target="_blank"><img src="https://lordorange.top/badge/terrainsr.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring TerrainSR.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.