> For the complete documentation index, see [llms.txt](https://owen31302.gitbook.io/github-education/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://owen31302.gitbook.io/github-education/ai/stable-diffusion.md).

# Stable diffusion

## Installation steps

1. Install tools: Python and Git
2. Git clone stable diffusion UI <https://github.com/AUTOMATIC1111/stable-diffusion-webui>
3. Download model and save it under {your project download root}\stable-diffusion-webui\models\Stable-diffusion folder <https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors>\
   ![](/files/0ZZGbxpXu1FTsg50Gsg3)
4. Update python path in webui-user.bat and save it\
   ![](/files/igmxouvqaM21CWzpKxUy)
5. Double click webui-user.bat to run it\
   ![](/files/uunCxs1IMtq2N1VeB5st)
6. It will auto pop up or you can copy\&paste the url\
   ![](/files/zAAYBlzVpkWsp03EXpbF)\
   ![](/files/Vnc6e3za0GzraDvI0exz)
7. Select the model in the drop down\
   ![](/files/7seKrIFoo7ts4BkgjQ8T)
8. Try it out by entering the txt2img with promt and hit generate.\
   ![](/files/Sctz7xfk7TIvI69feaEp)
9. Congrats on your first image!

Ref:

<https://www.youtube.com/watch?v=urF_6GSALWo>
