インストール

画像生成AI「Stable Diffusion」を4GBのGPUでも動作OK&自分の絵柄を学習させるなどいろいろな機能を簡単にGoogle ColaboやWindowsで動かせる決定版「Stable Diffusion web UI(AUTOMATIC1111版)」インストール方法まとめ - GIGAZINE

上記URLを参考に自作PCへ必要なものをインストールした。

StableDiffusion WebUI 各項目の意味まとめ | Code Wizardry

インストールしたモデル

使用方法

d:¥stable-diffusion-webui 配下にある webui.bat を実行してばらくすると、 http://127.0.0.1:7860 から使用できる。

メモ

PromptHeroなどのサンプラーは以下のように読み替える

  • k_euler_ancestral -> Euler a
  • k_euler -> Euler
  • k_lms -> LMS
  • plms -> PLMS
  • ddim -> DDIM

発生したエラー

その1

NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

Settings - Stable Diffusion - Upcast cross attention layer to float32をチェックしたら解消した。

その2 Loraのロードで失敗する

UmiAI: No tags found in wildcard file "lora:OldFish_2348V12:1" or file does not exist

extensions\UnivAICharGenを削除