Imago
Collection
8 items โข Updated
How to use Jialuo21/Imago-6B with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Jialuo21/Imago-6B", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Jialuo21/Imago-6B", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Imago-6B is a full-parameter RL post-trained DiT transformer from Imago: Maturing Visual Generation with RL, initialized from Tongyi-MAI/Z-Image.
| Model | Mean | T2I-CompBench | TIIF-Bench | SpatialGenEval | T2I-CoReBench | LPD-Bench | Arena-T2I-Hard | LongBench-T2I | DrawBench PickScore |
|---|---|---|---|---|---|---|---|---|---|
| Imago-6B | 85.3 | 4.14 | 88.8 | 83.0 | 94.5 | 93.6 | 82.4 | 3.61 | 23.0 |
| Z-Image (Base) | 81.2 | 3.98 | 85.7 | 77.9 | 90.8 | 91.1 | 78.0 | 3.26 | 22.4 |
Jialuo21/Imago-Short -> Jialuo21/Imago-Long)8e-6, 500 steps on Imago-Short -> 500 steps on Imago-Long, Branch Sampling (t in [0.5, 1.0]), DAVE (block 24/30), Norm Reg. (beta=0.10)This repository contains the fine-tuned DiT transformer weights (config.json + diffusion_pytorch_model.safetensors). Load it into the base ZImagePipeline:
import torch
from diffusers import ZImagePipeline, ZImageTransformer2DModel
transformer = ZImageTransformer2DModel.from_pretrained(
"Jialuo21/Imago-6B",
torch_dtype=torch.bfloat16,
)
pipe = ZImagePipeline.from_pretrained(
"Tongyi-MAI/Z-Image",
transformer=transformer,
torch_dtype=torch.bfloat16,
).to("cuda")
image = pipe(
prompt="A weathered brass telescope resting on a wooden tripod next to an open leather-bound star atlas on a stone balcony overlooking a moonlit harbor.",
height=1024,
width=1024,
num_inference_steps=50,
guidance_scale=4.0,
generator=torch.Generator("cuda").manual_seed(0),
).images[0]
image.save("imago-6b.png")
Base model
Tongyi-MAI/Z-Image