Easy CPU-only stable diffusion without littering too much your GNU/Linux system
requirements:
-16Gb of RAM + at least 4 of swap
- docker installed
performance on Ryzen 5 5600 using default settings from retards guide:
-10 minutes for 2 512x512 images
-5 minutes for 2 384x384 images
- memory usage will spike to 10G during loading and then hover between 6-8 during processing
installation:
- Download the pre-patched repository https://github.com/loadletter/stable-diffusion
- Download the model data torrent
- Go into the repo you downloaded and go to stable-diffusion-main/models/ldm. Create a folder called "stable-diffusion-v1". Rename the .ckpt file to "model.ckpt", and copy it into that folder you've made
- Setup the docker thing, a bind mount is used to share the repo data at /sd
- In the new container cd to /sd/
- Download dependencies and activate the ambient
- You should be able to now issue the command to generate images
- The first time its run more dependencies will be downloaded and then should be fine and generate the image
- Once exited, the container can later be recalled with
Optionally /opt/conda and /root/.cache can be moved to /sd and symlinked for more persistence of the downloaded data
credits: