Install Stable Diffusion on your computer to generate AI-images for free (PC version).

  1. Download GitForWindows: https://gitforwindows.org/

  2. Create a folder on your computer’s C:/ drive and call it SD

  3. Write in your GitForWindows window cd /c/SD and press Enter

  4. Create an account at GitHub: https://github.com/

  5. https://github.com/AUTOMATIC1111/stable-diffusion-webui

  6. git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

  7. Create an account with HuggingFace: https://huggingface.co/

  8. Download the latest Stable Diffusion model: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original

  9. You can download face restoration here: https://github.com/TencentARC/GFPGAN (scroll down and download V1.4 model)

  10. Download Python 3.10.6: https://www.python.org/downloads/release/python-3106/ (scroll down and choose the version depending on your Windows)

  11. Put GFPGANv1.4.pth to your C:/SD/stable-diffusion-webui

  12. Put the Stable Diffusion model sd-v1-4.ckpt you installed from HuggingFace to C:/SD/stable-diffusion-webui/models

    (you can also install any model you trained or downloaded to this folder to use it)

  13. When Python finishes installing go to C:/SD/stable-diffusion-webui and run webui-user (make sure it’s Windows Batch File)

  14. It’ll take up to 40 mins. Don’t click on the screen or it will pause. If you accidentally pressed it (you’ll know because nothing will happen for a long time), in that case press Enter and it’ll continue.

  15. You’ll know it’s finished because you’ll see an IP address at the end.

  16. Copy IP address and paste it in a browser you’re using.

  17. You can prompt and Generate

  18. Find images under C:/SD/stable-diffusion-webui/outputs

If you have a less powerful computer add this line in your batch file (watch the last part of the tutorial how to do it):

--opt-split-attention --precision full --no-half --medvram

To help you with prompting, my favorite prompt search websites:

https://pagebrain.ai/promptsearch/?q=&page=1

https://lexica.art/

Check your computer first if you have enough vram on your GPU: 4 GB VRAM minimum and CUDA (on PC)

A good article where to find where your VRAM is here: https://www.lifewire.com/how-to-check-vram-5235783 . Then check if your graphic card is in the list on: https://en.wikipedia.org/wiki/CUDA