{"id":17755,"date":"2024-11-08T21:50:27","date_gmt":"2024-11-08T13:50:27","guid":{"rendered":"https:\/\/www.bookcard.net\/wordpress\/?p=17755"},"modified":"2024-12-27T23:10:57","modified_gmt":"2024-12-27T15:10:57","slug":"stable_diffusion_no_half","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/stable_diffusion_no_half\/","title":{"rendered":"Stable Diffusion\u986f\u5361\u543e\u652f\u6301\u534a\u7cbe\u5ea6\u6d6e\u9ede\u6578"},"content":{"rendered":"<p>\u300envidia 2080ti\u300f\u543e\u652f\u6301\u534a\u7cbe\u5ea6\u985e\u578b, \u65e9\u77e5\u8cb7\u300envidia 3090ti\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">\u00a0\u00a0 modules.devices.NansException: A tensor with NaNs was produced in Unet. This could be either because there&#8217;s not enough precision to represent the picture, or because your video card does not support half type. Try setting the &#8220;Upcast cross attention layer to float32&#8221; option in Settings &gt; Stable Diffusion or using the &#8211;no-half commandline argument to fix this. Use &#8211;disable-nan-check commandline argument to disable this check.<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">A tensor with all NaNs was produced in VAE.<\/p>\n<p>Web UI will now convert VAE into 32-bit float and retry.<\/p>\n<p>To disable this behavior, disable the &#8216;Automatically revert VAE to 32-bit floats&#8217; setting.<\/p>\n<p>To always start with 32-bit VAE, use &#8211;no-half-vae commandline flag.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li>\ud84b\udd07\u884c\u300ewebui-user.bat\u300f\u8457\u300eStable Diffusion webui\u300f<\/li>\n<li>\u64b3\u300eSettings\u300f-&gt;\u300eStable Diffusion\u300f<\/li>\n<li>\u52fe\u300eUpcast cross attention layer to float32\u300f<\/li>\n<li>\u64b3\u300eApply settings\u300f\u61c9\u7528\u8a2d\u5b9a<\/li>\n<li>\u64b3\u300eReload UI\u300f\u91cd\u555f\u754c\u9762<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u53e6\u58f9\u689d\u6a4b\u4fc2\u52a0\u5165\u547d\u4ee4\u884c\u53c3\u6578<\/p>\n<ol start=\"6\">\n<li>\u7de8\u7ddd\u300eC:\\stable-diffusion-webui\\webui-user.bat\u300f<\/li>\n<li>\u4fc2\u547d\u4ee4\u884c\u53c3\u6578\u300eCOMMANDLINE_ARGS\u300f\u52a0\u5165\u300e&#8211;no-half\u300f\u5187\u534a\u7cbe\u5ea6\u985e\u578b, -\u300e-no-half-vae\u300f\u300e&#8211;disable-nan-check\u300f\u7981nan\u6aa2\u9a57.<\/li>\n<\/ol>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">webui-user.bat<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">set COMMANDLINE_ARGS= &#8211;no-half\u00a0 &#8211;no-half-vae \u00a0&#8211;disable-nan-check<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"189\">&#8211;no-half-vae<\/td>\n<td width=\"364\">\u543e\u5c07VAE\u6a21\u578b\u5207\u63db\u621016bit\u6d6e\u9ede\u6578<\/td>\n<\/tr>\n<tr>\n<td width=\"189\">&#8211;no-half<\/td>\n<td width=\"364\">\u543e\u5c07\u6a21\u578b\u5207\u63db\u621016bit\u6d6e\u9ede\u6578<\/td>\n<\/tr>\n<tr>\n<td width=\"189\">&#8211;disable-nan-check<\/td>\n<td width=\"364\">\u543e\u6aa2\u67e5\u751f\u6210\u5716\u50cf\u6f5b\u5728\u7a7a\u9593\u662f\u5426\u5305\u542bnan\u503c,\u4fc2\u6301\u7e8c\u96c6\u6210\u4e2d\u904b\u884c\u6642\u7121\u9700\u6aa2\u67e5\u9ede<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300envidia 2080ti\u300f\u543e\u652f\u6301\u534a\u7cbe\u5ea6\u985e\u578b, \u65e9\u77e5\u8cb7\u300envidia 3090ti\u300f \u00a0\u00a0 modules. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/stable_diffusion_no_half\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">Stable Diffusion\u986f\u5361\u543e\u652f\u6301\u534a\u7cbe\u5ea6\u6d6e\u9ede\u6578<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[268],"tags":[269],"class_list":["post-17755","post","type-post","status-publish","format-standard","hentry","category-openai","tag-ai","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=17755"}],"version-history":[{"count":2,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17755\/revisions"}],"predecessor-version":[{"id":17831,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17755\/revisions\/17831"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=17755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=17755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=17755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}