https://dashen.wang/858.html
16xx显卡启动:
pythonpython.exe webui.py --lowvram --precision full --no-half
4G显存显卡启动:
pythonpython.exe webui.py --lowvram
显存6G显卡启动:
pythonpython.exe webui.py --medvram
显存8G及以上显卡启动
pythonpython.exe webui.py
开启局域网共享:
1.修改webui.py
app,local_url,share_url = demo.launch(
share=True, ##修改这里,注释不要,注释不要!注释不要!
server_name="0.0.0.0" if cmd_opts.listen else None,
server_port=cmd_opts.port,
debug=cmd_opts.gradio_debug,
auth=[tuple(cred.split(':')) for cred in cmd_opts.gradio_auth.strip('"').split(',')] if cmd_opts.gradio_auth else None,
inbrowser=cmd_opts.autolaunch,
prevent_thread_lock=True
)
2.启动脚本后添加–share –listen;以16xx显卡为例: