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

Qwen-Image-Edit-2509-White_film_to_rendering

LoRA adapter for Qwen-Image-Edit-2509: Convert white film/sketch to material rendering

Overview

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

Trigger word: 白膜转材质

The LoRA transforms plain white film/sketch illustrations into full material renderings with realistic textures.

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

python3 inference.py --image test_images/bear.png \
    --prompt "白膜转材质, 将图片转换为材质渲染效果" \
    --output result.png

Project Structure

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