关于 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   zxddesk  阅读(6565)  评论(1编辑  收藏  举报

相关博文:
阅读排行:
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示