StableDiffusion 不支持半精度not support half type 报错的解决办法

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插件时才出现此报错,先去尝试文章最后的办法):**

  1. 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选项。

  1. 使用 --no-half 命令行参数
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

赤胜骄阳

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值