启动NovelAI时提示ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.

NovelAI 启动stable-diffusion-webui出现

ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.

如下问题

image

解决方法:

在set COMMANDLINE_ARGS=后增加参数”share”

set COMMANDLINE_ARGS=--share 

image

- THE END -
版权声明:
转载原创文章请注明,文章出处://kinggoo.com
原文地址:https://kinggoo.com/ai-novelai-share-eq-true.htm
发表评论?

18 条评论。

  1. import os
    os.environ[“no_proxy”] = “localhost,127.0.0.1,::1”

  2. 这个文章必须顶。。

  3. 当有报端口占用时,多数是因为之前启动过,可以通过结束任务把对应的端口关闭掉。
    taskking 杀掉

  4. 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这个参数数量试试,我的参数不一定适合你的。

      我之前也弄出过问题 ,但后来重新在命令行内执行就好了。

  5. 刚好遇到了“ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True.”的问题,和楼主一模一样。加了–share并没有解决耶,请问楼主之后是怎么解决的呢?

  6. 两个-

    --enable-insecure-extension-access
    
    • 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

  7. 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‘ 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 ‘

  8. 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.

回复给 Tscccn ¬
取消回复


此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据