# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://owen31302.gitbook.io/github-education/ai/stable-diffusion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
