Install and start Stable Diffusion tutorial

1. Download the source code

GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI

2. Install miniconda

Reference: Tutorial on installing and starting yolo5_Cangqionzhiyue's blog-CSDN blog

3. Install CUDA

Reference: Tutorial on installing and starting yolo5_Cangqionzhiyue's blog-CSDN blog

4. Create a virtual environment

conda create -n stable python=3.10.9
conda activate stable

5. Install dependencies

Install pytorch first

conda install pytorch==1.10.0 torchvision==0.11.0  cudatoolkit=11.3 -c pytorch -c conda-forge

Install basicsr [the blogger opened the ladder when installing this]

pip install basicsr
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

 6. Start

cd to the project root directory (make sure there is enough space on drive C)

webui-user.bat

The above picture shows that the startup is successful! No need to wait for the IP port to appear.

7. Visit

http://127.0.0.1:7860/

 

8. Scan the WeChat business card below to add the blogger’s emblem  ↓↓ ↓↓ ↓↓ ↓↓ ↓↓ ↓↓ ↓↓ ↓↓ ↓↓↓

Guess you like

Origin blog.csdn.net/wenxingchen/article/details/132577013