Image-to-Image
Diffusers
Safetensors
ZenImageEditPipeline
text-to-image
image-editing
qwen-image
text-encoder
adapter
Instructions to use AiArtLab/zen-image-edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/zen-image-edit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AiArtLab/zen-image-edit", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adapter v12 in the DiT: 2304-slot position table, trained at the real edit geometry
The bundled text_fusion is now revision v12 (vision cosine against the native Qwen3-VL-8B encoder 0.930 -> 0.971, text unchanged at 0.951/24.2%). Two things moved: the attention-branch position table covers 2304 slots, and the fine-tune ran at the real inference geometry (--geom 1024), so the ~2000 token condition of a two-image edit no longer falls into a zero-padded tail. transformer/config.json text_fusion_config.max_len goes 512 -> 2304 to match the table; the model card, the conditioning row and the card media are re-rendered with the shipped weights.0e81ff1
-
Zen Image Edit: Qwen-Image-2.1 on Qwen3.5-0.8B with a text-fusion adapter inside the DiT
Text encoder replaced (Qwen3-VL-8B -> Qwen3.5-0.8B + 158M adapter), adapter embedded in the transformer as text_fusion before txt_in. Weights fp16 (VAE fp32, 13 files via LFS), 8 example images generated by this pipeline, NOTICE/LICENSE included per the Qwen Research License.3a93d0e