/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
pytorch
Опубликована
9 ноя 2026

tessera-small

Генерация изображенийТекст → изображение3 профессии

Tessera-small создаёт спрайты пиксельной графики 16×16 по текстовым запросам.

0скачиваний за 30 дней254лайкавеса обновлены29 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Tessera-small — модель генерации пиксельной графики размером 16×16, разработанная Джагратом Пателем (TheJagStudio). По текстовому запросу она создаёт спрайт, представляя его как последовательность из 256 пикселей с цветами из обученной палитры на 512 цветов, включая прозрачный цвет. Модель содержит 47,6 млн параметров: двунаправленный трансформер совместно обрабатывает текст и пиксели, а замороженный текстовый энкодер CLIP преобразует запрос длиной до 24 токенов. Все пиксели генерируются параллельным снятием маски примерно за 16 шагов.

Модель предназначена для создания небольших игровых спрайтов и других пиксельных иллюстраций по текстовому описанию. Поддерживаются варианты запуска через PyTorch и ONNX Runtime Web с WebGPU; доступны также редактирование с маской и генерация нескольких вариантов. В README приведены метрики валидации и сравнение CLIP-оценок с реальными спрайтами из обучающего набора.

Обучение выполнено на наборе Pixel Art Atlas 1.4M. Точность деталей ограничена сеткой 16×16 и палитрой в 512 цветов; длина текстового ввода ограничена 24 токенами. Лицензия CC BY-NC 4.0 разрешает образовательное, исследовательское и личное некоммерческое использование с указанием авторства; коммерческое использование требует отдельной лицензии автора.

Сценарии применения

  • создание игровых спрайтов 16×16 по описанию
  • генерация пиксельных предметов и иконок
  • подготовка нескольких вариантов пиксельной иллюстрации
  • дорисовка или редактирование спрайта с помощью маски

Ограничения

Выход ограничен размером 16×16 пикселей, палитрой из 512 цветов и текстовым запросом длиной до 24 токенов. Коммерческое использование запрещено без отдельной лицензии автора.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Tessera-small: a diffusion language model for 16×16 pixel art

Author: Jagrat Patel (TheJagStudio) Live demo: Tessera Pixel Studio (server GPU/CPU, or in your browser with WebGPU) License: CC BY-NC 4.0. Free for education, research and personal non-commercial use with credit. Commercial use is not allowed without a separate license from the author.

showcase

Tessera treats a 16×16 sprite as a 256-token sentence. Every pixel is one token from a learned 512-color palette (token 0 = transparent). A bidirectional transformer starts from a fully masked canvas and unmasks all 256 pixels in parallel in about 16 steps, conditioned on a frozen CLIP text encoder. It has no VAE, no latent space and no autoregression.

Model

Parameters47.6M (Tessera-small)
Architecturejoint text+pixel bidirectional transformer, hourglass 2 + 8 + 2 blocks (2×2 patch-merged core), width 512, 8 heads, QK-RMSNorm, 2D axial RoPE, Conv-SwiGLU, adaLN-single, 4 registers, self-conditioning
Text encoderfrozen openai/clip-vit-base-patch32 text tower, 24 tokens (MIT licensed; an ONNX copy is included for browser use)
Vocabulary512 palette tokens (frequency-weighted OKLab k-means, ΔE 0.010) + [MASK]
Objectiveabsorbing-state masked diffusion, cosine schedule, blob masks, perceptual label smoothing, CFG dropout
Samplerparallel confidence-ordered unmasking with CFG, Gumbel-annealed choice, spatial NMS; inpainting supported

Training

82,342 steps × 512 sprites (30 epochs over 1.4M sprites) on one NVIDIA RTX PRO 6000 Blackwell (≈5.5 h). The optimizer is Muon for hidden matrices plus AdamW, with a Warmup-Stable-Decay schedule, EMA 0.9995, bf16 and torch.compile.

Metric (EMA weights)Value
Validation NLL0.859 nats / pixel (perplexity 2.36 of 512)
Validation accuracy78.8% of masked pixels
CLIP score (ViT-B/32)25.24 generated vs 25.28 real sprites

