关于 SD异常 NansException: A tensor with all NaNs was produced in Unet. 显卡1660ti 6GB

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.
 
 

装好 SD webui 最新版后,重装xformers

办法是直接添加启动参数:

--reinstall-xformers --xformers

 


添加后直接正常运行 webui-user.bat 即可。

而且每次运行都需要重新装才能正常使用,不清楚原因.

作者:Contra实验编程 https://www.bilibili.com/read/cv24114886/ 出处:bilibili

posted on 2023-08-25 19:36  zxddesk  阅读(5662)  评论(1编辑  收藏  举报

导航