stablediffusion吧 关注:37,761贴子:143,185
  • 9回复贴,共1
在试着用一些模型跑图时,比如用dreamshaper 或者 deliberate 这样的模型跑图时,就会出现:
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.
用时:1.4 sec.
A: 2.69 GB, R: 2.81 GB, Sys: 3.8/8 GB (48.1%)
提示这种错误,但是切换到其他的模型,这种错误又没有了。
显卡是RTX3060


IP属地:江苏1楼2024-04-28 12:55回复
    c站或者抱脸下个sdxl vae fp16fix的版本,跑sdxl用这个vae就不会出这个问题了


    IP属地:黑龙江2楼2024-04-28 13:34
    收起回复
      2025-08-27 19:03:39
      广告
      不感兴趣
      开通SVIP免广告


      IP属地:江苏3楼2024-04-28 18:25
      回复


        IP属地:江苏4楼2024-04-28 18:26
        回复
          然后红色圈出来的这几个都没法用


          IP属地:江苏5楼2024-04-28 18:27
          回复
            具体解决方法不知道,只知道出不了图的时候切1.5模型画一张,然后再切回来,就能画了。要不按他后面的提示设置一下试试


            IP属地:湖南来自Android客户端6楼2024-04-29 08:27
            回复
              还有一个,我的电脑用turbo模型的时候,采样器选euler就会崩,换个采样器就没问题。反正我也不懂,就胡乱试了


              IP属地:湖南来自Android客户端7楼2024-04-29 08:30
              回复