m0_74196153/Qwen-Image-Edit-2509-White_to_Scene
模型介绍文件和版本Pull Requests讨论分析

Qwen-Image-Edit-2509-White_to_Scene

Qwen-Image-Edit-2509 的 LoRA 适配器:将白底产品照片转换为户外场景

概述

本仓库包含适用于 Qwen-Image-Edit-2509 的 White_to_Scene LoRA 适配器,已适配 华为昇腾 NPU 推理。

触发词: 白底图转场景

与 White_to_Scene 相同的 LoRA,路径中包含完整的基础模型名称。

NPU 适配

  • 设备: 华为昇腾 910B
  • 框架: diffusers + torch_npu
  • 精度: 平均像素误差 = 0.31%,结构相似性指数(SSIM)= 0.997,峰值信噪比(PSNR)= 45.2 dB(CPU 与 NPU 对比)
  • 延迟: 8.3 秒(20 步推理)

快速开始

python3 inference.py --image test_images/product.png \
    --prompt "白底图转场景, 将图片中的汽车放在户外场景中" \
    --output result.png

项目结构

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

模型详情

  • 基础模型: Qwen/Qwen-Image-Edit-2509
  • LoRA 权重: 白底图转场景.safetensors(236 MB)
  • 许可证: Apache 2.0

由 @m0_74196153 适配华为昇腾 NPU

下载使用量0