Mojikeun
ONNX weights for Mojikeun, a pixel-art emoji generator that runs entirely in the browser. Type a description and the model paints four 16x16 pixel-art emoji, ready for Slack or Discord.
This repo holds the runtime files. The app code lives at FaiRefriandi/Mojikeun.
Model
The generator is Tessera-small by Jagrat Patel (TheJagStudio), 47.6M parameters, licensed CC BY-NC 4.0 (non-commercial use only). It is a masked-diffusion / diffusion-language model: one 16x16 sprite is a 256 token sentence over a learned 512-colour palette, unmasked over 16 steps and conditioned on a frozen CLIP text encoder. No VAE, no latent space, no autoregression. Trained on the Angais Pixel Art Atlas 1.4M dataset.
Original model: thejagstudio/tessera-small Demo Space it was ported from: cfahlgren1/slack-moji
The text encoder is OpenAI's CLIP ViT-B/32 (openai/clip-vit-base-patch32, MIT licence), frozen.
Files
| File | Size | What it is |
|---|---|---|
tessera_w8.onnx |
50,840,032 bytes | Tessera-small denoiser, int8 quantised ONNX |
clip_text_w8.onnx |
64,060,515 bytes | CLIP text encoder, int8 quantised ONNX |
tokenizer.json |
2,224,041 bytes | CLIP BPE tokenizer |
meta.json |
10,442 bytes | The 512-colour palette (palette_rgba) |
selftest.json |
2,508 bytes | Reference outputs for the load self-test |
Both ONNX files were exported from the original fp16 weights and run with
onnxruntime-web 1.22.0 (WebGPU first, WASM CPU fallback). The 16-step
masked-diffusion sampler (CFG 3, cosine schedule, Gumbel choice noise,
3x3 spatial NMS at 0.9, self-conditioning) is ported from the Slack Moji
Space's engine.js.
Use
Clone the app repo and run it locally:
git clone https://github.com/FaiRefriandi/Mojikeun
cd Mojikeun
npm install
npm run dev
On first run the app downloads these files (about 115 MB) and caches them in the browser. Nothing you type or generate leaves your device.
Licence
The Tessera-small weights are CC BY-NC 4.0: free for personal, educational and research use with credit to Jagrat Patel (TheJagStudio); commercial use is not allowed without a separate licence from the author. The CLIP text encoder is MIT licensed.