
Recently, I spent a week debugging and solving problems encountered during the installation process, and finally completed the startup of stable-diffusion-webui and successfully generated pictures.
I'll make a note here and share it with everyone, hoping it can help you avoid some pitfalls.
Next, let's learn stable-difffusion-webui together.
Preliminary preparation
Hardware
Huawei Matebook 16s
Processor 13th Gen Intel(R) Core(TM) i9-13900H 2.60 GHz
Onboard RAM 32.0 GB (31.7 GB available)
System Type 64-bit operating system, x64-based processor
Pen and Touch provides touch support for 10 touch points
Version Windows 11 Home Chinese Edition
Version 23H2
Installation date 2023/10/12
OS version 22631.3593
Experience Windows Feature Experience Pack 1000.22700.1003.0

Procedure
- Install Python.
- Install Git.
- Install Rust.
- Clone stable-diffusion-webui to your local computer.
- Download the stable-diffusion model.
- Run stable-diffusion-webui.
Precautions
The computer is equipped with Intel(R) Iris(R) Xe Graphics, so the selected stable-diffusion-webui needs to use the version that supports Intel graphics, that is, the OpenVINO version.
OpenVINO download link:https://github.com/openvinotoolkit/stable-diffusion-webui
Python version: Python 3.10.11
PS: Regarding the Python version, I first downloaded Python 3.12.3, but when I installed the dependency package, it said it was not supported and I needed to download Python 3.8.x. Then I downloaded and installed 3.8.x, but when I installed the dependency package, it said it was not supported again. Finally, I downloaded Python 3.10.11 to install the necessary dependency packages.
Install Python
References[AI Learning] Nanny-level tutorial, step-by-step on how to install Python on your computer (Windows users), and complete the Python installation.
PS: You need to pay attention to the Python version. Download the latest 3.12.3 version. When installing the dependent package, it will prompt that it is not supported. It is recommended to choose version 3.10.x.
Install Git
References[AI Learning] Nanny-level tutorial, step-by-step on how to install Git on your computer (Windows users), complete the Git installation.
Git is installed to make it easier to clone stable-diffusion-webui to your local computer.
Install Rust
References[AI Learning] Nanny-level tutorial! Teach you step by step how to download and install Rust? (AI helps solve problems), and you are done with the Rust installation.
Rust is installed to resolve an error when building the tokenizers package.
Clone the CPU version of stable-diffusion-webui
Go to the stable-diffusion folder in the D drive of the local computer and create a new folder openvino.

Run the command prompt window as an administrator and enter the openvino folder path.
Enter the command line as follows:

Use Git to clone the https://github.com/openvinotoolkit/stable-diffusion-webui.git project.
Enter the command line:
:
The project was cloned successfully, and the openvino folder had an additional stable-diffusion-webui folder project.

At this point, the stable-diffusion-webui project cloning of the CPU version is completed.
downloadStable DiffusionModel
Enter https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.safetensors in the browser and press Enter to enter the stable diffusion model download page. Click the [download] text in the red box to download the model.

Downloading. With 4G, the download may take some time.

After downloading the model, copy and paste it into the models/Stable-diffusion folder of the current project.
D:\stable-diffusion\openvino\stable-diffusion-webui\models\Stable-diffusion

PS: If you need to enable a new model later, just put it in this path.
More models can be downloaded from the following two websites:
https://civitai.com/
https://www.liblib.art/
Create a Python Virtual Environment
Run the command prompt as an administrator to enter the command prompt window.
Enter the D drive and enter the command line: D:
Enter the stable-diffusion-webui folder and enter the command line: cd D:\stable-diffusion\openvino\stable-diffusion-webui
Create a virtual environment named sd and enter the command line: python -m venv sd

Activate Python Virtual Environment
Run the command prompt as an administrator to enter the command prompt window.
Enter the D drive and enter the command line: D:
Go to the folder D:\stable-diffusion\openvino\stable-diffusion-webui\venv\Scripts and enter the command line: cd D:\stable-diffusion\openvino\stable-diffusion-webui\venv\Scripts.
After entering the folder, enter the command line: activate to activate the environment.

Enter the sd virtual environment.

At this point, we have successfully activated the sd virtual environment. Next, we can start stable-diffusion-webui here.
Start stable-diffusion-webui
Upgrade pip version
In the sd virtual environment, before installing dependent packages, upgrade pip to the latest version to avoid subsequent installation failures due to pip versions.
Command line: python.exe -m pip install --upgrade pip

Start stable-diffusion-webui
When you start stable-diffusion-webui for the first time, the missing dependency packages will be automatically downloaded and installed.
Enter (sd) D:\stable-diffusion\openvino\stable-diffusion-webui> and enter the start project command line: py launch.py --skip-torch-cuda-test --precision full --no-half

PS: Since my computer does not have an NVIDIA graphics card, I need to add "skip PyTorch CUDA test, use full precision, disable half precision" when running launch.py. The command line is as follows: py launch.py --skip-torch-cuda-test --precision full --no-half
It takes a long time to download and install the dependency packages for the first startup. The network speed of Guotou is about 1M/S, and it takes about 1 hour and 20 minutes.
():--->.---
::----(23.0.1)
-24.0---.(2.1)
---------------------------------------- 2.1/2.1940.0/0:00:00
:
:
:23.0.1
-23.0.1:
-23.0.1
-24.0
():--->.----------
:.::---.
. :
:----.: :://127.0.0.1:7860
, .
: (: , : , : ,: ,: ,: ,: ,: ,: ,: ).
[] :----.
::----.
: ... .
(: ,: ,: ,: ,(): ,: ).
Successfully opened stable-diffusion-webui.


Try to generate a graph.
Prompt word: a dog smile.

Switching models can also generate images normally.


But the memory was suddenly increased to 27.7G, which was almost used up.

CPU: 13th Gen Intel(R) Core(TM) i9-13900H, much higher performance.

GPU: Intel(R) Iris(R) Xe Graphics, not used.

At this point, we have completed the installation and operation of stable-diffusion-webui and successfully drawn pictures on the local computer.
However, due to limited hardware conditions and the lack of NVIDIA graphics cards, Vincent Image still takes a long time to run, and this computer still has difficulty running Vincent Image.