pixelcbe-klein4b-lora
pixel-art city rendering for FLUX.2
2 min readupdated
This edit-LoRA (a lightweight add-on for image editing) turns flat isometric 3D city renders into detailed pixel art in the style of pixelcbe.com. Built by codeanand on top of the compact black-forest-labs/FLUX.2-klein-4B, it is designed specifically for image-to-image workflows. Unlike standard filters or text-to-image generators, the adapter was trained strictly on pairs of base renders generated from OpenStreetMap data and hand-drawn pixel art from the exact same perspective, so it faithfully preserves both geography and camera angle. It is a great fit for game developers, cartographers, and procedural isometric map enthusiasts.
Key features
- Stylizes flat isometric base renders (1024×1024) into hand-crafted pixel art while preserving the original color palette and camera angle.
- Fast inference — generating a single tile takes about 1.5 seconds in 4 steps on an A100 GPU.
- Performs best on dense urban layouts typical of Indian cities.
- Built to work alongside the open-source
pixelcbepipeline, where terrain, stadiums, airports, and overpasses are handled procedurally in separate passes.
What you can do
- Restyle isometric 3D blockouts of real-world neighborhoods built from OpenStreetMap data into cozy pixel-art maps.
- Pair it with the base
FLUX.2-klein-4Bmodel and therender_v2.pyscript to quickly generate map tiles for city builders or web maps.
Example
Feed in a 1024×1024 flat isometric render of a city block generated by base/render_v2.py (with a locked camera angle and palette). In 4 inference steps, the model outputs the exact same map tile, complete with pixel-art textures and fine details.
Read more
DetailsBase model: black-forest-labs/FLUX.2-klein-4B (Rank-64 edit-LoRA).
Training: 2,000 steps using ostris/ai-toolkit on a single A100 GPU (~$5 budget).
Inference: 4 steps, ~1.5s per 1024×1024 tile on an A100.
Limitations: best suited for dense Indian urban layouts; usage is governed by the base model's license.










Comments