ComfyUI workflow pack for Qwen-Image-Edit-2509, adapted for Huawei Ascend NPU
This repository contains ComfyUI workflow configurations for Qwen-Image-Edit-2509, adapted for NPU inference. The workflows include:
pip install diffusers torch-npu transformers scikit-image pillowpython3 inference.py --image test_images/product.png \
--prompt "Edit this image according to the prompt" \
--output result.pngThe model_patches/ directory contains files for ComfyUI integration. Copy to your ComfyUI models/model_patches/ directory.
python3 evaluation/eval_accuracy.py \
--image test_images/product.png \
--prompt "Transform this image" \
--steps 20Qwen-Edit-2509/
├── inference.py # Main inference script
├── README.md # This file
├── test_images/ # Sample input images
├── evaluation/
│ ├── eval_accuracy.py # CPU vs NPU accuracy comparison
│ ├── eval_performance.py # Throughput & latency benchmark
│ ├── terminal_screenshot.py # macOS-style screenshot generator
│ ├── take_screenshot.py # Screenshot helper
│ ├── logs/ # Evaluation results
│ └── screenshots/ # Output images & screenshotsAdapted for Huawei Ascend NPU by @m0_74196153