stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Error when running webui.bat
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
The following error occurs when running webui.bat
venv "E:\vm\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 737eb28faca8be2bb996ee0930ec77d1f7ebd939
Installing requirements for Web UI
Launching Web UI with arguments:
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Loading weights [06c50424] from E:\vm\stable-diffusion-webui\models\Stable-diffusion\sd-v1-4-full-ema.ckpt
Global Step: 470000
Applying cross attention optimization (Doggettx).
Model loaded.
Loaded a total of 0 textual inversion embeddings.
Embeddings:
Traceback (most recent call last):
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py", line 193, in proxy_manager_for
manager = self.proxy_manager[proxy] = proxy_from_url(
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\urllib3\poolmanager.py", line 537, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\urllib3\poolmanager.py", line 481, in __init__
raise ProxySchemeUnknown(proxy.scheme)
urllib3.exceptions.ProxySchemeUnknown: Proxy URL had no scheme, should start with http:// or https://
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\vm\stable-diffusion-webui\launch.py", line 206, in <module>
start_webui()
File "E:\vm\stable-diffusion-webui\launch.py", line 201, in start_webui
webui.webui()
File "E:\vm\stable-diffusion-webui\webui.py", line 134, in webui
app, local_url, share_url = demo.launch(
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1104, in launch
requests.get(f"{self.local_url}startup-events")
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "E:\vm\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py", line 414, in send
raise InvalidURL(e, request=request)
requests.exceptions.InvalidURL: Proxy URL had no scheme, should start with http:// or https://
Steps to reproduce the problem
Run webui.bat
What should have happened?
Should start normally, no errors reported
Commit where the problem happens
Commit hash: 737eb28faca8be2bb996ee0930ec77d1f7ebd939
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
No response
Additional information, context and logs
No response
@GOOD-AN Have you tried using other browsers? same issue?, Casue I cannot replicate this issue.
what hardware do you have?
guess the error is that the proxy address format in the global variable is incorrect, Proxy URL had no scheme, should start with http:// or https://
@GOOD-AN Have you tried using other browsers? same issue?, Casue I cannot replicate this issue.
To be precise, the browser hasn't started yet, it should still be initialized?
what hardware do you have?
Hardware? It's just an ordinary laptop.
guess the error is that the proxy address format in the global variable is incorrect, Proxy URL had no scheme, should start with http:// or https://
But I don't have any proxy enabled, and the code I haven't changed.
I have similar error messages when loading in the Command window. The browser is not the issue, it happens when webui-user.bat is run, which opens a Command window. I tried different models, same problem. Something in the code changed in the last 12 hours or so. I run 'git pull' command in webui-user.bat, so it autotragically updated when I started it today. None of the command switches '--medvram', etc, make any difference; I've tried to load with and without them, still same errors.
Command window output:
Already up to date. venv "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: 737eb28faca8be2bb996ee0930ec77d1f7ebd939 Installing requirements for Web UI Launching Web UI with arguments: --listen LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Loading weights [7460a6fa] from C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\models\Stable-diffusion\model.ckpt Error verifying pickled file from C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\models\Stable-diffusion\model.ckpt: Traceback (most recent call last): File "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\modules\safe.py", line 97, in load check_pt(filename) File "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\modules\safe.py", line 81, in check_pt unpickler.load() File "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\venv\lib\site-packages\torch_utils.py", line 138, in _rebuild_tensor_v2 tensor = _rebuild_tensor(storage, storage_offset, size, stride) File "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\venv\lib\site-packages\torch_utils.py", line 134, in rebuild_tensor return t.set(storage._untyped(), storage_offset, size, stride) RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:81] data. DefaultCPUAllocator: not enough memory: you tried to allocate 88473600 bytes.
The file may be malicious, so the program is not going to read it. You can skip this check with --disable-safe-unpickle commandline argument.
Traceback (most recent call last):
File "C:\Users\mick\stable-diffusion-webui\stable-diffusion-webui\launch.py", line 206, in
--disable-safe-unpickle commandline argument doesn't help, still fails with above error messages.
@mickhogan from your logs, your issue is clearly not related to OP's. You ran out of RAM.
It appears so, although it is not clear, to me, why this problem arose at this time, when it had been operating correctly. However, a reboot of Windows cleared the problem and reset whatever was wrong. Now, under identical conditions and prompt, it is working. It remains to be seen if it is a chronic problem.
You may just have some software running and took up your RAM unknowingly. Reboot will close it and it will solve the issue
Ordinary laptop? that's not precise, you must learn a bit more before touching this as it is not meant to be used by n00bs... you need a GPU with at least 2GB VRAM to make it work...
@neoOpus all of his errors come from the requests library. It is fair to say that hardware does not matter here. He will still get the same error if he has not enough vram.
Also, calling people noob just shows how bad you are as a person. We all start from noobs. If you do not want to help, don't.
I'm very sorry, it's true that I didn't check properly and didn't notice that the proxy was set in the user environment variable, so I kept looking in the system environment variable, removed the proxy setting and started successfully. Again, I apologize for my laxity.
@neoOpus all of his errors come from the requests library. It is fair to say that hardware does not matter here. He will still get the same error if he has not enough vram.
Also, calling people noob just shows how bad you are as a person. We all start from noobs. If you do not want to help, don't.
Yeah I am bad because I told someone who is tinkering with AI stuff without even having the minimal computer knowledge and isn't able to answer a simple question about the specs of his machine... he is a n00b and you are another sjw prick.
When I asked I was willing to help but he didn't even do the minimum effort to provide the basic information (CPU, RAM, GPU)...
@neoOpus all of his errors come from the requests library. It is fair to say that hardware does not matter here. He will still get the same error if he has not enough vram. Also, calling people noob just shows how bad you are as a person. We all start from noobs. If you do not want to help, don't.
Yeah I am bad because I told someone who is tinkering with AI stuff without even having the minimal computer knowledge and isn't able to answer a simple question about the specs of his machine... he is a n00b and you are another sjw prick.
When I asked I was willing to help but he didn't even do the minimum effort to provide the basic information (CPU, RAM, GPU)...
He solved his issue by fixing his misconfigured environment variable. You think you will be able to find his issue if he provided hardware specs properly? This just shows your lack of knowledge in OP's issue and in general, lack of experience. Him telling you what his CPU/GPU is would have zero impact on any errors coming out of a networking-based library.
@neoOpus all of his errors come from the requests library. It is fair to say that hardware does not matter here. He will still get the same error if he has not enough vram. Also, calling people noob just shows how bad you are as a person. We all start from noobs. If you do not want to help, don't.
Yeah I am bad because I told someone who is tinkering with AI stuff without even having the minimal computer knowledge and isn't able to answer a simple question about the specs of his machine... he is a n00b and you are another sjw prick.
When I asked I was willing to help but he didn't even do the minimum effort to provide the basic information (CPU, RAM, GPU)...
Uh.... Because I'm speaking from my experience, this is a network library error reporting problem, and it's obvious that a certain setting or configuration is written wrong, and I have no way to link it to the hardware, so when you asked this question, I even wondered for a moment if it was written wrong, so I'm sorry that I can't answer your question very well. So is it now possible to explain why the network library error reporting needs to know the hardware information?
@neoOpus all of his errors come from the requests library. It is fair to say that hardware does not matter here. He will still get the same error if he has not enough vram. Also, calling people noob just shows how bad you are as a person. We all start from noobs. If you do not want to help, don't.
Yeah I am bad because I told someone who is tinkering with AI stuff without even having the minimal computer knowledge and isn't able to answer a simple question about the specs of his machine... he is a n00b and you are another sjw prick. When I asked I was willing to help but he didn't even do the minimum effort to provide the basic information (CPU, RAM, GPU)...
Uh.... Because I'm speaking from my experience, this is a network library error reporting problem, and it's obvious that a certain setting or configuration is written wrong, and I have no way to link it to the hardware, so when you asked this question, I even wondered for a moment if it was written wrong, so I'm sorry that I can't answer your question very well. So is it now possible to explain why the network library error reporting needs to know the hardware information?
I totally agree with you. Please just ignore this toxic guy. Keep it up!
I'm very sorry, it's true that I didn't check properly and didn't notice that the proxy was set in the user environment variable, so I kept looking in the system environment variable, removed the proxy setting and started successfully. Again, I apologize for my laxity.
想请教下,我也遇到了同样的问题,在Clash使用全局代理后,还是出弹出和你一样的弹窗,最后你是怎么解决的啊
I'm very sorry, it's true that I didn't check properly and didn't notice that the proxy was set in the user environment variable, so I kept looking in the system environment variable, removed the proxy setting and started successfully. Again, I apologize for my laxity.
想请教下,我也遇到了同样的问题,在Clash使用全局代理后,还是出弹出和你一样的弹窗,最后你是怎么解决的啊
是这样的,因为我原来使用一些项目在环境变量中设置了http_proxy与https_proxy,忘记删除了,我就是单纯的删除了这两个环境变量,没有开启任何代理。