Nanosaur2-670M
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Turns a text prompt into an XKCD-style comic by planning the scene, poses and speech bubbles, with SVG or PNG output. For people who want quick comic panels from an idea.
xkcd-artist is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download gnumanth/xkcd-artist
A tiny text to image setup that draws XKCD-style comic panels from a sentence. It pairs a small planner with a diffusion LoRA. The planner decides the scene layout, props, poses and speech bubbles, and the LoRA adds the look. It has about 1.6M parameters in its main weights, and it exports the result as SVG or PNG.
People who want quick comic panels from an idea and who can run a short Python snippet or a browser demo.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Education | Teachers | Illustrate a technical idea with a comic panel | A panel that explains a concept from one sentence |
| Publishing | Bloggers and writers | Add a quick comic to a post | A comic exported as a PNG for an article |
| Software | Web developers | Run a tiny model in a page through ONNX | Generate panels in the browser |
| Research | ML students | Study a small planner plus diffusion LoRA design | Compare the PyTorch and ONNX runtimes |
You can skip it if you want realistic or painterly images, since it targets comic panels.
It works from Python with a PyTorch or ONNX backend, and the card also lists a browser runtime and a live studio page.
| Use case | Who | What they get back |
|---|---|---|
| Comic from a prompt | Writers | A panel as SVG markup or a PNG file |
| In-browser generation | Web developers | The same planner running as a small ONNX graph |
| Model study | Students | Small files and a self-contained PyTorch definition to read |
Get the project code from GitHub, then the model files from Hugging Face. The card's snippet imports the xkcd_artist package from that project.
pip install -U huggingface_hub hf download gnumanth/xkcd-artist
Call xkcd_artist with your prompt and pick a backend, then export the result. The card's snippet is below.
from xkcd_artist import xkcd_artist
comic = xkcd_artist(
"Machine learning pile of linear algebra stir the pile",
backend="onnx", # 'onnx' | 'pytorch'
)
svg_markup = comic.to_svg()
png_bytes = comic.to_png("machine_learning_xkcd.png")| Tool | What it does |
|---|---|
| xkcd_artist | Turns a prompt into a comic object, using the onnx or pytorch backend |
| to_svg | Returns the comic as SVG markup |
| to_png | Saves the comic as a PNG file |
| model.safetensors | The planner's FP32 weights, 1,586,603 parameters |
| lora_weights.safetensors | The planner's internal LoRA adapter, 93,568 parameters |
| onnx/model_quantized.onnx | An Int8 ONNX graph that is 3.58x smaller |
| sd_xkcd_lora/adapter_model.safetensors | A LoRA for the segmind/tiny-sd UNet, trained on panels with speech bubbles masked |
Pass the sentence about machine learning from the card's snippet and keep the onnx backend. The call returns a comic you can turn into SVG markup, or save as machine_learning_xkcd.png.
A text to image model draws a picture from a sentence. This one is tiny and aims only at comic panels. A first small try is to run the card's snippet as it is and open the PNG it saves.
For experts, a 5-head planner predicts the scene, poses and speech-bubble layout, and a rank-16 LoRA with 1,726,464 trainable parameters adapts the segmind/tiny-sd UNet. Training used 891 ExplainXKCD stage directions and 226 panels with the bubbles masked. The card reports 100.0% layout accuracy on its held-out set, so check results on your own prompts.
The card lists these file sizes.
Turns a text prompt into an XKCD-style comic by planning the scene, poses and speech bubbles, with SVG or PNG output. For people who want quick comic panels from an idea.
Made by gnumanth on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: A tiny text to image setup that draws XKCD-style comic panels from a sentence. It pairs a small planner with a diffusion LoRA. The planner decides the scene layout, props, poses and speech bubbles, and the LoRA adds the look. It has about 1.6M parameters in its main weights, and it exports the result as SVG or PNG.
Who it suits: People who want quick comic panels from an idea and who can run a short Python snippet or a browser demo.
Industry | Who uses it | How they use it | Example
Education | Teachers | Illustrate a technical idea with a comic panel | A panel that explains a concept from one sentence
Publishing | Bloggers and writers | Add a quick comic to a post | A comic exported as a PNG for an article
Software | Web developers | Run a tiny model in a page through ONNX | Generate panels in the browser
Research | ML students | Study a small planner plus diffusion LoRA design | Compare the PyTorch and ONNX runtimes
You can skip it if you want realistic or painterly images, since it targets comic panels.
Where to use it: It works from Python with a PyTorch or ONNX backend, and the card also lists a browser runtime and a live studio page.
Use case | Who | What they get back
Comic from a prompt | Writers | A panel as SVG markup or a PNG file
In-browser generation | Web developers | The same planner running as a small ONNX graph
Model study | Students | Small files and a self-contained PyTorch definition to read
How to set it up: Get the project code from GitHub, then the model files from Hugging Face. The card's snippet imports the xkcd_artist package from that project.
pip install -U huggingface_hub
hf download gnumanth/xkcd-artist
How to use it: Call xkcd_artist with your prompt and pick a backend, then export the result. The card's snippet is below.
from xkcd_artist import xkcd_artist
comic = xkcd_artist(
"Machine learning pile of linear algebra stir the pile",
backend="onnx", # 'onnx' | 'pytorch'
)
svg_markup = comic.to_svg()
png_bytes = comic.to_png("machine_learning_xkcd.png")
Tool | What it does
xkcd_artist | Turns a prompt into a comic object, using the onnx or pytorch backend
to_svg | Returns the comic as SVG markup
to_png | Saves the comic as a PNG file
model.safetensors | The planner's FP32 weights, 1,586,603 parameters
lora_weights.safetensors | The planner's internal LoRA adapter, 93,568 parameters
onnx/model_quantized.onnx | An Int8 ONNX graph that is 3.58x smaller
sd_xkcd_lora/adapter_model.safetensors | A LoRA for the segmind/tiny-sd UNet, trained on panels with speech bubbles masked
Example: Pass the sentence about machine learning from the card's snippet and keep the onnx backend. The call returns a comic you can turn into SVG markup, or save as machine_learning_xkcd.png.
For newcomers and experts: A text to image model draws a picture from a sentence. This one is tiny and aims only at comic panels. A first small try is to run the card's snippet as it is and open the PNG it saves.
For experts, a 5-head planner predicts the scene, poses and speech-bubble layout, and a rank-16 LoRA with 1,726,464 trainable parameters adapts the segmind/tiny-sd UNet. Training used 891 ExplainXKCD stage directions and 226 panels with the bubbles masked. The card reports 100.0% layout accuracy on its held-out set, so check results on your own prompts.
Write a one-line prompt
Planner lays out scene, poses and bubbles
Diffusion LoRA adds the look
Export SVG or PNG
Good to know: The card lists these file sizes.
Title: File size of the main artifacts
Planner FP32 weights: 6.16 MB
Int8 ONNX graph: 1.72 MB
Diffusion LoRA adapter: 6.60 MB
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download gnumanth/xkcd-artist
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| xkcd-artist This page | 42 | 3 | 1.6M | mit | |
| Koharu Layout HighResShares comics · safetensors | 125 | 5 | 46.6M | apache-2.0 | |
| all-MiniLM-L6-v2Shares pytorch · onnx · transformers | 174,740,184 | 6,104 | 22.7M | apache-2.0 | |
| bge-small-en-v1.5Shares pytorch · onnx · transformers | 45,750,548 | 671 | 33.4M | mit | |
| GPT-2Shares pytorch · onnx · transformers | 32,892,223 | 3,932 | 137M | mit | |
| BERT base model (uncased)Shares pytorch · onnx · transformers | 31,346,528 | 3,071 | 110M | apache-2.0 |
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Waqf-AI · Kit
Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.
Wan-AI · Kit
Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.
Wan-AI · Kit
Generates cinematic video of a character driven by an audio track, and can also lip-sync existing video. For video creators, animators and researchers with a l…
Wan-AI · Kit
Animates a character or swaps one into a video by copying a performer's movement and expressions, as one model from the Wan2.2 video family. Use only faces and…
vllm-sr · Kit
Answers choice, yes-or-no, score, box and tracking questions about text, images or video in one call, with a probability for each answer. For people building r…