{"article":{"slug":"pixel-loras","title":"Pixel LoRAs","subtitle":null,"summary":"Marcelo Eduardo explains how he trained small open image models with LoRAs to paint isometric pixel-art cities the way Codex painted his Brasília map, cutting the cost of maps like MiniDF and MiniSP from a $500-a-month Codex plan to a rented GPU or a home computer.","content_type":"blog_post","language":"en","canonical_url":"https://marceloeduardo.com/pixel-lora-training.html","author":{"name":"Marcelo Eduardo","url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"Marcelo Eduardo","url":"https://marceloeduardo.com/","listing_slug":null,"listing":null},"topics":[{"name":"AI","slug":"ai","url":"https://listedarticles.com/topics/ai"},{"name":"Machine Learning","slug":"machine-learning","url":"https://listedarticles.com/topics/machine-learning"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":618,"reading_minutes":3,"published_at":"2026-11-08T17:11:52.337Z","added_at":"2026-11-08T17:11:52.337Z","updated_at":"2026-11-08T17:11:52.337Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/pixel-loras","markdown_url":"https://listedarticles.com/articles/pixel-loras.md","example":false,"citation":"Marcelo Eduardo, Marcelo Eduardo. \"Pixel LoRAs.\" 8 Nov 2026. https://marceloeduardo.com/pixel-lora-training.html (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://marceloeduardo.com/pixel-lora-training.html"},"body_markdown":"# Pixel LoRAs\n\nA far cheaper way to paint pixel cities: small open image models, taught to paint the way Codex painted my map of Brasília.\n\nThe [MiniDF map](https://cadeoflavio.marceloeduardo.com/) is painted frame by frame by Codex: a 3D render of the city goes in, a hand-made isometric pixel-art tile comes out. MiniDF (6,631 frames) and its São Paulo sibling MiniSP (1,083) used up a $500-a-month Codex plan, hitting its limit twice and waiting for resets: about $0.065 and a minute of waiting per frame. Here open models learn the same move with a small LoRA (a 33 MB add-on), from pairs of 3D render and Codex painting, so any city can be painted on a rented GPU or a home computer for a fraction of that.\n\nEvery run is judged with one number, LPIPS: how far the model’s painting is from Codex’s. Lower is closer. Rounds 1–3 were judged on 32 held-out Brasília frames. Now three open models race for ten rounds each (Qwen Image 2.1, FLUX.2 klein and Qwen-Image-Edit-2511), judged on one frozen test set that also covers landmarks, São Paulo, Rio and new world landmarks.\n\n[Current pick ↓](#pick)\n\n[What it costs ↓](#cost)\n\n[Training now ↓](#live)\n\n[Test sheets ↓](#sheets)\n\n[Open the map ↗](https://cadeoflavio.marceloeduardo.com/)\n\n## Pick.\n\nLeading model\n\nExample\n\n| Test set | Pick | Qwen Image 2.1 | \n|---|---|---|\n\n### Why it leads\n\n### Not settled yet\n\nDownload the LoRAs\n\n## Cost.\n\n| Option | All of MiniDF | vs Codex | \n|---|---|---|\n| Measuring… |  |  | \n\n## Build.\n\nBuild your own tiny city: prompt strategies to download.\n\nThree short guides, written for a friend who wants a map like MiniDF of his own city: the camera, the data, the prompts, how frames join without seams, and what it costs. Plain Markdown, free to read and share.\n\n| Guide | What it covers | Size |  | \n|---|---|---|---|\n| 1 · How MiniDF was made | The full pipeline: fixed isometric camera, Google 3D tiles, three zoom levels, painting each frame with Codex and stitching it seamlessly, the fixes (water, colour lock, roads, landmarks), export, hosting, cost, and the main painting prompt. | 11 KB | [Download .md](pixel-lora-training/guides/1_minidf_strategy.md) | \n| 2 · A cheap two-level version | The budget recipe: choosing heading, tilt and scale, two zoom levels, how many frames your city needs and what they cost, which APIs to enable, and the six pipeline steps up to a zoomable OpenSeadragon viewer. | 10 KB | [Download .md](pixel-lora-training/guides/2_cheap_two_level_version.md) | \n| 3 · On a Mac with the LoRAs | Painting every frame on your own Mac with the open LoRAs from this page instead of Codex: install, the exact settings, measured speed on an M5 Max, joining frames, known weaknesses, and running for days. | 7 KB | [Download .md](pixel-lora-training/guides/3_mac_m5_with_loras.md) | \n\n## Live.\n\n## Models.\n\nTest LPIPS per round · mean of the Brasília, landmark, São Paulo, Rio and world sets · lower is closer\n\nThe first rounds are training.\n\n| Model | Round | Change | Test | Brasília | Landm. | São Paulo | Rio | World | Steps | \n|---|---|---|---|---|---|---|---|---|---|\n| Loading… |  |  |  |  |  |  |  |  |  | \n\nReference rows are the round 1–3 Qwen models scored on the same test set. World scores appear once the world-landmark test views are painted.\n\n## Progress.\n\nLPIPS per run · lower is closer to Codex\n\nLoading…\n\n## Rounds.\n\nLoading…\n\n## Sheets.\n\n## Log.\n\n| Run | Change | LPIPS | Copy | Edges | Steps | Result | \n|---|---|---|---|---|---|---|\n| Loading… |  |  |  |  |  |  | \n\n- LPIPS\n- Perceptual distance between the model’s painting of a held-out 3D render and the real Codex painting of the same frame, averaged over 32 fixed frames (16 at 3× detail, 16 at normal detail). The only number that decides.\n- Copy guard\n- Distance between the output and the 3D input. Below 0.30 the model is copying the photo-like render instead of painting, and the run is discarded.\n- Edges\n- How far the output’s edges are from the Codex painting’s: roads and buildings in place. A run more than 0.03 worse than the best is discarded.\n- Noise floor\n- The baseline run twice differs by 0.0145, so a change has to beat the best by more than that to count.","body_html":"<h1 id=\"pixel-loras\">Pixel LoRAs</h1>\n<p>A far cheaper way to paint pixel cities: small open image models, taught to paint the way Codex painted my map of Brasília.</p>\n<p>The <a href=\"https://cadeoflavio.marceloeduardo.com/\" rel=\"nofollow ugc noopener\">MiniDF map</a> is painted frame by frame by Codex: a 3D render of the city goes in, a hand-made isometric pixel-art tile comes out. MiniDF (6,631 frames) and its São Paulo sibling MiniSP (1,083) used up a $500-a-month Codex plan, hitting its limit twice and waiting for resets: about $0.065 and a minute of waiting per frame. Here open models learn the same move with a small LoRA (a 33 MB add-on), from pairs of 3D render and Codex painting, so any city can be painted on a rented GPU or a home computer for a fraction of that.</p>\n<p>Every run is judged with one number, LPIPS: how far the model’s painting is from Codex’s. Lower is closer. Rounds 1–3 were judged on 32 held-out Brasília frames. Now three open models race for ten rounds each (Qwen Image 2.1, FLUX.2 klein and Qwen-Image-Edit-2511), judged on one frozen test set that also covers landmarks, São Paulo, Rio and new world landmarks.</p>\n<p><a href=\"#pick\">Current pick ↓</a></p>\n<p><a href=\"#cost\">What it costs ↓</a></p>\n<p><a href=\"#live\">Training now ↓</a></p>\n<p><a href=\"#sheets\">Test sheets ↓</a></p>\n<p><a href=\"https://cadeoflavio.marceloeduardo.com/\" rel=\"nofollow ugc noopener\">Open the map ↗</a></p>\n<h2 id=\"pick\">Pick.</h2>\n<p>Leading model</p>\n<p>Example</p>\n<div class=\"table-wrap\"><table><thead><tr><th>Test set</th><th>Pick</th><th>Qwen Image 2.1</th></tr></thead></table></div>\n<h3 id=\"why-it-leads\">Why it leads</h3>\n<h3 id=\"not-settled-yet\">Not settled yet</h3>\n<p>Download the LoRAs</p>\n<h2 id=\"cost\">Cost.</h2>\n<div class=\"table-wrap\"><table><thead><tr><th>Option</th><th>All of MiniDF</th><th>vs Codex</th></tr></thead><tbody><tr><td>Measuring…</td><td></td><td></td></tr></tbody></table></div>\n<h2 id=\"build\">Build.</h2>\n<p>Build your own tiny city: prompt strategies to download.</p>\n<p>Three short guides, written for a friend who wants a map like MiniDF of his own city: the camera, the data, the prompts, how frames join without seams, and what it costs. Plain Markdown, free to read and share.</p>\n<div class=\"table-wrap\"><table><thead><tr><th>Guide</th><th>What it covers</th><th>Size</th><th></th></tr></thead><tbody><tr><td>1 · How MiniDF was made</td><td>The full pipeline: fixed isometric camera, Google 3D tiles, three zoom levels, painting each frame with Codex and stitching it seamlessly, the fixes (water, colour lock, roads, landmarks), export, hosting, cost, and the main painting prompt.</td><td>11 KB</td><td>Download .md</td></tr><tr><td>2 · A cheap two-level version</td><td>The budget recipe: choosing heading, tilt and scale, two zoom levels, how many frames your city needs and what they cost, which APIs to enable, and the six pipeline steps up to a zoomable OpenSeadragon viewer.</td><td>10 KB</td><td>Download .md</td></tr><tr><td>3 · On a Mac with the LoRAs</td><td>Painting every frame on your own Mac with the open LoRAs from this page instead of Codex: install, the exact settings, measured speed on an M5 Max, joining frames, known weaknesses, and running for days.</td><td>7 KB</td><td>Download .md</td></tr></tbody></table></div>\n<h2 id=\"live\">Live.</h2>\n<h2 id=\"models\">Models.</h2>\n<p>Test LPIPS per round · mean of the Brasília, landmark, São Paulo, Rio and world sets · lower is closer</p>\n<p>The first rounds are training.</p>\n<div class=\"table-wrap\"><table><thead><tr><th>Model</th><th>Round</th><th>Change</th><th>Test</th><th>Brasília</th><th>Landm.</th><th>São Paulo</th><th>Rio</th><th>World</th><th>Steps</th></tr></thead><tbody><tr><td>Loading…</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table></div>\n<p>Reference rows are the round 1–3 Qwen models scored on the same test set. World scores appear once the world-landmark test views are painted.</p>\n<h2 id=\"progress\">Progress.</h2>\n<p>LPIPS per run · lower is closer to Codex</p>\n<p>Loading…</p>\n<h2 id=\"rounds\">Rounds.</h2>\n<p>Loading…</p>\n<h2 id=\"sheets\">Sheets.</h2>\n<h2 id=\"log\">Log.</h2>\n<div class=\"table-wrap\"><table><thead><tr><th>Run</th><th>Change</th><th>LPIPS</th><th>Copy</th><th>Edges</th><th>Steps</th><th>Result</th></tr></thead><tbody><tr><td>Loading…</td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table></div>\n<ul><li>LPIPS</li><li>Perceptual distance between the model’s painting of a held-out 3D render and the real Codex painting of the same frame, averaged over 32 fixed frames (16 at 3× detail, 16 at normal detail). The only number that decides.</li><li>Copy guard</li><li>Distance between the output and the 3D input. Below 0.30 the model is copying the photo-like render instead of painting, and the run is discarded.</li><li>Edges</li><li>How far the output’s edges are from the Codex painting’s: roads and buildings in place. A run more than 0.03 worse than the best is discarded.</li><li>Noise floor</li><li>The baseline run twice differs by 0.0145, so a change has to beat the best by more than that to count.</li></ul>","headings":[{"level":1,"text":"Pixel LoRAs","id":"pixel-loras"},{"level":2,"text":"Pick.","id":"pick"},{"level":3,"text":"Why it leads","id":"why-it-leads"},{"level":3,"text":"Not settled yet","id":"not-settled-yet"},{"level":2,"text":"Cost.","id":"cost"},{"level":2,"text":"Build.","id":"build"},{"level":2,"text":"Live.","id":"live"},{"level":2,"text":"Models.","id":"models"},{"level":2,"text":"Progress.","id":"progress"},{"level":2,"text":"Rounds.","id":"rounds"},{"level":2,"text":"Sheets.","id":"sheets"},{"level":2,"text":"Log.","id":"log"}]}}