m0_74196153/Qwen-Image-Edit-2509-Fusion
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Qwen-Image-Edit-2509-Fusion

LoRA adapter for Qwen-Image-Edit-2509: Multi-image fusion and blending

Overview

This repository contains the Fusion LoRA adapter for Qwen-Image-Edit-2509, adapted for Huawei Ascend NPU inference.

Trigger word: 溶图

The LoRA enables blending and fusion of multiple images into a coherent composition.

NPU Adaptation

  • Device: Huawei Ascend 910B
  • Framework: diffusers + torch_npu
  • Accuracy: Mean Pixel Error = 0.31%, SSIM = 0.997, PSNR = 45.2 dB (CPU vs NPU)
  • Latency: 8.3s (20 inference steps)

Quick Start

# Multi-image fusion
python3 inference.py --image test_images/product.png test_images/bear.png \
    --prompt "溶图, 将两张图片融合在一起" \
    --output fused.png

Project Structure

Qwen-Image-Edit-2509-Fusion/
├── 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

Model Details

  • Base Model: Qwen/Qwen-Image-Edit-2509
  • LoRA Weight: 溶图.safetensors (225 MB)
  • License: Apache 2.0

Adapted for Huawei Ascend NPU by @m0_74196153