Install Stable Diffusion on your computer to generate AI-images for free (PC version).
Download GitForWindows: https://gitforwindows.org/
Create a folder on your computer’s C:/ drive and call it SD
Write in your GitForWindows window cd /c/SD and press Enter
Create an account at GitHub: https://github.com/
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Create an account with HuggingFace: https://huggingface.co/
Download the latest Stable Diffusion model: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
You can download face restoration here: https://github.com/TencentARC/GFPGAN (scroll down and download V1.4 model)
Download Python 3.10.6: https://www.python.org/downloads/release/python-3106/ (scroll down and choose the version depending on your Windows)
Put GFPGANv1.4.pth to your C:/SD/stable-diffusion-webui
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)
When Python finishes installing go to C:/SD/stable-diffusion-webui and run webui-user (make sure it’s Windows Batch File)
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.
You’ll know it’s finished because you’ll see an IP address at the end.
Copy IP address and paste it in a browser you’re using.
You can prompt and Generate
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:
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