stixxert commited on
Commit
ed97ff9
·
verified ·
1 Parent(s): f4ff84c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -23
README.md CHANGED
@@ -32,6 +32,16 @@ language_creators:
32
 
33
  # Dataset Card for Top-Down Medieval Pixel Art
34
 
 
 
 
 
 
 
 
 
 
 
35
  ## Dataset Description
36
 
37
  **Top-Down Medieval Pixel Art** is a synthetic dataset of 100 top-down
@@ -45,7 +55,7 @@ Each image is a 1024×1024 PNG with a white background, rendered in a crisp
45
  (buildings, towers, workshops, outposts), vegetation (brambles, reed
46
  clusters), and terrain (boulders, rock formations).
47
 
48
- > You may notice that the dataset primarily contains buildings/structures - for my use case (LoRa training), this did not impact the quality of misc. image generation of other types of contents.
49
 
50
  - **Curated by:** [stixxert](https://github.com/stixxert)
51
  - **Language(s):** English (captions)
@@ -53,7 +63,6 @@ clusters), and terrain (boulders, rock formations).
53
 
54
  ### Dataset Sources
55
 
56
- - **Repository:** [TopDownMedievalPixelArt-Flux2-Klein-LoRa](https://github.com/stixxert/TopDownMedievalPixelArt-Flux2-Klein-LoRa)
57
  - **Base model:** [black-forest-labs/FLUX.2-dev](https://huggingface.co/black-forest-labs/FLUX.2-dev)
58
  - **Camera-angle LoRA:** [lovis93/Flux-2-Multi-Angles-LoRA-v2](https://huggingface.co/lovis93/Flux-2-Multi-Angles-LoRA-v2)
59
  - **Pixel-art post-processing:** [dimtoneff/ComfyUI-PixelArt-Detector](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector) (MIT)
@@ -78,6 +87,8 @@ The dataset is specifically designed to pair with
78
  [FLUX.2 Klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B)
79
  using the [Ostris AI Toolkit](https://github.com/ostris/ai-toolkit).
80
 
 
 
81
  ### Out-of-Scope Use
82
 
83
  This dataset is **not** suitable for:
@@ -213,13 +224,11 @@ Key design decisions:
213
  | 16×16 pixel-art style | Crisp, readable assets; distinct from photorealistic training data |
214
  | White background isolation | Removes confounding background context |
215
  | Natural-language captions | Compatible with FLUX.2 text encoder; avoids structured tag formats |
216
- | No trigger token in published data | Let users choose their own trigger token at training time |
 
 
217
 
218
- The heavy skew toward `structure` (97 of 100) is deliberate
219
- game-development asset pipelines primarily need consistent building
220
- sprites. The angle concept should transfer across categories because
221
- perspective geometry is identical regardless of what occupies the
222
- ground plane.
223
 
224
  ### Source Data
225
 
@@ -244,8 +253,7 @@ top-down — there is no variation in perspective.
244
 
245
  **Processing steps:**
246
 
247
- 1. **Prompt generation** — `src/generation/prompt_generator.py` produces
248
- diverse medieval fantasy captions from structured templates
249
  2. **Image generation** — ComfyUI runs FLUX.2 [dev] + Multi-Angles LoRA
250
  with each prompt via HTTP API
251
  3. **Pixel-art quantization** — ComfyUI-PixelArt-Detector reduces the
@@ -255,9 +263,8 @@ top-down — there is no variation in perspective.
255
  5. **Manual curation** — a human reviewer deletes images with artifacts,
256
  perspective errors, or poor composition; ~150–200 raw images were
257
  generated and culled to the best 100
258
- 6. **Dataset packaging** — `src/generation/prepare_dataset.py` strips
259
- embedded metadata, renumbers files, and produces the final
260
- `metadata.jsonl`
261
 
262
  #### Who are the source data producers?
263
 
@@ -273,8 +280,7 @@ image creation process. No web-scraped or crowd-sourced data was used.
273
 
274
  #### Annotation Process
275
 
276
- Captions were **machine-generated** via structured prompt templates
277
- (`config/prompt_templates.json`) that combine:
278
 
279
  - Asset type (granary, watchtower, sawmill, barracks, etc.)
280
  - Setting/context (steampunk industrial, feudal military, mystical
@@ -301,14 +307,12 @@ training experiments:
301
  | **Minimal** | `top-down view. A medieval vegetation.` | Category-only; reduces style binding to specific asset features |
302
  | **Ultra-minimal** | `top-down view.` | Angle phrase only; isolates the angle concept completely |
303
 
304
- These variants live in `dataset/derived/` (not published in this card's
305
- dataset) and are used to test the hypothesis that less text detail leads
306
- to purer angle-concept learning.
307
 
308
  #### Who are the annotators?
309
 
310
- Captions were generated by the prompt generation script
311
- (`src/generation/prompt_generator.py`) using structured templates.
312
  The template design and caption review were performed by the dataset
313
  curator. No crowd-sourced or third-party annotators were involved.
314
 
@@ -333,9 +337,7 @@ This dataset contains **no personal or sensitive information**:
333
  - **Pixel-art style bias** — all images use a 16×16 pixel-art aesthetic.
334
  The LoRA may inadvertently learn pixel-art style alongside camera
335
  angle, despite efforts to isolate the angle concept.
336
- - **Structure-heavy distribution** — 97% of images are structures. The
337
- camera-angle concept may not transfer as reliably to vegetation,
338
- terrain, or organic subjects.
339
  - **Single perspective** — all images are strictly top-down. The LoRA
340
  will not learn isometric, side-view, or ¾-angle perspectives.
341
 
 
32
 
33
  # Dataset Card for Top-Down Medieval Pixel Art
34
 
35
+ ## Quick Facts
36
+
37
+ | | |
38
+ |---|---|
39
+ | **Images** | 100 |
40
+ | **Resolution** | 1024 × 1024 px |
41
+ | **Format** | PNG, white background |
42
+ | **Asset families** | structure 97 / vegetation 2 / terrain 1 |
43
+ | **License** | Non-commercial, with Open RAIL-M usage restrictions (see [§License](#license)) |
44
+
45
  ## Dataset Description
46
 
47
  **Top-Down Medieval Pixel Art** is a synthetic dataset of 100 top-down
 
55
  (buildings, towers, workshops, outposts), vegetation (brambles, reed
56
  clusters), and terrain (boulders, rock formations).
57
 
58
+ > You may notice that the dataset is dominated by structures. This was not by design — the generation pipeline simply produced better results for buildings than for vegetation or terrain (see [Curation Rationale](#curation-rationale)). Despite the skew, the LoRA trained on this dataset successfully transfers top-down perspective to categories it barely saw during training, including character sprites and terrain features.
59
 
60
  - **Curated by:** [stixxert](https://github.com/stixxert)
61
  - **Language(s):** English (captions)
 
63
 
64
  ### Dataset Sources
65
 
 
66
  - **Base model:** [black-forest-labs/FLUX.2-dev](https://huggingface.co/black-forest-labs/FLUX.2-dev)
67
  - **Camera-angle LoRA:** [lovis93/Flux-2-Multi-Angles-LoRA-v2](https://huggingface.co/lovis93/Flux-2-Multi-Angles-LoRA-v2)
68
  - **Pixel-art post-processing:** [dimtoneff/ComfyUI-PixelArt-Detector](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector) (MIT)
 
87
  [FLUX.2 Klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B)
88
  using the [Ostris AI Toolkit](https://github.com/ostris/ai-toolkit).
89
 
90
+ This dataset was used to train the [StrategAI LoRA adapters](https://huggingface.co/stixxert/strategai-topdown-medieval-style-lora) — six LoRA variants for FLUX.2 Klein 4B that enforce top-down medieval style in generated game assets. See the [companion Model Card](https://huggingface.co/stixxert/strategai-topdown-medieval-style-lora) for training details and evaluation results.
91
+
92
  ### Out-of-Scope Use
93
 
94
  This dataset is **not** suitable for:
 
224
  | 16×16 pixel-art style | Crisp, readable assets; distinct from photorealistic training data |
225
  | White background isolation | Removes confounding background context |
226
  | Natural-language captions | Compatible with FLUX.2 text encoder; avoids structured tag formats |
227
+ | No trigger token in published data | Let users choose their own trigger token at training time. Dataset users are free to choose their own trigger token at training time — the companion [StrategAI LoRA](https://huggingface.co/stixxert/strategai-topdown-medieval-style-lora) uses `<tdp>`, but this is a training-time choice, not a property of the dataset. |
228
+
229
+ The heavy skew toward `structure` (97 of 100) was not intentional — it reflects where the generation pipeline worked well and where it struggled. The teacher pipeline (FLUX.2 [dev] + Multi-Angles LoRA v2, pixel-art quantization, background removal) reliably produced clean, readable structures. But the same pipeline faltered on non-structure categories: vegetation blurred into indistinct masses after quantization; rock formations rarely survived the strict top-down constraint with convincing geometry. Each usable vegetation or terrain image required many more generation attempts than a structure image. Within a curation budget of roughly 150–200 raw generations, the practical outcome was a structure-dominated dataset.
230
 
231
+ The skew has a silver lining: it provides a stronger test of concept isolation. If a LoRA trained on 97% structures successfully transfers top-down perspective to unseen categories (0% character sprites, 3% terrain), the angle concept has been genuinely isolated from subject matter.
 
 
 
 
232
 
233
  ### Source Data
234
 
 
253
 
254
  **Processing steps:**
255
 
256
+ 1. **Prompt generation** — diverse medieval fantasy captions are produced from structured templates
 
257
  2. **Image generation** — ComfyUI runs FLUX.2 [dev] + Multi-Angles LoRA
258
  with each prompt via HTTP API
259
  3. **Pixel-art quantization** — ComfyUI-PixelArt-Detector reduces the
 
263
  5. **Manual curation** — a human reviewer deletes images with artifacts,
264
  perspective errors, or poor composition; ~150–200 raw images were
265
  generated and culled to the best 100
266
+ 6. **Dataset packaging** — embedded metadata is stripped, files are renumbered, and the final
267
+ `metadata.jsonl` is produced
 
268
 
269
  #### Who are the source data producers?
270
 
 
280
 
281
  #### Annotation Process
282
 
283
+ Captions were **machine-generated** via structured prompt templates that combine:
 
284
 
285
  - Asset type (granary, watchtower, sawmill, barracks, etc.)
286
  - Setting/context (steampunk industrial, feudal military, mystical
 
307
  | **Minimal** | `top-down view. A medieval vegetation.` | Category-only; reduces style binding to specific asset features |
308
  | **Ultra-minimal** | `top-down view.` | Angle phrase only; isolates the angle concept completely |
309
 
310
+ These caption variants are used to test the hypothesis that less text detail leads
311
+ to purer angle-concept learning. They are not included in this published dataset.
 
312
 
313
  #### Who are the annotators?
314
 
315
+ Captions were generated using structured templates.
 
316
  The template design and caption review were performed by the dataset
317
  curator. No crowd-sourced or third-party annotators were involved.
318
 
 
337
  - **Pixel-art style bias** — all images use a 16×16 pixel-art aesthetic.
338
  The LoRA may inadvertently learn pixel-art style alongside camera
339
  angle, despite efforts to isolate the angle concept.
340
+ - **Structure-heavy distribution** — 97% of images are structures. This reflects generation pipeline constraints (see [Curation Rationale](#curation-rationale)) rather than a design choice. The camera-angle concept may not transfer as reliably to vegetation, terrain, or organic subjects.
 
 
341
  - **Single perspective** — all images are strictly top-down. The LoRA
342
  will not learn isometric, side-view, or ¾-angle perspectives.
343