Upload 5 files
Browse filesFiles changed (4)
- README.md+31-24
- model.bin+1-1
- sprite-maker.safetensors+1-1
- sprites.png
28 unmodified lines2930313233343571 unmodified lines1071081091101111121131 unmodified line11511611711811912012112212 unmodified lines1351361371381391401415 unmodified lines14714814915015115215315415515615715815916016116216316416516616716816917017117217317413 unmodified lines18818919019128 unmodified linesThe model writes a sprite as a sequence of tokens: a character token (knight, wizard,witch, robot, slime, ghost, dragon, skeleton, zombie, goblin, pirate, ninja, alien, cat,frog, monster), then 256 pixels row by row, each either transparent or one of 32 colours.It runs on the ESP32-S3 with 4-bit weights, drawing each pixel on screen as it is written,in about 18 seconds a sprite.71 unmodified lines[Pixel Art Atlas](https://huggingface.co/datasets/Angais/pixel-art-atlas-1.4m)(1.4 million 16 x 16 sprites, CC0). Each sprite is mapped to a fixed 32-colour palettefitted to the sprites' colours. Character sprites are those whose subject ends in one ofthe 16 character names (36,436 sprites), used with left-right mirrored copies.### Training Procedure1 unmodified line1. All 1.4 million sprites, with an "other" start token for non-characters and charactersprites repeated 8 times (with mirrors): outlines, shading and solid shapes.2. A fine-tune on the character sprites only, so each character token means itscharacter.#### Training Hyperparameters12 unmodified lines### Testing Data, Factors & Metrics2,000 sprites, 125 per character, drawn at temperature 0.8 with the device model andarithmetic (`host/draw.c`), measured two ways:- **Memorisation:** the closest training sprite of the same character, in pixels5 unmodified lines### Results**Memorisation:** none. No generated sprite is an exact or near copy (13 pixels or fewerdifferent) of a training sprite; the closest typically differs by about 110 of 256 pixels.**Consistency:**| Character | Looks like itself | Most often mistaken for ||---|---|---|| slime | 96% | monster || cat | 82% | monster || knight | 68% | monster || skeleton | 65% | knight || dragon | 62% | monster || robot | 58% | knight || ghost | 57% | slime || frog | 54% | monster || ninja | 51% | pirate || monster | 51% | slime || witch | 50% | wizard || pirate | 50% | ninja || alien | 36% | monster || wizard | 35% | witch || zombie | 28% | monster || goblin | 19% | knight |## Technical Specifications13 unmodified linesCC BY-NC 4.0. Trained on the Pixel Art Atlas by Angais, released under CC0. Its spriteswere generated with Krea 2: Krea claims no ownership of generated outputs, but the Krea 2Community License's commercial-use terms apply to them, so this model is fornon-commercial use.28 unmodified lines293031323334353671 unmodified lines1081091101111121131141151161171181 unmodified line12012112212312412512612712 unmodified lines1401411421431441451465 unmodified lines15215315415515615715815916016116216316416516616716816917017117217317417517617717817918018113 unmodified lines19519619719828 unmodified linesThe model writes a sprite as a sequence of tokens: a character token (knight, wizard,witch, robot, slime, ghost, dragon, skeleton, zombie, goblin, pirate, ninja, alien, cat,frog, and monster, which the device's picker leaves out as too vague), then 256 pixels rowby row, each either transparent or one of 32 colours.It runs on the ESP32-S3 with 4-bit weights, drawing each pixel on screen as it is written,in about 18 seconds a sprite.71 unmodified lines[Pixel Art Atlas](https://huggingface.co/datasets/Angais/pixel-art-atlas-1.4m)(1.4 million 16 x 16 sprites, CC0). Each sprite is mapped to a fixed 32-colour palettefitted to the sprites' colours. Character sprites are those whose subject ends in one ofthe 16 character names (36,436 sprites), used with left-right mirrored copies. For thefine-tune, the fifth of them that a classifier (scoring each sprite out of fold) can't tellare their labelled character are left out, since the atlas's labels come from AI-writtencaptions and some are wrong, and the rest are balanced so that each character's share is inproportion to the square root of its count (rare ones repeated).### Training Procedure1 unmodified line1. All 1.4 million sprites, with an "other" start token for non-characters and charactersprites repeated 8 times (with mirrors): outlines, shading and solid shapes.2. A fine-tune on the filtered, balanced character sprites only, so each charactertoken means its character.#### Training Hyperparameters12 unmodified lines### Testing Data, Factors & Metrics2,000 sprites, 125 for each of the 16 character tokens, drawn at temperature 0.8 with the device model andarithmetic (`host/draw.c`), measured two ways:- **Memorisation:** the closest training sprite of the same character, in pixels5 unmodified lines### Results**Memorisation:** none. No generated sprite is an exact or near copy (13 pixels or fewerdifferent) of a training sprite; the closest typically differs by about 115 of 256 pixels.**Consistency** (the score before the arrow is the model fine-tuned on the unfilteredsprites; the classifier is the same kind as the filter, so the gain flatters it a little):| Character | Looks like itself | Most often mistaken for ||---|---|---|| skeleton | 65% β 92% | knight || slime | 96% β 92% | cat || cat | 82% β 88% | slime || ghost | 57% β 81% | slime || witch | 50% β 73% | wizard || ninja | 51% β 66% | pirate || pirate | 50% β 66% | knight || wizard | 35% β 64% | monster || knight | 68% β 62% | monster || dragon | 62% β 61% | knight || frog | 54% β 60% | slime || robot | 58% β 56% | knight || alien | 36% β 54% | slime || zombie | 28% β 44% | alien || goblin | 19% β 38% | knight || monster (not on the picker) | 51% β 40% | slime || **average of the 15 on the picker** | **54% β 67%** | |## Technical Specifications13 unmodified linesCC BY-NC 4.0. Trained on the Pixel Art Atlas by Angais, released under CC0. Its spriteswere generated with Krea 2: Krea claims no ownership of generated outputs, but the Krea 2Community License's commercial-use terms apply to them, so this model is fornon-commercial use.
123version https://git-lfs.github.com/spec/v1oid sha256:f1dfd5a843cd1ccab656412286e49a05de536c04f70aea1d1fdaa384437d44c7size 379088123version https://git-lfs.github.com/spec/v1oid sha256:22905bec81fbf58fe2220af9898619a3fd4734e8a0a2d9da808ec5294b513f96size 379088
123version https://git-lfs.github.com/spec/v1oid sha256:eb28bdef7c7303eadf96dcbee8075299920263af3c326f39cf9b1fe4eb8d013dsize 2872648123version https://git-lfs.github.com/spec/v1oid sha256:7d728078400ee8003243c4f2c5ef00a0f067d4c957440815b0fa5671a52abd0fsize 2872648
README.md+31-24
model.bin+1-1
sprite-maker.safetensors+1-1
sprites.png