NovelAI 启动stable-diffusion-webui出现
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.
如下问题
解决方法:
在set COMMANDLINE_ARGS=后增加参数”share”
set COMMANDLINE_ARGS=--share
- THE END -
NovelAI 启动stable-diffusion-webui出现
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.
如下问题
解决方法:
在set COMMANDLINE_ARGS=后增加参数”share”
set COMMANDLINE_ARGS=--share
import os
os.environ[“no_proxy”] = “localhost,127.0.0.1,::1”
这个文章必须顶。。
当有报端口占用时,多数是因为之前启动过,可以通过结束任务把对应的端口关闭掉。
taskking 杀掉
Traceback (most recent call last):
File “/Users/zhangwei/stable-diffusion-webui/launch.py”, line 356, in
start()
File “/Users/zhangwei/stable-diffusion-webui/launch.py”, line 351, in start
webui.webui()
File “/Users/zhangwei/stable-diffusion-webui/webui.py”, line 257, in webui
app, local_url, share_url = shared.demo.launch(
File “/Users/zhangwei/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py”, line 1514, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.
以上是我出现的问题,在webui-user.bat中输入了:
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=–xformers –deepdanbooru –no-half-vae –share
call webui.bat
后运行依然不行,请大神指教 😛
恩,你启动 是在命令行内启动的webui-user.bat这个文件吧。
另外 你可以试试增减COMMANDLINE_ARGS这个参数数量试试,我的参数不一定适合你的。
我之前也弄出过问题 ,但后来重新在命令行内执行就好了。
恩,你启动 是在命令行内启动的webui-user.bat这个文件吧。
另外 你可以试试增减COMMANDLINE_ARGS这个参数数量试试,我的参数不一定适合你的。
我之前也弄出过问题 ,但后来重新在命令行内执行就好了。
恩,你启动 是在命令行内启动的webui-user.bat这个文件吧。
另外 你可以试试增减COMMANDLINE_ARGS这个参数数量试试,我的参数不一定适合你的。
我之前也弄出过问题 ,但后来重新在命令行内执行就好了。
刚好遇到了“ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.”的问题,和楼主一模一样。加了–share并没有解决耶,请问楼主之后是怎么解决的呢?
需要在webui-user.bat这个脚本内加入参数,加载webui.bat是不管用的
抱歉是文章内容转译了,忘记给提示了。
需要在share前面加两个“-”才行
两个-
workspace/stable-diffusion-webui/modules/ui_extensions.py”, line 22, in check_access
assert not shared.cmd_opts.disable_extension_access, “extension access disabled because of command line flags”
AssertionError: extension access disabled because of command line flags
proc.wait(**kwargs)
File “~/workspace/stable-diffusion-webui/venv/lib/python3.9/site-packages/git/cmd.py”, line 502, in wait
raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd(‘git’) failed due to: exit code(128)
cmdline: git clone -v https://github.com/civitai/sd_civitai_extension /workspace/stable-diffusion-webui/tmp/sd_civitai_extension
stderr: ‘Cloning into ‘~/workspace/stable-diffusion-webui/tmp/sd_civitai_extension ‘…
fatal: protocol ‘ https’ is not supported
Applying cross attention optimization (InvokeAI).
Textual inversion embeddings loaded(0):
Model loaded in 2.3s (create model: 0.6s, apply weights to model: 0.5s, apply half(): 0.5s, move model to device: 0.4s).
Running on local URL: http://127.0.0.1:7860
0%| | 0/20 [00:00, ?it/s]loc("mps_add"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/0aa643d0-625a-11ed-b319-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":228:0)): error: input types 'tensor<2x1280xf32>‘ and ‘tensor<*xf16>‘ are not broadcast compatible
LLVM ERROR: Failed to infer result type(s).
[1] 24944 abort ./webui.sh –share –skip-torch-cuda-test
/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn(‘resource_tracker: There appear to be %d ‘
Traceback (most recent call last):
File “/workspace/stable-diffusion-webui/launch.py”, line 361, in
start()
File “/workspace/stable-diffusion-webui/launch.py”, line 356, in start
webui.webui()
File “workspace/stable-diffusion-webui/webui.py”, line 218, in webui
app, local_url, share_url = shared.demo.launch(
File “workspace/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/blocks.py”, line 1418, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.
2个-