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
Download NOTICE from AiArtLab/zen-image-edit: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/AiArtLab/zen-image-edit/resolve/3a93d0e62dd90bbbb473d9a2c499ff7e329c69be/NOTICE
- Command line
-
hf download hf://AiArtLab/zen-image-edit@3a93d0e62dd90bbbb473d9a2c499ff7e329c69be/NOTICE
-
curl -L -o NOTICE https://huggingface.co/AiArtLab/zen-image-edit/resolve/3a93d0e62dd90bbbb473d9a2c499ff7e329c69be/NOTICE
1.23 kB
| NOTICE | |
| ====== | |
| Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 | |
| Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved. | |
| This repository is a derivative work of Qwen-Image-2.1. The full agreement is in | |
| `LICENSE`, a copy of it is given to every recipient of these files. | |
| Modified files, as required by section 2.b of the agreement: | |
| transformer/config.json added the `text_fusion_config` key, `_class_name` changed to | |
| QwenImage21FusionTransformer2DModel | |
| transformer/*.safetensors re-saved in fp16, plus the 66 `text_fusion.*` tensors of the | |
| adapter from the image21-08b-text-encoder-adapter project (adapter_v11) | |
| vae/ copied unchanged (fp32) | |
| scheduler/ copied unchanged | |
| text_encoder/ different model: Qwen3.5-0.8B in fp16 instead of Qwen3-VL-8B | |
| tokenizer/, processor/ different tokenizer/processor: the Qwen3.5-0.8B ones | |
| Files added by this repository: pipeline.py, transformer.py, example.py, model_index.json, | |
| media/, README.md. | |
| Improved using Qwen. | |
| The Qwen3.5-0.8B text encoder is redistributed under the Apache License 2.0, see | |
| `LICENSE-Qwen3.5-0.8B`. | |