LightDiffusion
Fastest Stable Diffusion GUI, Pipeline, with only one python script, with the least number of lines and in the least complex way.
Install / Use
/learn @Aatricks/LightDiffusionREADME
LightDiffusion
The purpose of this repository and project is to remake the famous stable-diffusion in only one python script, with the least number of lines and in the least complex way, while being the fastest diffusion algorithm. It's made by retro-engineering Stable-Diffusion, ComfyUI and SDWebUI.
There's also a LightDiffusion version using Flux Dev available in releases and Flux branch.
:warning: The Repository and all future updates will be made on the LightOrg repo here
For more information, check the documentation
The project grew up with time, leaving the purpose of only being the fastest and simplest SD1.5 image generator, if you seek the original version of about 3000 lines of python, you can still find it at LightDiffusion-og or in the releases here.
Also check out the Refactored version for improved simplicity and assembling SD and Flux at LightDiffusion-Next
Features
- Original Txt2Img, Img2Img (R-ERSGAN4x+ UltimateSDUpscaling DPM++ 2M)
- Attention syntax
- Hires-Fix (euler ancestral normal)
- Nvidia, amd and Intel gpus and cpu
- Xformers and Pytorch optimization
- Stable-Fast implementation offering a 70% speedup at the cost of pre inference model optimization windup time
- FP16 and FP32 precision support
- Saved state in between starts
- GUI
- DPM Adaptive Karras
- Clip Skip
- LoRa and textual inversion (embeddings) support
- Automatic Prompt-Enhancing with llama3.1 (ollama)
- Discord bot integration with the installation of Boubou and the usage of LightDiffusion's pipeline
- Automatic Face and body Detailer (based on Impact pack)
- TAESD image previewing at the cost of a 10% performance hit
Installation
To install, please download a release or clone this repo and execute the run.bat file in a cmd and you should be good to go.
From Source
Else install the python dependencies by writing pip install -r requirements.txt
After doing that, add your SD1/1.5 safetensors model to the checkpoints directory and you should be good to go.
Stable-Fast
To use the stable-fast optimization refer to this guide to install from the wheel file.
Ollama
To use the Prompt enhancer refer to this guide to install and run those commands
ollama run llama3.1
pip install ollama
Discord
To use LightDiffusion in discord, refer to the installation guide in this repo
Related Skills
qqbot-channel
349.0kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
