RepositoryJavaScript
unstonio

unstonio/pixelgpt-24x24

Tiny local text-to-24x24 pixel art model, trained on roughly 200K samples in 30 minutes on an RTX 5090.

100sao
11fork
1issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: autoregressive-model

#1 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: rtx-5090

#2 Repository Của Tuần

5
TINIX TRENDING·Chủ đề: pixel-art

#5 Repository Của Tuần

🎨 PixelGPT 24x24 — Pixel Art sinh cục bộ từ văn bản, nhỏ gọn đến mức có thể train trên một GPU đơn lẻ

Mô hình autoregressive 68M tham số tạo sprite 24x24 pixel-by-pixel, 5 màu, không gửi dữ liệu ra ngoài — chạy ngay trên máy bạn.

PixelGPT 24x24 là một thí nghiệm của tác giả unstonio: đẩy mô hình generative nhỏ nhất có thể (68M parameters, 14 layers, width 512) để sinh pixel art native 24x24 thay vì downscale từ ảnh lớn. Mô hình được train trên ~200K mẫu trong ~30 phút trên một RTX 5090 đơn lẻ. Toàn bộ inference chạy local qua FastAPI server kèm giao diện canvas cho phép chỉnh sửa, gom nhóm, xuất sprite. Text encoder dùng all-MiniLM-L6-v2 (384-dim) nhúng prompt, điều kiện palette 5 màu RGB modulate qua adaptive layer norm ở mỗi transformer block. Generation theo thứ tự serpentine 4x4 blocks — 576 bước autoregressive tuần tự.

✨ Điểm nổi bật

  • Kích thước mô hình cực nhỏ: 68M tham số, checkpoint FP16 ~222 MB kèm repo (có Git LFS)
  • Chạy hoàn toàn offline: Bật offline mode cho Hugging Face, không cần mạng sau khi cài dependencies
  • Canvas tương tác: Tạo, di chuyển, resize, duplicate, layer, group/ungroup sprite, undo (Ctrl/Cmd+Z), xuất file
  • API FastAPI: /api/generate (sync), /api/generate/stream (NDJSON mỗi 24 bước), /api/health, /api/palette
  • Điều khiển sinh: Classifier-free guidance, temperature, top-p sampling, seed cố định để reproduce
  • Hỗ trợ đa thiết bị: CUDA, MPS (Apple Silicon), CPU — chọn qua biến môi trường PIXELAR_DEVICE
  • Palette 5 màu cố định: Index 0 = transparent, 217.925 palette training có sẵn trong palettes.bin
  • Text encoder MiniLM chạy riêng: Có thể tách device qua PIXELAR_MINILM_DEVICE

💡 Vì sao đáng chú ý

PixelGPT không đơn thuần là một toy model — nó demo được tư duy "constraints breed creativity": cố định canvas 24x24, 5 màu, autoregressive pixel-by-pixel thay vì diffusion hay GAN. Kết quả là sprite native low-res có quá trình sinh nhìn thấy được (stream từng bước), phù hợp làm placeholder, game jam asset, prototype UI icon. Training 30 phút trên một GPU consumer (RTX 5090) chứng minh barrier to entry cực thấp cho generative AI domain-specific. Offline-first design khiến nó trở thành candidate tốt cho embedded/edge deployment hoặc môi trường air-gapped.


#PixelArt #GenerativeAI #LocalAI #FastAPI #PyTorch #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modeltext-to-image
black-forest-labs/FLUX.1-dev

!FLUX.1 dev Grid(./devgrid.jpg) FLUX.1 dev is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. For more information, please read our blog post(https://blackforestlabs.ai/announcing-black-forest-la...

♥0
622.3k
Jun 27, 2025
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.2M
Jun 1, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

143.2k
Oct 26, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

168.0k
Oct 23, 2026
Modeltext-to-image
stabilityai/stable-diffusion-xl-base-1.0

SD-XL 1.0-base Model Card !row01(01.png) Model !pipeline(pipeline.png) SDXL(https://arxiv.org/abs/2307.01952) consists of an ensemble of experts(https://arxiv.org/abs/2211.01324) pipeline for latent diffusion: In a first step, the base model is used...

♥0
4.2M
Oct 30, 2023
Modeltext-to-image
CompVis/stable-diffusion-v1-4

Stable Diffusion v1-4 Model Card Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input. For more information about how Stable Diffusion functions, please have a look at 🤗's Stab...

♥0
483.6k
Aug 23, 2023
Modeltext-to-image
black-forest-labs/FLUX.1-schnell

!FLUX.1 schnell Grid(./schnellgrid.jpeg) FLUX.1 schnell is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. For more information, please read our blog post(https://blackforestlabs.ai/announcing-bl...

♥0
495.1k
Aug 16, 2024
Modeltext-to-image
Tongyi-MAI/Z-Image-Turbo

⚡️- ImageAn Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer !Official Site(https://img.shields.io/badge/Official%20Site-333399.svg?logo=homepage)(https://tongyi-mai.github.io/Z-Image-blog/)&160; !GitHub(https://im...

♥0
707.5k
Jan 30, 2026
Modeltext-to-image
abenzerps/Qwen-Image-2.1-Uncensored-Quantized

!🤗 Model Requests(https://img.shields.io/badge/%F0%9F%A4%97ModelRequests-SubmitHere-f59e0b?style=for-the-badge&labelColor=1f2937)(https://abenzerps.com/request-a-model/) Qwen-Image-2.1 Uncensored Quantized GGUF, Safetensors, and MLX quantized format...

♥0
2.2M
Oct 12, 2026