stable diffusion webui (AUTOMATIC1111) 色々やってみる

WebUI日本語化

こちらのページをそのまま真似すれば大丈夫でした。

画像で丁寧解説!WebUI(1111版)を日本語化する最も簡単な方法:ブラウザ上で操作完結!! | 経済的生活日誌

  1. Extensions
  2. Available
  3. https://raw.githubusercontent.com/wiki/AUTOMATIC1111/stable-diffusion-webui/Extensions-index.md
  4. localizationチェック外す
  5. ja_JP Localizationlocalization - Install
  6. Settings
  7. Localization (requires restart)
  8. ja_JP
  9. Apply settings
  10. 再起動

NansException

ネットで落ちてた呪文をそのまま入れてみたらエラーが。

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.

Time taken: 経過時間 0.34sTorch active/reserved: 3168/3686 MiB, Sys VRAM: 3850/12045 MiB (31.96%) 

メモ : AI生成の演算中にNanエラーが起きたら | Nya Dimension Lab.

  1. Settings
  2. Stable Diffusion
  3. Upcast cross attention layer to float32
  4. Apply settings

が、変わらず。では後半の

using the --no-half commandline argument

をやってみます。

$vi ~/stable-diffusion-webui/webui-user.sh 
export COMMANDLINE_ARGS="--listen --no-half"

後ろに追加して再起動

がっ……駄目っ……! 

NansException: A tensor with all NaNs was produced in Unet. Use --disable-nan-check commandline argument to disable this check.

 チェック外してみろって言ってるけど
問題を見てみぬふりするだけなんじゃないか感がありますねえ。

やってみる。

$vi ~/stable-diffusion-webui/webui-user.sh

export COMMANDLINE_ARGS="--listen --no-half --disable-nan-check"

エラーにはならなくなったけど、真っ黒な画像が出るだけ。
dogとだけ入れてるので難しいことやらせてないのに。

なんとなくモデル切り替えてみたらなおりました。
そしてどのモデルにしてもちゃんと動く。
なんだったんだ・・・。

色々やる時間がなくなってきたのでまたこんど。

コメント