2023年6月17日 星期六

紀錄一下自己 Stable Diffusion web UI 的參數

--medvram --opt-split-attention --enable-insecure-extension-access  --skip-torch-cuda-test --no-half --share --listen

分別是

參數 目的
medvram 減少 VRam 的使用
opt-split-attention
enable-insecure-extension-access 強制開啟擴充功能
skip-torch-cuda-test 因為我沒有 GPU,所以加此參數
no-half
share 讓你的 SD 公開在 gradio.live 上。
非必要,這個真的只是加好玩的
listen類似 share,但是是以自己電腦公開。簡單說,假設你的電腦 IP 是 192.168.1.100,其他人可以去 http://192.168.1.100:7860 使用你的 Stable Diffusion。
比 gradio.live 好的一點是 gradio.live 有限制時間(好像是 1 ~ 2 天),過了這時間,那個網址就會失效,自己 IP 則不會有這問題。

參考資料

Ivon, (2023, May 5). 命令列引數. Ivonblog. https://ivonblog.com/posts/stable-diffusion-webui-manuals/installation/command-line-arguments-and-settings/

沒有留言:

張貼留言