当前位置: 代码网 > it编程>操作系统>苹果Mac > stable-diffusion-webui AutoDL 算力平台后台启动命令

stable-diffusion-webui AutoDL 算力平台后台启动命令

2024年08月02日 苹果Mac 我要评论
stable-diffusion-webui AutoDL 算力平台后台启动命令、学术资源加速

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: 学术资源加速 

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com