pixelart-172k / README.md
kuyumcu
Initial release
69157ce verified
|
Raw History Blame Contribute Delete
3.9 kB
---
license: mit
pretty_name: Pixel-art icons (32x32 RGBA)
task_categories:
- text-to-image
language:
- en
tags:
- pixel-art
- sprites
- game-assets
- synthetic
size_categories:
- 100K<n<1M
configs:
- config_name: default
data_files:
- split: train
path: data/train-*.parquet
- split: val
path: data/val-*.parquet
- split: val_patterns
path: data/val_patterns-*.parquet
- split: val_r6
path: data/val_r6-*.parquet
- split: val_binding
path: data/val_binding-*.parquet
- split: val_unseen
path: data/val_unseen-*.parquet
---
# Pixel-art icons
172,330 captioned **32×32 RGBA pixel-art game icons** with transparent backgrounds, plus 1,634 held-out validation
sprites. This is the training set of the 49.8M-parameter
[azyg0s/pixelart-50m](https://huggingface.co/azyg0s/pixelart-50m) text-to-image model.
![preview](preview.png)
*Random training sprites, 4× nearest-neighbour. Top two rows: `lora`; bottom two: `sheet`.*
```python
from datasets import load_dataset
ds = load_dataset("azyg0s/pixelart-172k")
ds["train"][0]["image"] # PIL.Image, 32x32 RGBA
```
## How it was made
All images are AI-generated. The `backend` column says which pipeline produced each sprite.
| `backend` | sprites | |
|---|---|---|
| `lora` | 121,394 | Rendered with [Krea 2 Pixel-art LoRA](https://huggingface.co/azyg0s/Krea-2-pixelart-lora). Each 512 px render is a 32×32 grid of 16 px blocks on magenta; the sprite is read back block by block and the magenta is keyed out. Renders with grid purity < 0.9 were rejected. |
| `sheet` | 50,936 | Generated as sprite sheets. Each cell was cut out, its pixel grid detected, and the sprite resampled to its native pixel size. |
## Splits
| split | rows | |
|---|---|---|
| `train` | 172,330 | |
| `val` | 720 | general held-out set |
| `val_patterns` | 144 | patterned objects (striped, checkered, polka dot …) |
| `val_r6` | 120 | patterns on metals, colourless objects, two-colour objects |
| `val_binding` | 192 | (object, colour) pairs that never occur in train |
| `val_unseen` | 458 | prompts about 115 subjects that never occur in train |
## Columns
| column | |
|---|---|
| `image` | 32×32 RGBA PNG. Alpha is 0 or 255; the object is centred and keeps its native size |
| `caption` | training caption, e.g. `pixel art icon of a teal candy jar` |
| `caption_alt` | alternative caption with a style hint (`simple`, `chunky`, `sleek` …), or null |
| `text` | the subject without the template |
| `category` | one of 166 categories (`food`, `electronics`, `pattern_wear_toys` …) |
| `hint` | style hint used in the prompt, or null |
| `backend` | `lora` or `sheet`, see above |
| `sheet_id`, `file`, `origin` | provenance inside our pipeline |
| `native_width`, `native_height` | bounding box of the object in pixels |
| `purity` | grid purity of `lora` renders (share of pixels equal to their block centre) |
| `grid_period`, `n_colors` | detected pixel-grid period and colour count of the source cell (`sheet`) |
| `flags` | extraction warnings: `weak_grid`, `anisotropic_grid`, `period_corrected` (about 11% of rows) |
`prompt_pool/` holds the 176,065 prompts (11,067 subjects in 114 categories) that the `lora` renders were drawn
from, the 458 validation prompts, and their statistics.
## Known issues
- **Captions are prompts, not descriptions.** No one checked whether each image matches its caption.
Some images miss a pattern or draw the wrong sense of a word.
- About a third of `lora` sprites have 1–2 stray dark-magenta pixels on outline corners (e.g. `(150,0,140)`),
left over from keying out the magenta background.
- Rows with `flags` came from cells where the pixel grid was hard to detect; they can be slightly blurred or squeezed.
- The images inherit the biases and style of the generators that made them.
## License
MIT.