适用于华为昇腾NPU的Qwen-Image-Edit-2509的ComfyUI工作流包
本仓库包含适用于NPU推理的Qwen-Image-Edit-2509的ComfyUI工作流配置。工作流包括:
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.pngmodel_patches/ 目录包含用于 ComfyUI 集成的文件。请将其复制到您的 ComfyUI models/model_patches/ 目录中。
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 & screenshots由 @m0_74196153 适配华为昇腾 NPU