table of contents:
(link ids are adler32
-style sha-1 hashes of the URL)
-
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:
- For NVIDIA Pascal GPUs, stable-diffusion is faster in full-precision mode (fp32), not half-precision mode (fp16)!
- Open the "Files changed" view in the PR/diff and modify/add the listed files in your copy of
stable-diffusion
.
- 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).
- 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 into
float16
(half precision) - by Filarius
- link id:
- 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:
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:
Thanks for this. I was previously using the tweak from neonsecret and was able to generate up to 1024x640 images on 8GB; however, this came at the cost of speed where it took multiple seconds per iteration due to the attention splitting.
Results for 512x512 default parameters
Baseline code from following this guide JoshuaKimsey/Linux-StableDiffusion-Script@120a13b :
Using attention.py from https://github.com/basujindal/stable-diffusion/pull/122/files:
Will update this once I add in Doggettx tweaks
System: Win10 with wsl2 Ubuntu 22.04, i7 11800H, 16GB of RAM, 3070 mobile 8GB