当前位置:   article > 正文

stable-diffusion-webui AutoDL 算力平台后台启动命令_when localhost is not accessible, a shareable link

when localhost is not accessible, a shareable link must be created. please s

AutoDL官网:AutoDL算力云 | 弹性、好用、省钱。租GPU就上AutoDL

AutoDL 算力平台后台启动命令

COMMANDLINE_ARGS="--listen --port 6006" REQS_FILE="requirements.txt" nohup python launch.py >> logs_launch.log 2>&1 &

备注:
COMMANDLINE_ARGS="--share --gradio-debug --port 6006"   

要改成
COMMANDLINE_ARGS="--listen --port 6006" 

不然服务启动的是临时会话,72小时后服务可能会过期!

常见问题:

问题1:

ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

需要执行如下命令:

 export no_proxy=localhost,127.0.0.1

问题2:

安装中文界面UI插件报错

AssertionError: extension access disabled because of command line flags

解决方法:

在启动命令里增加: --enable-insecure-extension-access

如下:

COMMANDLINE_ARGS="--enable-insecure-extension-access --listen --port 6006" REQS_FILE="requirements.txt" nohup python launch.py >> logs_launch.log 2>&1 &

  

学术资源加速

声明:限于国内网络环境和跨境网络速度慢的问题,以下为方便用户使用相关资源提供的加速代理,不承诺稳定性保证。此外如遭遇恶意攻击等,将随时停止该加速服务

以下为可以加速访问的学术资源地址:

  • github.com
  • githubusercontent.com
  • githubassets.com
  • huggingface.co

使用方法

设置学术加速,不再区分不同地区

source /etc/network_turbo

取消学术加速,如果不再需要建议关闭学术加速,因为该加速可能对正常网络造成一定影响

unset http_proxy && unset https_proxy

速度对比

未使用加速:

image-20220902184957292

使用加速:

image-20220902185038755

referrence link: 学术资源加速 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/239324
推荐阅读
相关标签
  

闽ICP备14008679号