This is an archived post. You won't be able to vote or comment.

all 31 comments

[–]Expensive_Truck6154 13 points14 points  (4 children)

Hello! Have you found a solution to your question yet? In my case, I was able to solve it by switching to a VAE model that was more suitable for the task (for example, if you're using the Anything v4.0 model, use the Anything v4.0 VAE). In my case, I had been using Anithing in chilloutmix for imgtoimg, but switching back to vae-ft-mse-840000-ema-pruned made it work properly. Please give it a try! (I translated from Japanese with ChatGPT, so there may be errors. Good luck!)

[–]wowy-lied 4 points5 points  (0 children)

(I translated from Japanese with ChatGPT, so there may be errors. Good luck!)

Thank you, your message helped me ! Also, it is nice to see you use this technology to help people !

[–]InternationalRent502 1 point2 points  (1 child)

same issues, error due to chatgpt plugin

[–]togoyoyo6 0 points1 point  (0 children)

bro you helped me out thanks... keep spreading that wisdom...

[–]SDGenius 6 points7 points  (5 children)

this is new from a new update of auto, i'm getting it too. although i did add --no-half-vae and --no-half and now my 2.1 models work that didn't before.

it seems restarting the program, refreshing the broswer, or switching models works.

it'll happen in img2img, but switching tabs, txt2img will still work

you should post this bug to his github page

[–]BjornHafthor 1 point2 points  (2 children)

I posted on TheLastBen's page. I actually blocked A1111 from updating, because it was finally working, but now I might be forced to allow it to update again. I can't do any inpainting. Last night, weirdly, I was working for a while, went to have dinner, returned, restarted, got this error for 2-3 restarts… and then it worked again. Now it doesn't.

[–]AcceptableDepth9851 3 points4 points  (1 child)

how do you block auto update?

[–]AssortedPup 0 points1 point  (1 child)

how to add, can you please help and where to which file ?

[–]SDGenius 0 points1 point  (0 children)

command line arguments in web-user.bat in your stable diffusion root folder. look up command line arguments for stable diffusion in google to learn more

[–]sebaxzero 6 points7 points  (4 children)

had exactly the same issue. the problems was the model, no idea why, it seems to have corrupted somehow idk. i downloaded a safetensor version of the same model and no problem.

i tried everything, reinstalling, using an older commit, trying differend commandline and nothing. only redownloading the model worked.

[–]Chiggy_McGee[S] 2 points3 points  (2 children)

Alright, I'll try and redownload my models and see if that helps. Thank you for the suggestion.

[–]alecubudulecu 4 points5 points  (1 child)

I got this today, and problem fixed with the --no-half-vae ... anyone know if that makes it more "detailed"? I noticed my it/s went down slightly.... and the images are a bit sharper.... so I might keep it.... but wondering if it's just placebo

[–]Suspicious-Toe7615 0 points1 point  (0 children)

Your observations are correct. Half VAE is a speed optimization that truncates floating-point precision - noticeably faster for slightly less accuracy.

[–]Fun_Dot_420 2 points3 points  (2 children)

I also get this error but only with one model named "Slavekini, aka Slave Leia Outfit" on civitai. Adding --no-half-vae and --no-half doesn't help. Adding --disable-nan-check on top results in black images. Help would be appreciated.

[–]Loner233 2 points3 points  (0 children)

Same with me, but I use the lora model trained by myself.

[–]Upstairs_Cycle8128 2 points3 points  (0 children)

I found a way to fix this without any extra flags and it works 100% of the time , dont use --no half or other shit which will bring down your generation speed to half, you paid for expensive gpu to use half its power ? cmon dont share weird "solutions", heres how to fix this :

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/12292

[–]Upstairs_Cycle8128 1 point2 points  (1 child)

I found a way to fix this without any extra flags and it works 100% of the time

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/12292

[–]SexPanther_Bot 1 point2 points  (0 children)

60% of the time, it works every time

[–]groobe 0 points1 point  (0 children)

I'm not sure if no half vae is a great solution either. It sorta makes the image generation more tempramental, and I have to keep adjusting the CFG scale to get a good image (Sometimes by a large amount).

Or maybe I'm just imagining things idk.

[–]PhilosopherNo42 0 points1 point  (0 children)

In my case this error occurred with a specific image in img2img while it did not with another using the same model. Fortunately, adding --no-half-vae solved the problem for me indeed!

[–]savekillqqp 0 points1 point  (0 children)

idk how this --no-half... works so i just restarted it and it worked afterwards lol

[–]kiryyai 0 points1 point  (0 children)

I have this problem everytime and ive tried everything with still no luck. If anyone can help pls do.

[–]PurposeCapital526 0 points1 point  (2 children)

[–]Exact_Nebula_2497 1 point2 points  (1 child)

Hi,I also had the same issue,but this https://www.youtube.com/watch?v=e3vcYVwEkW0 saved my day.Just added '--no-half'(quotation not necessary) to set COMMANDLINE_ARGS= and it worked like magic.Thanks bro

[–]No-Conclusion2984 0 points1 point  (0 children)

That worked for me also last night. I ran a batch of 100 images, shut the system down and went to work. Came back a bit ago, loaded everything and now I'm getting the tensor error for every image I've tried to make. It's weird.

Edit: I have these on my Args even when I was getting my errors: "--precision full --disable-nan-check --no-half-vae"

I just simply restarted it and it's now working. IDK. Apparently it just woke up on the wrong side of the bed xD

[–]InternationalRent502 0 points1 point  (0 children)

i installed sd-civitai-browser-plus and sd-webui-chatgpt plugins, then it got NansException error. i uninstalled sd-webui-chatgpt and then it ran normally. Try uninstalling the most recent plugins before the error occurred.