エラー内容
NansException: A tensor with 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: 1 min. 32.7 sec.
下記ファイルをテキストエディタで編集。
\stable-diffusion-webui
└webui-user.bat
「–no-half –disable-nan-check」を追記してください。
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=–no-half –disable-nan-check
call webui.bat
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=–no-half –disable-nan-check
call webui.bat
完了したら、「webui.bat」を実行して再起動。