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.
译:在Unet中生成了一个包含所有NaN的张量。这可能是因为没有足够的精度来表示图片,或者是因为您的视频卡不支持半类型。尝试在“设置”>“稳定扩散”中设置“向上投射交叉注意力层到float32”选项,或者使用–no-half命令行参数来解决此问题。使用–disable nan-check命令行参数可以禁用此检查。
以上是控制台报错信息。首先尝试信息中提供的两种办法**(如果你只在使用AfterDetailer插件时才出现此报错,先去尝试文章最后的办法):**
- Try setting the “Upcast cross attention layer to float32” option in Settings > Stable Diffusion
可在WebUI的设置里Stable Diffusion栏最下方勾选开启。*需注意开启该选项有几率在出图的最后阶段报type不一致的错误,"type32 type32 type16"字样的,若要解决此报错又需要你反过来关闭Upcast cross attention layer to float32选项。
- 使用 --no-half 命令行参数

最低0.47元/天 解锁文章
1045

被折叠的 条评论
为什么被折叠?



