Tips/GenerativeAI/Stable Diffusion WebUI のバックアップ差分(No.12)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#contents
----
* 概要 [#ff9346f0]
- StableDiffusionをローカル実行できる
- 最新の機能/拡張なども積極的に取り込まれている

* 導入 [#e9b7bfe2]
- dockerリポジトリのclone
#geshi(bash){{
git clone https://github.com/AbdBarho/stable-diffusion-webui-docker.git
}}

- 起動オプションの変更

-- docker-compose.yml
#geshi{{
  auto: &automatic
    <<: *base_service
    profiles: ["auto"]
    build: ./services/AUTOMATIC1111
    image: sd-auto:51
    environment:
      - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api <追加起動オプション>
      <追加オプション>
}}

-- 追加起動オプション
|オプション|概要|h
|--opt-sdp-attention||
|--opt-sdp-no-mem-attention||
|--xformers|xformersライブラリを使用する&br;再現性を犠牲に高速化&メモリ消費を低減できる|
|--xformers-flash-attention|promptの選別を行い、重要度が低いものを除外する&br;再現性が改善し更に高速化&メモリ消費を低減できる|
|--medvram|若干遅くなるがVRAM使用率を下げる&br;モデルをcond,1st-stage,unetの3つに分割する。&br;常に1つだけをVRAM上にロードし、それ以外はRAMに退避し省メモリ化する|
|--lowvram|遅くなるが更にVRAM使用率を下げる&br;--medvramに加えて、unetをさらに細かく分割する|
|--theme dark|UIテーマをダークテーマにする|

-- 追加オプション
|オプション|概要|h
|- TZ=Asia/Tokyo|ログやファイル名のタイムゾーンを日本時刻にする|

- dockerイメージのビルド
#geshi(bash){{
docker compose --profile download up --build
}}

- dockerイメージの起動
#geshi(bash){{
docker compose --profile auto up --build
}}

- アクセス
http://localhost:7860 にアクセスする

** 設定メモ [#s39bac97]

** 参照リンク [#d88e8a86]
- [[stable-diffusion-webui>https://github.com/AUTOMATIC1111/stable-diffusion-webui]]
- [[stable-diffusion-webui>https://github.com/AUTOMATIC1111/stable-diffusion-webui]] - 総本山
--[[Command Line Arguments and Settings>https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings]]
- [[stable-diffusion-webui-docker>https://github.com/AbdBarho/stable-diffusion-webui-docker]]
- [[Stable Diffusion WebUI メモリ削減&高速化(VRAM6GB環境) >https://note.com/runo0044/n/n395e6ac18e09]]
* 拡張機能 [#j528e3b3]

** 一覧 [#r33ac7b3]
|名称|概要|解説|h
|[[Config-Presets>https://github.com/Zyin055/Config-Presets.git]]|設定のプリセットを保存/読込できるようになる||
|[[Cozy-Nest>https://github.com/Nevysha/Cozy-Nest.git]]|webuiのUIとしての見た目を整理する||
|[[a1111-sd-webui-tagcomplete>https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git]]|Danbooruのタグ情報を元にPrompt入力時にオートコンプリート表示されるようになる||
|[[sd-webui-3d-open-pose-editor>https://github.com/nonnonstop/sd-webui-3d-open-pose-editor.git]]|3D Openpose Editorをwebui上で使えるようになる||
|[[sd-webui-bilingual-localization>https://github.com/journey-ad/sd-webui-bilingual-localization.git]]|webui上の文字列を原文併記で翻訳する||
|[[sd-webui-controlnet>https://github.com/Mikubill/sd-webui-controlnet.git]]|人物の姿勢を指示するControlNetを利用して画像生成できるようにする||
|[[sd-webui-enable-checker>https://github.com/shirayu/sd-webui-enable-checker.git]]|拡張機能の有効/無効状態を色分け表示する||
|[[sd-webui-gelbooru-prompt>https://github.com/antis0007/sd-webui-gelbooru-prompt.git]]|Gelbooruの画像タグを自動取得できる||
|[[sd-webui-infinite-image-browsing>https://github.com/zanllp/sd-webui-infinite-image-browsing.git]]|高機能な画像ブラウザ&マネージャー||
|[[sd-webui-openpose-editor>https://github.com/huchenlei/sd-webui-openpose-editor.git]]|ControlNet拡張機能に統合されるOpenPoseEditor||
|[[stable-diffusion-webui-depthmap-script>https://github.com/thygate/stable-diffusion-webui-depthmap-script]]|深度マップ機能を追加する||
|[[stable-diffusion-webui-localization-ja_JP>https://github.com/AI-Creators-Society/stable-diffusion-webui-localization-ja_JP]]|日本語訳用言語ファイル||
|[[stable-diffusion-webui-text2prompt>https://github.com/toshiaki1729/stable-diffusion-webui-text2prompt.git]]|単語を入力すると連想されるPromptを予測する||
** 削除方法 [#u92e2450]
+ Extention->Installed から拡張機能のチェックボックスをオフで無効化
+ stable-diffusion-webui-docker\data\config\auto\extensions\ 内の拡張機能のディレクトリを削除
* 使い方 [#oc18e0ff]
* Tips [#jefd1053]
* 参考リンク [#l7343052]