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.
时间: 2024-04-19 16:24:20 浏览: 372
win10 x64 系统中tensorflow遇到ImportError: Could not find ‘cudart64_100.dll’错误解决方法之一
这个错误是由于在Unet中生成了一个包含NaN(Not a Number)的张量。这可能是因为表示图像的精度不足,或者您的显卡不支持half类型。您可以尝试在设置中将"Upcast cross attention layer to float32"选项设置为float32,或者使用--no-half命令行参数来解决此问题。如果要禁用此检查,请使用--disable-nan-check命令行参数。
阅读全文