Datasets:
Commit ·
fe4e5b5
1
Parent(s): 43a089b
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -16,31 +16,18 @@ size_categories:
|
|
| 16 |
|
| 17 |
# Alucard Sprites
|
| 18 |
|
| 19 |
-
A curated dataset of
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## Dataset Details
|
| 22 |
|
| 23 |
| Property | Value |
|
| 24 |
|----------|-------|
|
| 25 |
-
| Total sprites | 162,337 |
|
| 26 |
| Resolution | 128x128 RGBA |
|
| 27 |
| Format | Parquet with embedded images |
|
| 28 |
| Columns | `image` (PNG bytes), `text` (caption) |
|
| 29 |
|
| 30 |
-
## Sources
|
| 31 |
-
|
| 32 |
-
| Source | Count | License | Content |
|
| 33 |
-
|--------|-------|---------|---------|
|
| 34 |
-
| pixel-art-nouns | ~50K | HuggingFace | Captioned pixel art characters |
|
| 35 |
-
| LPC 4-view | ~50K | CC-BY-SA 3.0 | Multi-view character sprites |
|
| 36 |
-
| Kaggle Pixel Art | ~19K | Apache 2.0 | Characters, items, weapons, food |
|
| 37 |
-
| PixelArt Multiview | ~12K | MIT | Multi-angle character sprites |
|
| 38 |
-
| sprite_caption_dataset | ~13K | HuggingFace | Captioned sprites |
|
| 39 |
-
| Kenney Assets | ~9K | CC0 | Platformer tiles, items, UI |
|
| 40 |
-
| captioned-pixelart | ~5K | HuggingFace | Higher-res pixel art with captions |
|
| 41 |
-
| GameTileNet | ~3K | CC0/CC-BY | Labeled game tiles |
|
| 42 |
-
| DiffusionDB pixel art | ~2K | CC0 | AI-generated pixel art with prompts |
|
| 43 |
-
|
| 44 |
## Usage
|
| 45 |
|
| 46 |
### With Alucard (training)
|
|
@@ -49,31 +36,6 @@ A curated dataset of **162,337** pixel art sprites at 128x128 RGBA resolution wi
|
|
| 49 |
pip install git+https://github.com/evilsocket/alucard.git
|
| 50 |
```
|
| 51 |
|
| 52 |
-
Download the parquet and extract for training:
|
| 53 |
-
|
| 54 |
-
```python
|
| 55 |
-
import pandas as pd
|
| 56 |
-
from pathlib import Path
|
| 57 |
-
from PIL import Image
|
| 58 |
-
import io
|
| 59 |
-
|
| 60 |
-
df = pd.read_parquet("alucard_sprites.parquet")
|
| 61 |
-
out = Path("data/train")
|
| 62 |
-
out.mkdir(parents=True, exist_ok=True)
|
| 63 |
-
|
| 64 |
-
for i, row in df.iterrows():
|
| 65 |
-
img = Image.open(io.BytesIO(row["image"]["bytes"]))
|
| 66 |
-
img.save(out / f"sprite_{i:06d}.png")
|
| 67 |
-
(out / f"sprite_{i:06d}.txt").write_text(row["text"])
|
| 68 |
-
```
|
| 69 |
-
|
| 70 |
-
Then pre-compute CLIP embeddings and train:
|
| 71 |
-
|
| 72 |
-
```bash
|
| 73 |
-
alucard-precompute --data-dir data/train
|
| 74 |
-
alucard-train --data-dir data/train --epochs 200 --batch-size 64
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
### With HuggingFace datasets
|
| 78 |
|
| 79 |
```python
|
|
|
|
| 16 |
|
| 17 |
# Alucard Sprites
|
| 18 |
|
| 19 |
+
A curated dataset of pixel art sprites at 128x128 RGBA resolution with text captions, built for training the [Alucard](https://github.com/evilsocket/alucard) text-to-sprite generative model.
|
| 20 |
+
|
| 21 |
+
Each sprite has been individually normalized (multi-sprite grids split into individual sprites, tight-cropped and centered) and captioned using CLIP zero-shot classification describing sprite type, color, size, and view angle.
|
| 22 |
|
| 23 |
## Dataset Details
|
| 24 |
|
| 25 |
| Property | Value |
|
| 26 |
|----------|-------|
|
|
|
|
| 27 |
| Resolution | 128x128 RGBA |
|
| 28 |
| Format | Parquet with embedded images |
|
| 29 |
| Columns | `image` (PNG bytes), `text` (caption) |
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
## Usage
|
| 32 |
|
| 33 |
### With Alucard (training)
|
|
|
|
| 36 |
pip install git+https://github.com/evilsocket/alucard.git
|
| 37 |
```
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
### With HuggingFace datasets
|
| 40 |
|
| 41 |
```python
|