links to useful SD mods and tools
table of contents:
(link ids are adler32
-style sha-1 hashes of the URL)
optimizations
-
https://github.com/CompVis/stable-diffusion/compare/main...Doggettx:stable-diffusion:main
- link id:
d8ad218c
🚀 time/speed optimized- Doggettx memory optimization: allows rendering 1024x1024 images and even up to 4096x1024
- link id:
-
https://github.com/hlky/stable-diffusion/commit/8c885b480055ff4250fad6967a7fca02bd58e152
- link id:
6a001cf2
Details
- outdated, replaced by
459b1456
below
- alternate link: CompVis/stable-diffusion#177
- neonsecret's optimizations (seems less extensive than Doggettx's, but still saving it here)
- link id:
-
https://github.com/basujindal/stable-diffusion/pull/122
- link id:
459b1456
🧠 VRAM/memory optimized- improvement on neonsecret's optimizations
- merged on 2022-09-07
- link id:
Notes about specific card architectures/families
NVIDIA Pascal (Quadro P1000, Tesla P40, GTX 1xxx series e.g. GTX 1080)
- For NVIDIA Pascal GPUs, stable-diffusion is faster in full-precision mode (fp32), not half-precision mode (fp16)!
How to apply the optimizations
Hard mode
- Open the "Files changed" view in the PR/diff and modify/add the listed files in your copy of
stable-diffusion
.
Easier mode
- Open the "Files changed" view in the PR/diff and at the top right of every file, there is a 3-dots menu (•••).
- Click "View file" in that 3-dots menu. You will be taken to an individual file view.
- At the top of the individual file view, click the "Raw" button.
- Save the page as the filename specified in the PR, under the path specified in the PR (but starting from the root directory of your
stable-diffusion
installation).
tools
- https://github.com/pharmapsychotic/clip-interrogator
- link id:
1023145e
🔍 CLIP interrogator- determines an approximate text prompt (with style) for a given image
- replicate runpage: https://replicate.com/methexis-inc/img2prompt
- link id:
https://gist.github.com/Filarius/2c30348cca9266d7dc3a171a1d197e17
- link id:
e58f14c6
🗜 convert Stable Diffusion weights file intofloat16
(half precision)- by Filarius
- link id:
krita plugins
- https://github.com/sddebz/stable-diffusion-krita-plugin
- link id:
446f1509
- based on AUTOMATIC1111's webUI
- requires Krita 5.1
- link id:
- https://github.com/nousr/koi
- link id:
98450a94
- pytorch-based krita plugin
- link id:
video generation
https://github.com/deforum/stable-diffusion
- link id:
6415107b
🎥 adds the ability to render videos- replicate runpage: https://replicate.com/deforum/deforum_stable_diffusion/versions/e22e77495f2fb83c34d5fae2ad8ab63c0a87b6b573b6208e1535b23b89ea66d6
- link id:
In addition, it may make sense with both @mchaker and the Doggettx mods to have some kind of memory threshold or image dimension size based on GPU VRAM be used to determine if "slow and steady" mode kicks in or not?