Iris-3B: Pixel-Space Image Generation, Depth and 4x Upscaling
Iris-3B paints pixels directly instead of using a latent decoder. Run text-to-image, the 4-step Turbo variant, depth estimation and upscaling from the CLI.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Iris-3B is a 3-billion-parameter text-to-image model from speridlabs that works directly in pixel space. Most image generators compress images into a “latent” space and use a separate decoder to turn that back into pixels. Iris-3B skips that step: the network itself outputs every pixel. The same backbone, fine-tuned with no architectural change, also does monocular depth estimation and image restoration and upscaling, and a 4-step distilled Turbo variant ships in the same repo. The card lists the license as Apache 2.0.
Key specs
| Size | 3B parameters, plus a frozen 4B text encoder (Qwen3-VL-4B-Instruct) |
| Architecture | Diffusion transformer: 8 dual-stream + 16 single-stream blocks, then a 4-block pixel head |
| Default output | 1024×1024 |
| Default sampling | CFG 3, 100 steps |
| Turbo | 4 steps, about 0.7 s for a 1024×1024 image on one H100 (batch 4), per the card |
| Weights | About 12 GB for text-to-image; depth/ and upscaler/ add about 12 GB each; turbo/ about 6 GB |
| License | Apache 2.0 |
Install
The card requires Python 3.11+ and PyTorch 2.7.1+, and an NVIDIA GPU with CUDA.
git clone https://github.com/speridlabs/iris-3b.gitcd iris-3bpip install -e .Download only the text-to-image weights:
hf download speridlabs/iris-3b --local-dir iris-3b --exclude "depth/*" "upscaler/*" "turbo/*"The text encoder, Qwen3-VL-4B-Instruct, downloads automatically on the first run.
Run it
python scripts/sample.py --checkpoint iris-3b \ --prompt "a red fox sleeping in fresh snow, golden hour"The card says to write prompts as plain descriptive English sentences. These options come from its tips table:
| Option | Default | Effect |
|---|---|---|
--cfg-scale |
3 | Higher values follow the prompt more literally but can look harsher |
--steps |
100 | Fewer steps are faster but lose some detail |
--seed |
none | Fix it to reproduce an image |
--negative-prompt |
none | Things you don’t want in the image |
--txt-file |
none | A text file with one prompt per line, for batches |
Batch generation
To render many prompts, put one per line in a text file and pass it with --txt-file. Fixing the seed lets you rerun and compare.
a glass sculpture of a heart filled with flowers, caustics and reflections, 3D rendera bronze sculpture of a horse in motion, patina, dramatic museum spotlightthe ancient city of Petra with the Treasury carved into pink sandstone, morning lightpython scripts/sample.py --checkpoint iris-3b --txt-file prompts.txt --seed 1These prompts are adapted from the card’s gallery captions. The card doesn’t say where batch outputs are written, so check the script’s output location after a first run.
Fast generation with Turbo
Turbo is a 4-step distilled version in the turbo/ folder. Classifier-free guidance is baked into the weights.
hf download speridlabs/iris-3b --include "turbo/*" --local-dir iris-3bpython scripts/sample.py --checkpoint iris-3b/turbo \ --prompt "a red fox sleeping in fresh snow, golden hour"For Turbo, --steps, --cfg-scale and --negative-prompt do not apply. The prompt, --height, --width and --seed do. The card says Turbo was distilled at about one megapixel in seven aspect buckets: 1024×1024, 752×1344, 896×1344, 896×1200 and their transposes.
The card’s benchmarks at 1024×1024:
| Model | GenEval | DPG-Bench | LongText-Bench (EN) | OneIG-Bench (EN) |
|---|---|---|---|---|
| Iris-3B | 0.798 | 86.52 | 0.857 | 0.540 |
| Iris-3B Turbo | 0.820 | 86.68 | 0.804 | 0.516 |
Per the card, Turbo is slightly ahead on prompt following (GenEval, DPG-Bench) and behind on long rendered text and on OneIG-Bench.
Depth and upscaling
Both tasks run the whole model in a single forward pass with an empty prompt, so no text encoder is needed. The weights download on first use.
python scripts/depth.py photo.jpg --out depth_out # <name>.npy + colorized <name>.pngpython scripts/upscale.py photo.jpg --out upscaled # <name>_x4.pngReported results from the card:
| Task | Result |
|---|---|
| Depth | AbsRel 0.071, δ1 0.946 (mean of NYUv2, KITTI, ETH3D, ScanNet, DIODE; Marigold V2 protocol, zero-shot) |
| Restoration and upscaling | LPIPS 0.292, PSNR 20.68 (DIV2K validation, 4×) |
Depth is affine-invariant, not metric. To compare it with ground truth, fit a scale and shift in log space. Restoration tiles large outputs into overlapping 1024×1024 windows.
Gotchas
- Text and counts. The card says text rendering inside images and exact object counts are not always reliable.
- Turbo trade-offs. Dense or long rendered text is less reliable, different seeds give more similar images, faint grain can appear on flat vector-style backgrounds, and sampling is fixed at 4 steps.
- Resolution. Images are about one megapixel. For larger prints, use an upscaler.
- Disk. Pulling every folder is roughly 12 GB plus 12 GB plus 12 GB plus 6 GB, so download only what you need.
- Safety. Like any image generator, it can produce inaccurate, biased or unsafe content. The card says to review outputs before using them.
- Weights format. The base
model.safetensorsis float32 and is meant to run with bfloat16 autocast. - Hardware. The card says you need an NVIDIA GPU with CUDA but doesn’t state a VRAM requirement.
When to pick it
Choose Iris-3B if you want an Apache-licensed image model whose pipeline has no separate latent decoder, or if you want one codebase covering text-to-image, depth and 4× upscaling. Turbo is the one to try when speed matters more than long text rendering or variety.
Skip it if you need reliable text in images or exact object counts, if you have no NVIDIA GPU, or if you need metric depth. The card publishes no CPU or Apple Silicon path. The card’s benchmark numbers compare Iris-3B only with its own variants and a community LoRA, so they don’t tell you how it ranks against other image models.
Related
Depth Pro 2: Metric Depth From One Photo or a Whole Video
Apple's Depth Pro 2 predicts depth in meters for every pixel of a photo, video or live feed. Four sizes from 24M to 872M parameters, research-only license.
apple/DepthPro2
Clean Noisy Speech with Inworld Voice Isolator, Offline or Live
Inworld's Apache-2.0 voice isolator removes noise, music and background voices from 48 kHz speech, with an offline model and a realtime streaming one.
inworld/voice-isolator
Run PAN 2: a 29B World Model That Simulates Actions as Video
IFM's Apache-2.0 world model turns a starting image plus text actions into up to 20 seconds of video. Here is the setup, sampler defaults and limits.
IFM/PAN2