[Misc] Add Qwen-Image-Edit-2511 running script (#440)

Signed-off-by: samithuang <285365963@qq.com>
This commit is contained in:
Samit authored and GitHub committed 2025-12-24 04:26:16 +13:00
1 parent 259fe1150c
commit 2d42bdcc40
3 files changed
+18 -2

No files matched your search

@@ -73,7 +73,7 @@ def parse_args() -> argparse.Namespace:
default="Qwen/Qwen-Image-Edit",
help=(
"Diffusion model name or local path. "
"For multiple image inputs, use Qwen/Qwen-Image-Edit-2509 or later version "
"For multiple image inputs, use Qwen/Qwen-Image-Edit-2509 or Qwen/Qwen-Image-Edit-2511"
"which supports QwenImageEditPlusPipeline."
),
)
@@ -6,6 +6,14 @@ This example edits an input image with `Qwen/Qwen-Image-Edit` using the `image_e
### Single Image Editing
Download the example image:
```bash
wget https://vllm-public-assets.s3.us-west-2.amazonaws.com/omni-assets/qwen-bear.png
```
Then run:
```bash
python image_edit.py \
--image qwen_bear.png \
@@ -17,7 +25,7 @@ python image_edit.py \
### Multiple Image Editing (Qwen-Image-Edit-2509)
For multiple image inputs, use `Qwen/Qwen-Image-Edit-2509` or later version:
For multiple image inputs, use `Qwen/Qwen-Image-Edit-2509` or `Qwen/Qwen-Image-Edit-2511`:
```bash
python image_edit.py \
@@ -0,0 +1,8 @@
python image_edit.py \
--model Qwen/Qwen-Image-Edit-2511 \
--image qwen_bear.png \
--prompt "Add a white art board written with colorful text 'vLLM-Omni' on grassland. Add a paintbrush in the bear's hands. position the bear standing in front of the art board as if painting" \
--output output_image_edit.png \
--num_inference_steps 50 \
--cfg_scale 4.0 \
--cache_backend cache_dit \