# Stable diffusion

## Installation steps

1. Install tools: Python and Git
2. Git clone stable diffusion UI [https://github.com/AUTOMATIC1111/stable-diffusion-webui](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](https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors)\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2Fq08nnoXjpnyKtwacw50O%2Fimage.png?alt=media\&token=a907bbdc-180b-4479-a8ec-7195eb5ff41c)
4. Update python path in webui-user.bat and save it\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2FWnKlST66Gv4MslbNt80X%2Fimage.png?alt=media\&token=5d662e47-ee7a-473a-ad64-6f68ba33a6c4)
5. Double click webui-user.bat to run it\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2FS42VUWq4GNFSnZN4EvZv%2Fimage.png?alt=media\&token=ff0df354-af1f-4c5c-ae34-df2fa0be4832)
6. It will auto pop up or you can copy\&paste the url\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2FeEhVFdHjaUP9ZdmH66Yt%2Fimage.png?alt=media\&token=81c918c1-53ee-4bd1-a3ad-2667314a57d5)\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2F6g4Ab9FHSNQWf50V5r2r%2Fimage.png?alt=media\&token=3827a0f8-ecdb-4b48-aed4-b1b4764aa839)
7. Select the model in the drop down\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2FxVg0pMZjFbXqYg1fvaiN%2Fimage.png?alt=media\&token=8272e2dc-7fee-4d78-9be8-710fd7a86e7c)
8. Try it out by entering the txt2img with promt and hit generate.\
   ![](https://2387071138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2vWCT8lbIfip1tMlDx%2Fuploads%2FjdPLgI5b4WiLH73NxXBZ%2Fimage.png?alt=media\&token=5bc1d6d9-7616-4566-a72a-bd8c02db9eaa)
9. Congrats on your first image!

Ref:

[https://www.youtube.com/watch?v=urF\_6GSALWo](https://www.youtube.com/watch?v=urF_6GSALWo)

