Qwen-Image-2.1-LoRAs-PnP is a flexible, plug-and-play image synthesis and editing platform built on top of the Qwen/Qwen-Image-2.1 diffusion pipeline.
See the codeQwen-Image-2.1-LoRAs-PnP is a modular image generation, multi-reference editing, and plug-and-play (PnP) LoRA execution studio powered by the Qwen/Qwen-Image-2.1 base pipeline (QwenImage21Pipeline). The platform handles both text-to-image and complex image editing workflows (including object movement, object removal, natural exposure correction, head/face swapping, and native RGBA transparent generation) at 1K and 2K resolution tiers.
The system features dynamic lazy loading of pre-registered LoRAs (such as Viggle 4-Step Turbo, Object Mover, Object Remover, Natural Exposure, and Best Face Swap), as well as direct arbitrary LoRA loading from Hugging Face Hub repositories. It is served through a single-page web application (SPA) built with a FastAPI backend (gradio.Server) and a dark-themed client interface featuring an interactive bounding box annotator, history management, and a dedicated LoRA Explorer tray.
QwenImage21Pipeline..safetensors weight file.FlowMatchEulerDiscreteScheduler to deliver high-quality outputs in 4 sampling steps.├── assets/...
├── examples/...
├── LoRA_Cover/...
├── app.py
├── index.html
├── LICENSE
├── pre-requirements.txt
├── pyproject.toml
├── README.md
├── requirements.txt
└── uv.lock
To set up the Qwen-Image-2.1-LoRAs-PnP environment locally, configure your system according to the specifications below. A modern CUDA-enabled GPU (with bfloat16 support) is required.
torch==2.11.0 or above is required for optimal system compatibility.--extra-index-url [https://download.pytorch.org/whl/cu130](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-2.1-LoRAs-PnP.git
cd Qwen-Image-2.1-LoRAs-PnP
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.2.1"
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
git+https://github.com/huggingface/diffusers.git
torch==2.11.0
torchvision==0.26.0
transformers==5.14.1
accelerate==1.14.0
peft==0.19.1
gradio==6.30.0
av==17.1.0
spaces>=0.51.1
huggingface-hub>=1.24.0
pillow>=12.3.0
Once the FastAPI web server initializes, open your browser to the local address output in your terminal (typically http://127.0.0.1:7860/).
user/repo) and weight filename to load it on the fly.1K or 2K), aspect ratio, inference steps, and guidance scale. Toggle Transparent background (RGBA) if alpha-channel output is required.Qwen-Image-2.1-LoRAs-PnP is a flexible, plug-and-play image synthesis and editing platform built on top of the Qwen/Qwen-Image-2.1 diffusion pipeline.
See the codeQwen-Image-2.1-LoRAs-PnP is a modular image generation, multi-reference editing, and plug-and-play (PnP) LoRA execution studio powered by the Qwen/Qwen-Image-2.1 base pipeline (QwenImage21Pipeline). The platform handles both text-to-image and complex image editing workflows (including object movement, object removal, natural exposure correction, head/face swapping, and native RGBA transparent generation) at 1K and 2K resolution tiers.
The system features dynamic lazy loading of pre-registered LoRAs (such as Viggle 4-Step Turbo, Object Mover, Object Remover, Natural Exposure, and Best Face Swap), as well as direct arbitrary LoRA loading from Hugging Face Hub repositories. It is served through a single-page web application (SPA) built with a FastAPI backend (gradio.Server) and a dark-themed client interface featuring an interactive bounding box annotator, history management, and a dedicated LoRA Explorer tray.
QwenImage21Pipeline..safetensors weight file.FlowMatchEulerDiscreteScheduler to deliver high-quality outputs in 4 sampling steps.├── assets/...
├── examples/...
├── LoRA_Cover/...
├── app.py
├── index.html
├── LICENSE
├── pre-requirements.txt
├── pyproject.toml
├── README.md
├── requirements.txt
└── uv.lock
To set up the Qwen-Image-2.1-LoRAs-PnP environment locally, configure your system according to the specifications below. A modern CUDA-enabled GPU (with bfloat16 support) is required.
torch==2.11.0 or above is required for optimal system compatibility.--extra-index-url [https://download.pytorch.org/whl/cu130](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-2.1-LoRAs-PnP.git
cd Qwen-Image-2.1-LoRAs-PnP
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.2.1"
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
git+https://github.com/huggingface/diffusers.git
torch==2.11.0
torchvision==0.26.0
transformers==5.14.1
accelerate==1.14.0
peft==0.19.1
gradio==6.30.0
av==17.1.0
spaces>=0.51.1
huggingface-hub>=1.24.0
pillow>=12.3.0
Once the FastAPI web server initializes, open your browser to the local address output in your terminal (typically http://127.0.0.1:7860/).
user/repo) and weight filename to load it on the fly.1K or 2K), aspect ratio, inference steps, and guidance scale. Toggle Transparent background (RGBA) if alpha-channel output is required.