stablediffusion吧 关注:27,585贴子:95,305
  • 1回复贴,共1

<求助>遇到整合包现在无法运行的问题

只看楼主收藏回复

遇到的报错:
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.
Time taken: 0.77s
Torch active/reserved: 2854/3208 MiB, Sys VRAM: 5543/6144 MiB (90.22%)
之前运行没有什么问题,现在打开发现出现了这个报错,请求吧里的大佬们如何解决


IP属地:四川1楼2023-12-14 21:25回复
    NansException:在Unet中生成了一个所有NaN的张量。这可能是因为没有足够的精度来表示图片,或者因为您的视频卡不支持半类型。尝试在设置>稳定扩散中设置“向上投射交叉注意层为float 32”选项或使用--no-half命令行参数来修复此问题。使用--disable-nan-check命令行参数禁用此检查。
    耗时:0.77s
    火炬活动/保留:2854/3208 MiB,系统VRAM:5543/6144 MiB(90.22%)


    IP属地:广东2楼2023-12-14 21:35
    回复