Demonstration for the Qwen/Qwen-Image-Edit-2509 model, featuring lazy-loaded LoRA adapters for fast, specialized image edits like photo-to-anime conversion, angle changes, lighting restoration, skin editing, and upscaling.
7
stars
46
commits
Python
primary language
Aug 8, 2026
updated
Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load is a high-performance image editing and style-transfer platform built on top of the Qwen/Qwen-Image-Edit-2509 base model and an optimized transformer architecture (prithivMLmods/Qwen-Image-Edit-Rapid-AIO-V4). The application integrates Flash Attention 3 (QwenDoubleStreamAttnProcessorFA3) to achieve low VRAM footprints and accelerated 4-step image manipulation.
Using a Lazy Loading design for LoRA adapters, the system dynamically downloads and fuses task-specific adapters on demand—including Photo-to-Anime, Multiple Angles, Light Restoration, Relight, Multi-Angle Lighting, Edit Skin, Next Scene, Flat Log, and Upscaling. The web workspace is served via a custom, single-page web app built with a FastAPI backend server (gradio.Server) and a dark-mode frontend interface featuring a dual-view canvas, A/B comparison slider, history filmstrip, and interactive prompt suggestions.
QwenDoubleStreamAttnProcessorFA3 processor layer to accelerate cross-attention inference phases while reducing active GPU memory consumption.├── examples/
│ ├── 1.jpg
│ ├── 10.jpeg
│ ├── 11.jpg
│ ├── 12.jpg
│ ├── 13.jpg
│ ├── 14.jpg
│ ├── 2.jpeg
│ ├── 4.jpg
│ ├── 5.jpg
│ ├── 6.jpg
│ ├── 7.jpg
│ ├── 8.jpg
│ ├── 9.jpg
│ ├── DI.jpg
│ └── ELS.jpg
├── qwenimage/
│ ├── __init__.py
│ ├── pipeline_qwenimage_edit_plus.py
│ ├── qwen_fa3_processor.py
│ └── transformer_qwenimage.py
├── app.py
├── index.html
├── LICENSE
├── pre-requirements.txt
├── pyproject.toml
├── README.md
├── requirements.txt
└── uv.lock
To set up the Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load environment locally, configure your system according to the specifications below. A modern CUDA-enabled GPU is required.
torch==2.11.0 or above is required for best compatibility.--extra-index-url https://download.pytorch.org/whl/cu130), matching the environment used on the live Hugging Face demo.uv (Recommended)uv is an ultra-fast Python package and project manager written in Rust. It ensures rapid virtual environment setup and exact dependency synchronization based on the uv.lock file.
Step 1 — Install uv
curl -LsSf https://astral.sh/uv/install.sh | shpowershell -c "irm https://astral.sh/uv/install.ps1 | iex"Step 2 — Clone the repository
git clone https://github.com/PRITHIVSAKTHIUR/Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load.git
cd Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load
Step 3 — Initialize the project and install dependencies
uv sync
Step 4 — Run the script
uv run app.py
1. Update Package Manager Upgrade your local package manager:
pip install pip>=26.1.2
2. Install Core Dependencies
Install the primary deep learning stack, transformer libraries, and core computing utilities listed in requirements.txt:
pip install -r requirements.txt
requirements.txt)--extra-index-url https://download.pytorch.org/whl/cu130
torch==2.11.0
torchvision==0.26.0
transformers==5.14.1
accelerate==1.14.0
diffusers==0.39.0
peft==0.19.1
gradio==6.22.0
av==17.1.0
spaces==0.51.1
huggingface-hub==1.24.0
kernels==0.16.0
Once the web server initializes, open your browser to the local address output in your terminal (typically http://127.0.0.1:7860/).
46 commits
Python
60.7%
HTML
39.3%
Demonstration for the Qwen/Qwen-Image-Edit-2509 model, featuring lazy-loaded LoRA adapters for fast, specialized image edits like photo-to-anime conversion, angle changes, lighting restoration, skin editing, and upscaling.
7
stars
46
commits
Python
primary language
Aug 8, 2026
updated
Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load is a high-performance image editing and style-transfer platform built on top of the Qwen/Qwen-Image-Edit-2509 base model and an optimized transformer architecture (prithivMLmods/Qwen-Image-Edit-Rapid-AIO-V4). The application integrates Flash Attention 3 (QwenDoubleStreamAttnProcessorFA3) to achieve low VRAM footprints and accelerated 4-step image manipulation.
Using a Lazy Loading design for LoRA adapters, the system dynamically downloads and fuses task-specific adapters on demand—including Photo-to-Anime, Multiple Angles, Light Restoration, Relight, Multi-Angle Lighting, Edit Skin, Next Scene, Flat Log, and Upscaling. The web workspace is served via a custom, single-page web app built with a FastAPI backend server (gradio.Server) and a dark-mode frontend interface featuring a dual-view canvas, A/B comparison slider, history filmstrip, and interactive prompt suggestions.
QwenDoubleStreamAttnProcessorFA3 processor layer to accelerate cross-attention inference phases while reducing active GPU memory consumption.├── examples/
│ ├── 1.jpg
│ ├── 10.jpeg
│ ├── 11.jpg
│ ├── 12.jpg
│ ├── 13.jpg
│ ├── 14.jpg
│ ├── 2.jpeg
│ ├── 4.jpg
│ ├── 5.jpg
│ ├── 6.jpg
│ ├── 7.jpg
│ ├── 8.jpg
│ ├── 9.jpg
│ ├── DI.jpg
│ └── ELS.jpg
├── qwenimage/
│ ├── __init__.py
│ ├── pipeline_qwenimage_edit_plus.py
│ ├── qwen_fa3_processor.py
│ └── transformer_qwenimage.py
├── app.py
├── index.html
├── LICENSE
├── pre-requirements.txt
├── pyproject.toml
├── README.md
├── requirements.txt
└── uv.lock
To set up the Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load environment locally, configure your system according to the specifications below. A modern CUDA-enabled GPU is required.
torch==2.11.0 or above is required for best compatibility.--extra-index-url https://download.pytorch.org/whl/cu130), matching the environment used on the live Hugging Face demo.uv (Recommended)uv is an ultra-fast Python package and project manager written in Rust. It ensures rapid virtual environment setup and exact dependency synchronization based on the uv.lock file.
Step 1 — Install uv
curl -LsSf https://astral.sh/uv/install.sh | shpowershell -c "irm https://astral.sh/uv/install.ps1 | iex"Step 2 — Clone the repository
git clone https://github.com/PRITHIVSAKTHIUR/Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load.git
cd Qwen-Image-Edit-2509-LoRAs-Fast-Lazy-Load
Step 3 — Initialize the project and install dependencies
uv sync
Step 4 — Run the script
uv run app.py
1. Update Package Manager Upgrade your local package manager:
pip install pip>=26.1.2
2. Install Core Dependencies
Install the primary deep learning stack, transformer libraries, and core computing utilities listed in requirements.txt:
pip install -r requirements.txt
requirements.txt)--extra-index-url https://download.pytorch.org/whl/cu130
torch==2.11.0
torchvision==0.26.0
transformers==5.14.1
accelerate==1.14.0
diffusers==0.39.0
peft==0.19.1
gradio==6.22.0
av==17.1.0
spaces==0.51.1
huggingface-hub==1.24.0
kernels==0.16.0
Once the web server initializes, open your browser to the local address output in your terminal (typically http://127.0.0.1:7860/).
46 commits
Python
60.7%
HTML
39.3%