Running Stable Diffusion Forge locally on a PC without using a GPU.

この記事は約3分で読めます。
スポンサーリンク

Things I want to do

Stable Diffusion Forge typically requires an Nvidia GPU (such as GeForce).

This guide explains how to run Stable Diffusion Forge using only the CPU on a PC without an NVidia GPU.

スポンサーリンク

Environment setup

download

The following page will open.

GitHub - lllyasviel/stable-diffusion-webui-forge
Contribute to lllyasviel/stable-diffusion-webui-forge development by creating an account on GitHub.

Scroll down the page to find the ‘Installing Forge’ section, and click on the recommended binary to download it.

Development

Extract the downloaded zip file to a folder of your choice.

bat modification

Open the following file with a text editor such as Notepad.

webui¥webui-user.bat

Modify the following line.

set COMMANDLINE_ARGS=

After correction

set COMMANDLINE_ARGS=--always-cpu  --skip-torch-cuda-test  --no-half --opt-sub-quad-attention --upcast-sampling --opt-sdp-attention

This completes the environment setup.

–always-cpu –skip-torch-cuda-test is required, but please adjust the others as needed.

Model Installation

It appears that stable-diffusion-webui-forge does not have the models installed initially.

Install the model by following the instructions in the article below.

スポンサーリンク

execution

Run the run.bat file located in the extracted folder.

If you encounter the following error during execution (processing will continue), execute the `git config~` command displayed. This error may reappear. If it appears again, execute the command again. (The folder path in the argument should have changed.)

If your browser launches and the GUI is displayed as shown below, then it was successful.

スポンサーリンク

Result

I was able to create the image by entering the prompts in the displayed GUI and clicking Generate.

コメント

タイトルとURLをコピーしました