Usage (non-commercial)

from huggingface_hub import hf_hub_download
from tessera.pipeline import TesseraPipeline   # code: see the demo Space's files

ckpt = hf_hub_download("thejagstudio/tessera-small", "tessera-small-fp16.safetensors")   # or the .pt
pipe = TesseraPipeline.from_checkpoint(ckpt, device="cuda")
images = pipe(["golden crown with blue gems"], num_per_prompt=8, steps=16, cfg_scale=3.0, seed=0)
pipe.grid(images).save("crowns.png")

The safetensors file holds the same EMA weights as the .pt (fp16, bit-identical). The model config, palette, text-encoder id and training step are stored in its metadata, so it loads without unpickling anything:

from safetensors import safe_open
with safe_open(ckpt, "pt") as f:
    print(f.metadata()["model_config"], f.metadata()["step"])

In the browser (WebGPU, ONNX)

onnx/ holds everything needed to run Tessera client-side with ONNX Runtime Web on WebGPU. The demo Space's WebGPU mode uses exactly these files (226 MB, downloaded once and cached by the browser):

FileInputs → outputs
onnx/clip_text_encoder.onnxinput_ids int64 [B, 24] → last_hidden_state [B, 24, 512], pooler_output [B, 512]
onnx/tessera_denoiser.onnxtokens int64 [B, 256] (palette id or 512 = mask), text_states, text_pooled, sc_probs float32 [B, 256, 512] (self-conditioning, zeros at the first step), drop_text bool [B] (true = unconditional, for CFG) → logits [B, 256, 512]
onnx/tokenizer.jsonCLIP BPE tokenizer (prompts are padded/truncated to 24 tokens, keeping the end token)
onnx/webgpu_config.jsonshapes, special ids, palette and the export checks

Weights are stored in fp16 and cast to fp32 inside the graph (onnxruntime folds the casts at load), so the download is half-size while the GPU computes in fp32 and no shader-f16 support is needed. The sampler (confidence-ordered parallel unmasking with CFG, Gumbel choice noise, spatial NMS, polish and inpainting) runs in JavaScript; see ui/webgpu.js in the demo Space. Export checks against PyTorch: denoiser logits within 3e-5 with 100% argmax agreement, and with deterministic settings the browser sampler paints the same sprites as the PyTorch sampler, pixel for pixel.

Files

FileContents
tessera-small-fp16.safetensorsEMA weights (fp16); model config, palette, text-encoder id and training step in the metadata
tessera-small-fp16.ptthe same weights and metadata as a PyTorch checkpoint
onnx/ONNX graphs, tokenizer and config for in-browser (WebGPU) inference; onnx/LICENSE-CLIP covers the CLIP files
model_config.json, train_config.jsonarchitecture and training hyperparameters
metrics.jsonlfull training and validation log
showcase.pngsample grid (16 prompts × 8 samples)

Credits

Huge thanks to Angais for creating and openly releasing Pixel Art Atlas 1.4M. This model was trained on it and would not exist without it.

License

Tessera is released under Creative Commons Attribution-NonCommercial 4.0.

  • ✅ Allowed (free): education, teaching, academic and independent research, personal projects and experiments. You can download, run, fine-tune and share the model, with credit ("Tessera by Jagrat Patel (TheJagStudio)").
  • ❌ Not allowed: any commercial use of the model or of images generated with it, such as selling or licensing it, paid apps, games or products, or monetized hosted services.
  • 💼 Commercial license: contact Jagrat Patel via Hugging Face.

Third-party parts keep their own licenses: the CLIP text encoder (OpenAI, MIT; this also covers onnx/clip_text_encoder.onnx and onnx/tokenizer.json, see onnx/LICENSE-CLIP) and the Pixel Art Atlas 1.4M dataset (Angais).

© 2026 Jagrat Patel (TheJagStudio).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Генеративная модель выложена не в формате diffusers: рантайм её не загрузит.

Ревизия весов
d190479

0 моделей