Skip to content

AnonBOTpl/SwiftDiffusion

Repository files navigation

🎨 SwiftDiffusion — Stable Diffusion GUI

🇵🇱 Polski



Stop wrestling with the command line. Start creating.
A clean, fast, VRAM-friendly GUI for Stable Diffusion 1.5 — built with PyQt6.

License Python 3.10+ Platform Ko-fi


🖼️ Screenshots

Main Window
Main generation window

ADetailer
ADetailer — automatic face enhancement

Model Downloader
Built-in model downloader for CivitAI & HuggingFace


🚀 What can it do?

🖌️ Generation Modes

Mode What it's for
Text2Image Generate from a prompt with full control over sampler, scheduler, CFG, steps, and dimensions
Img2Img Transform an existing image guided by your prompt
Inpainting Paint a mask over any area and regenerate just that part — with full Undo/Redo (Ctrl+Z/Y)
ControlNet (Canny) Guide generation using the edge structure of a reference image
ADetailer Automatically detect and enhance faces using YOLOv8 — zero extra VRAM cost
Upscaler High-quality upscaling via the spandrel library

⚙️ Smart Settings

  • First Launch Wizard — choose your language and theme before anything else
  • 7 dark themes — Dark, Amber, Nord, Dracula, Monokai, Forest, Ocean — with optional custom accent color
  • Performance controls — VRAM Slicing, Attention Slicing, CPU Offloading, auto VRAM clear
  • Fully translatable — add any language by dropping a JSON file into locales/

📦 Model Management

  • URL Downloader — paste a CivitAI or HuggingFace link and SwiftDiffusion handles the rest: downloads, categorizes, and makes the model available instantly
  • Live refresh — add a model to disk and the UI picks it up automatically, no restart needed (QFileSystemWatcher)
  • Latent Mixology Station — blend up to 5 LoRA adapters simultaneously with a visual weight mixer
  • Auto-detects .safetensors, .pth, .onnx, and other common formats

🖼️ Gallery & PNG Metadata

  • Browse generated images in the built-in file explorer
  • One-click recall — read prompt, seed, and all settings from PNG metadata and restore them to the pipeline instantly
  • Floating HTML guides for ControlNet and Inpainting

📊 Live Resource Monitor

Real-time VRAM, RAM, GPU load, and temperature — visible in the sidebar at all times.


🛠️ Installation

Windows (recommended)

1. Clone or download this repo
2. Run install.bat
3. Run start.bat

install.bat sets up a virtual environment, installs PyTorch with CUDA 12.8 support, and pulls all dependencies automatically.

Linux

pip install -r requirements.txt
python main.py

📋 Requirements

Python 3.10+
GPU CUDA-compatible, 6 GB VRAM recommended (GTX 1060 or better)
OS Windows / Linux (PyQt6 required)

📂 Project Structure

SwiftDiffusion/
├── main.py            # UI & application entry point
├── engine.py          # Diffusion pipeline logic
├── worker.py          # Background QThread workers
├── widgets.py         # Reusable UI components
├── config.py          # Settings & i18n loader
├── models_registry.py # Model scanner & registry
├── url_downloader.py  # CivitAI / HuggingFace downloader
├── scraper.py         # Model search scraper
├── install.bat        # Windows installer
├── start.bat          # Windows launcher
├── locales/           # Translation files (en, pl, ...)
└── docs/              # Floating HTML guides

☕ Support

If SwiftDiffusion saves you time, consider buying me a coffee:

ko-fi

About

A modern PyQt6 GUI for Stable Diffusion 1.5. Optimized for 6GB VRAM GPUs, 7 dark themes, advanced Inpainting canvas, Latent Mixology, Zero-Copy memory, i18n PL/EN. ☕ ko-fi.com/anonbotpl

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors