Qwen-Image-Edit-2509-LoRAs-Fast is a high-performance, user-friendly web application built with Gradio that leverages the advanced Qwen/Qwen-Image-Edit-2509 model from Hugging Face for seamless image editing tasks.
20
stars
18
commits
Python
primary language
Dec 23, 2025
updated
Qwen-Image-Edit-2509-LoRAs-Fast is a high-performance, user-friendly web application built with Gradio that leverages the advanced Qwen/Qwen-Image-Edit-2509 model from Hugging Face for seamless image editing tasks. This app specializes in rapid, specialized edits using lightweight LoRA (Low-Rank Adaptation) adapters, enabling users to transform photos into anime styles, adjust camera angles for multi-view generation, restore lighting by removing harsh shadows, or relight scenes with custom illumination—all in just a few inference steps (as low as 4) for near-instant results. Powered by a custom SteelBlueTheme for an intuitive interface, the app automatically resizes input images to optimal dimensions (multiples of 8 for efficient diffusion processing) while preserving aspect ratios, and supports seed randomization for creative variations.
Specialized LoRA Adapters: Choose from four pre-loaded adapters:
Fast Inference: Optimized for speed with FlowMatchEulerDiscreteScheduler, bfloat16 precision, and as few as 4 steps—ideal for real-time prototyping.
User-Friendly Interface:
Technical Optimizations:
device_map='cuda'.Deployment-Ready: Integrates with Hugging Face Spaces for GPU-accelerated hosting, with progress tracking and error handling.
To run this app locally or in a custom environment:
Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/Qwen-Image-Edit-2509-LoRAs-Fast.git
cd Qwen-Image-Edit-2509-LoRAs-Fast
Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Download required models and LoRAs (handled automatically on first run via from_pretrained):
Qwen/Qwen-Image-Edit-2509linoyts/Qwen-Image-Edit-Rapid-AIO (subfolder: transformer)autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime (Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors)dx8152/Qwen-Edit-2509-Multiple-angles (镜头转换.safetensors)dx8152/Qwen-Image-Edit-2509-Light_restoration (移除光影.safetensors)dx8152/Qwen-Image-Edit-2509-Relight (Qwen-Edit-Relight.safetensors)Launch the app:
python app.py # Assuming the main script is saved as app.py
The Gradio interface will open at http://127.0.0.1:7860.
Install the following packages via pip (full requirements.txt below):
git+https://github.com/huggingface/accelerate.gitgit+https://github.com/huggingface/diffusers.gitgit+https://github.com/huggingface/peft.githuggingface_hubsentencepiecetransformerstorchvisionkernelsspacestorchnumpygradio, PIL (Pillow), qwenimage (custom from repo)requirements.txt:
git+https://github.com/huggingface/accelerate.git
git+https://github.com/huggingface/diffusers.git
git+https://github.com/huggingface/peft.git
huggingface_hub
sentencepiece
transformers
torchvision
kernels
spaces
torch
numpy
gradio
Pillow
| Component | Requirement | Details from Log |
|---|---|---|
| GPU Model | NVIDIA Enterprise (H200 / H100 / A100) | Tested on NVIDIA H200 MIG 3g.71gb |
| VRAM | 80 GB Recommended (Min 71 GB) | Peak tensor packing reached 60.8 GB |
| System RAM | 128 GB+ | Required to handle model offloading/loading overhead |
| Disk Space | ~60 GB+ | Transformer (~20GB) + Text Encoders (~17GB) + LoRAs |
| Python | v3.13 | Detected cpython-313 |
| PyTorch | v2.9.1 | 2.9.1+cu128 |
| CUDA | v12.8 | torch.version.cuda = 12.8 |
Upload an Image: Drag a photo (JPG/PNG) into the input field. It auto-resizes to 1024px max dimension (aspect-preserved, 8px multiples).
Enter Prompt: Describe the edit, e.g.:
Select Adapter: Dropdown for LoRA style (default: Photo-to-Anime).
Tune Advanced Settings (optional):
Run: Click "Run" to generate. Output appears alongside.
torch.cuda.is_available() returns True. Check nvidia-smi for GPU usage.torch.backends.cudnn.benchmark = True.18 commits
Python
100.0%
Qwen-Image-Edit-2509-LoRAs-Fast is a high-performance, user-friendly web application built with Gradio that leverages the advanced Qwen/Qwen-Image-Edit-2509 model from Hugging Face for seamless image editing tasks.
20
stars
18
commits
Python
primary language
Dec 23, 2025
updated
Qwen-Image-Edit-2509-LoRAs-Fast is a high-performance, user-friendly web application built with Gradio that leverages the advanced Qwen/Qwen-Image-Edit-2509 model from Hugging Face for seamless image editing tasks. This app specializes in rapid, specialized edits using lightweight LoRA (Low-Rank Adaptation) adapters, enabling users to transform photos into anime styles, adjust camera angles for multi-view generation, restore lighting by removing harsh shadows, or relight scenes with custom illumination—all in just a few inference steps (as low as 4) for near-instant results. Powered by a custom SteelBlueTheme for an intuitive interface, the app automatically resizes input images to optimal dimensions (multiples of 8 for efficient diffusion processing) while preserving aspect ratios, and supports seed randomization for creative variations.
Specialized LoRA Adapters: Choose from four pre-loaded adapters:
Fast Inference: Optimized for speed with FlowMatchEulerDiscreteScheduler, bfloat16 precision, and as few as 4 steps—ideal for real-time prototyping.
User-Friendly Interface:
Technical Optimizations:
device_map='cuda'.Deployment-Ready: Integrates with Hugging Face Spaces for GPU-accelerated hosting, with progress tracking and error handling.
To run this app locally or in a custom environment:
Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/Qwen-Image-Edit-2509-LoRAs-Fast.git
cd Qwen-Image-Edit-2509-LoRAs-Fast
Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Download required models and LoRAs (handled automatically on first run via from_pretrained):
Qwen/Qwen-Image-Edit-2509linoyts/Qwen-Image-Edit-Rapid-AIO (subfolder: transformer)autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime (Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors)dx8152/Qwen-Edit-2509-Multiple-angles (镜头转换.safetensors)dx8152/Qwen-Image-Edit-2509-Light_restoration (移除光影.safetensors)dx8152/Qwen-Image-Edit-2509-Relight (Qwen-Edit-Relight.safetensors)Launch the app:
python app.py # Assuming the main script is saved as app.py
The Gradio interface will open at http://127.0.0.1:7860.
Install the following packages via pip (full requirements.txt below):
git+https://github.com/huggingface/accelerate.gitgit+https://github.com/huggingface/diffusers.gitgit+https://github.com/huggingface/peft.githuggingface_hubsentencepiecetransformerstorchvisionkernelsspacestorchnumpygradio, PIL (Pillow), qwenimage (custom from repo)requirements.txt:
git+https://github.com/huggingface/accelerate.git
git+https://github.com/huggingface/diffusers.git
git+https://github.com/huggingface/peft.git
huggingface_hub
sentencepiece
transformers
torchvision
kernels
spaces
torch
numpy
gradio
Pillow
| Component | Requirement | Details from Log |
|---|---|---|
| GPU Model | NVIDIA Enterprise (H200 / H100 / A100) | Tested on NVIDIA H200 MIG 3g.71gb |
| VRAM | 80 GB Recommended (Min 71 GB) | Peak tensor packing reached 60.8 GB |
| System RAM | 128 GB+ | Required to handle model offloading/loading overhead |
| Disk Space | ~60 GB+ | Transformer (~20GB) + Text Encoders (~17GB) + LoRAs |
| Python | v3.13 | Detected cpython-313 |
| PyTorch | v2.9.1 | 2.9.1+cu128 |
| CUDA | v12.8 | torch.version.cuda = 12.8 |
Upload an Image: Drag a photo (JPG/PNG) into the input field. It auto-resizes to 1024px max dimension (aspect-preserved, 8px multiples).
Enter Prompt: Describe the edit, e.g.:
Select Adapter: Dropdown for LoRA style (default: Photo-to-Anime).
Tune Advanced Settings (optional):
Run: Click "Run" to generate. Output appears alongside.
torch.cuda.is_available() returns True. Check nvidia-smi for GPU usage.torch.backends.cudnn.benchmark = True.18 commits
Python
100.0%