SpriteCNN V2T Fine
Research denoiser for transparent pixel art
2 min readupdated
The model is designed for text-conditioned generation and inpainting of transparent pixel art at a 16×16 pixel size. The architecture is based on a convolutional encoder-decoder with CLIP cross-attention and spatial TCN blocks, while the sampler predicts tokens in the Tessera palette. The model has 48.63M parameters and is optimized for fast sprite generation from a text prompt with CPU and CUDA support. It suits game developers, pixel art enthusiasts, and generative AI researchers.
Key features
- Architecture: Convolutional encoder-decoder with CLIP cross-attention (8×8) and spatial TCN blocks.
- Performance: High processing speed enabling rapid sprite generation (about 2.58 ms per denoiser step for batch size 1).
- Palette: Works with the 512-element Tessera palette with a reserved transparency token.
- Inpainting: Built-in support for refining images using masks and initial tokens.
What you can do
- Sprite generation: Create small UI elements, items, and icons in pixel art from a text prompt.
- Image inpainting: Complete or modify specific sections of existing sprites using masks.
- Pipeline integration: Use the SpritePipeline Python interface for automated graphics generation in projects.
Example
Example of running sprite generation using the Python interface:
from spritecnn_interface import SpritePipeline
pipeline = SpritePipeline.from_pretrained(".", device="auto")
image = pipeline("golden crown with blue gems", steps=12, seed=0)[0]
image.save("crown.png")Read more
DetailsBenchmarks: Top-1 text retrieval accuracy 15.63%, generation time for 384 sprites (16 steps) is 2.94 sec.
Requirements: Supports CPU and CUDA, the safetensors file size is 195 MB.
Limitations: Inpainting quality trails the base Tessera Small model, and deployment on an NPU requires additional calibration.










Comments