記事ディレクトリ
安定した普及 WebUI
1. インストール
1.1 安定した拡散ウェブUIをダウンロードする
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
# 推荐使用base环境
python3 -m pip install --upgrade pip
1.2 webui.sh を実行する
bash webui.sh -i https://pypi.tuna.tsinghua.edu.cn/simple
初めて行き詰まるのは通常 でInstalling gfpgan
、2 回目に行き詰るのは通常 ですInstalling open_clip
。
行き詰まったり、エラーが発生した場合は、 pip install [package] -i https://pypi.tuna.tsinghua.edu.cn/simple を実行してください。
pip install gfpgan==1.3.8 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install open_clip_torch -i https://pypi.tuna.tsinghua.edu.cn/simple
その後、実行中にbash webui.sh -i https://pypi.tuna.tsinghua.edu.cn/simple
、bash webui.sh が終了するまで上記のプロセスが繰り返されます。
pip install のインストールが成功したにもかかわらず、依然として停止している場合は、インストールされているサードパーティ ライブラリのlaunch.py
バージョンが異なるため、すべてのバージョン番号を削除する必要があります。
venv
実際、stable-diffusion-webui をインストールすると、stable-diffusion-webui が実行される環境となるフォルダーが自動的に作成されますvenv
。
サーバ:
bash webui.sh
地元:
私が使用しているサーバーにはビジュアルインターフェイスがないため、ローカルポートを変換する必要があります。コマンドは次のとおりです。
# 在本地打开 cmd 输入
# ssh -L 7860:localhost:7860 <username>@<server_address>
ssh -L 7860:localhost:7860 scholar@10.211.74.61
# 输入密码后,在本地浏览器输入127.0.0.1:7860 即可成功
アドレスバーに「127.0.0.1:7860」と入力します。
CUDA_VISIBLE_DEVICES=2 python webui.py --listen --enable-insecure-extension-access --port 7860 # 只要不是7860即可;加上--enable-insecure-extension-access就可以用URL安装插件
2. プラグインをインストールする
2.1 コマンドラインインストール
git cloneに直接インストールしますstable-diffusion-webui/extensions
。
cd /data_1/ldw_models/stable-diffusion-webui/
git clone https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git extensions/tagger
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients extensions/aesthetic-gradients
git clone https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor.git extensions/dataset-tag-editor
2.2 拡張機能のインストール
https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients
aesthetic-gradients
https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git
tagger
https://github.com/opparco/stable-diffusion-webui-two-shot.git
https://github.com/opparco/stable-diffusion-webui-composable-lora.git
2.3 よく使用されるプラグイン
参照してください: https://zhuanlan.zhihu.com/p/579538165?utm_id=0
3. 使い方チュートリアル
https://www.bilibili.com/video/BV1Qc411L7v1/
3.1 ページレイアウト
3.3 ショートカットバーの設定
3.3.1 PNG 情報
画像をドラッグすると、右側に画像情報が自動的に生成されます。クリックして、to txt2img
txt2img タブで同じパラメータを取得します。
3.3.2 タグ
画像をドラッグすると、右側に Tag タグが自動的に生成され、プロンプトの作成に役立ちます。