modules.devices.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. のエラーの解決方法
「Stable Diffusionで『modules.devices.NansException: A tensor with NaNs was produced in Unet』エラーが発生した場合の対処法を解説。エラーメッセージは、画像生成中に数値精度の問題やGPUの対応不足が原因で発生することがあります。この記事では、エラーを解決するための具体的な手順を紹介。『Upcast cross attention layer to float32』設定方法について詳しく説明します。