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.
·打开根目录stable-diffusion-webui,找到webui.bat右击打开编辑
在set ERROR_REPORTING=FALSE 下面加入以下一行保存重启
set COMMANDLINE_ARGS=--no-half --disable-nan-check
Error occurred when executing KSampler:
mat1 and mat2 shapes cannot be multiplied (154x2048 and 768x320)
办法:检查用到的controlnet是否是SDXL的