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
README: correct the documented cfg default
Browse files
README.md
CHANGED
|
@@ -169,8 +169,8 @@ change can be judged without rerunning anything by hand.
|
|
| 169 |
|
| 170 |
`--size` sets a square frame (or the frame *area* when `--image` supplies the aspect ratio);
|
| 171 |
`--width`/`--height` override it and are floored to a multiple of 32. `--cfg` is `true_cfg_scale`
|
| 172 |
-
and defaults to **1.
|
| 173 |
-
|
| 174 |
|
| 175 |
Requirements: `torch`, `transformers`, `accelerate` and a `diffusers` built with Qwen-Image-2.1
|
| 176 |
(`pip install git+https://github.com/huggingface/diffusers`) — the transformer subclasses
|
|
|
|
| 169 |
|
| 170 |
`--size` sets a square frame (or the frame *area* when `--image` supplies the aspect ratio);
|
| 171 |
`--width`/`--height` override it and are floored to a multiple of 32. `--cfg` is `true_cfg_scale`
|
| 172 |
+
and defaults to **1.5** with a default negative prompt. Stock Qwen-Image-2.1 runs without
|
| 173 |
+
guidance (`--cfg 1`), which is still what `--cfg 1` and `negative_prompt=None` give you.
|
| 174 |
|
| 175 |
Requirements: `torch`, `transformers`, `accelerate` and a `diffusers` built with Qwen-Image-2.1
|
| 176 |
(`pip install git+https://github.com/huggingface/diffusers`) — the transformer subclasses
|