Solution to Stable Diffusion WebUI not running when connected to VPN (Windows)

How to solve the problem that SD cannot run when VPN is turned on

When we turn on the VPN, we will be unable to generate pictures or do anything else. Are you anxious at this time?

Don't worry, I will explain how to solve it here.

Just like this, the graph cannot be generated after running for a long time, and sometimes various errors will occur .

It's actually very simple, just turn off the VPN. Hahaha! ! !

Of course, it is easiest to turn off the VPN, but what if you have to turn on the VPN and start SD?

At this time, we only need to add a very simple configuration to the webui-user.bat folder to ignore the VPN and generate graphics and text.

That is --no-gradio-queue.

What should be done specifically?

There is a webui-user.bat file under our Stable Diffusion WebUI project directory. When we open the file, we can see the following:

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

call webui.bat

This is the original unconfigured state.

We only need to add --no-gradio-queue after set COMMANDLINE_ARGS= to run the SD graph in VPN state. Like this:

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--no-gradio-queue

call webui.bat

Isn't it very simple?

Remember to restart the project after the modification is completed.

Guess you like

Origin blog.csdn.net/weixin_41529012/article/details/132685485