GTMedics Satélite 2D → Isometric Pixel Art
Turning Satellite Maps into Isometric Pixel Art
2 min read
This tool is a LoRA (a small add-on for a base model) for the FLUX.2 Klein 4B diffusion model that converts flat satellite orthophotos into stylized isometric pixel art with a warm mgwarm color palette. The model is trained to preserve the geometry of roads, buildings, and vegetation, generating 3D volumes, roofs, and facades based on the input frame. The package will be useful for game developers, cartographers, and digital art enthusiasts creating procedural or stylized retro-style maps.
Key features
- mgwarm palette: A special trigger token sets the warm color scheme and clean pixel outlines.
- Precise geometry: Accounts for specified camera viewing angles (azimuth -15°, elevation -45°) for correct object display.
- Volume extrusion: Automatically builds 3D roofs and facades of buildings from the flat source contour.
- Fast inference: Optimized to work with the lightweight FLUX.2 Klein 4B base model and the diffusers library.
What you can do
- Map conversion: Turn real satellite images of urban development into a detailed level for an isometric strategy game.
- Game asset creation: Generate ready-made terrain visual tiles for indie projects in a pixel art aesthetic.
- Territory visualization: Create an artistic presentation of a city block or landscape design.
Example
Python code example using the diffusers library and PyTorch to run LoRA inference on a GPU:
import torch
from diffusers import Flux2KleinPipeline
from PIL import Image
pipe = Flux2KleinPipeline.from_pretrained(
"black-forest-labs/FLUX.2-klein-4B",
torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights(
"drguilhermeapolinario/gtmedics_sat_to_pixel_klein-4b_v1",
weight_name="gtmedics_satelite2pixel_100_v1.safetensors",
adapter_name="satelite2pixel"
)
pipe.set_adapters(["satelite2pixel"], adapter_weights=[1.0])
image = Image.open("entrada/tile_54_136.png").convert("RGB")
result = pipe(
image=image,
prompt="Convert this flat top-down satellite map into mgwarm warm isometric pixel-art city map...",
width=1024,
height=1024,
num_inference_steps=4,
guidance_scale=1.0,
).images[0]
result.save("saida/tile_54_136.png")Read more
DetailsBenchmarks: Tested on 58 test images with subjectively satisfactory generation quality without losing core outlines.
Requirements: Requires a GPU with BF16 and CUDA support, along with installed
diffusers, transformers, and peft packages.Training parameters: The LoRA was trained with a rank of 32 and alpha 32 for 1,200 steps using the AdamW 8-bit optimizer.
Limitations: The model performs artistic interpretation; for precise engineering measurements and geolocating, original geospatial data should be used.




Comments