[Bug]: RuntimeError: Not enough memory, use lower resolution (max approx. 448x448). Need: 0.0GB free, Have:0.0GB free
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I keep getting this error when trying to generate images with a resolution of 512x960. However, in my desktop PC, I don't get this error (there I have an RTX 3060) What can I do? By the way, I've already tried adding --lowvram, but it won't work.
Steps to reproduce the problem
- Just use a laptop with an RTX 3050, it has happened me twice with the same graphics card
What should have happened?
Stable Diffusion should have generated the image
Commit where the problem happens
When I try to generate a vertical image
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
--lowvram --xformers
Additional information, context and logs
No response
By the way, it works perfectly with a resolution of 512x512
Doesn't the laptop version have less VRAM than the desktop one? Some of these 'bug reports' that are user errors or should be asked in the forum section are quite annoying. If you just google:
Is a laptop RTX 3060 same as desktop 3060? The RTX 3060 Laptop chip in this has 3840 CUDA cores, which surprisingly is actually 7% MORE cores than you get in the desktop chip. It's based on the same GA106 die, has the same 192 bit memory bus, although only has 6GB of VRAM compared to the desktop card's 12GB.
Of course the laptop version has less VRAM than the desktop one, but still, it isn't 0 GB. Just in case you didn't know, the RTX 3050 for laptop has 4 GB of VRAM, which should be large enough (even more with the lowvram parameter) to generate a vertical image. This is a bug, because I don't have 0 GB of VRAM. And by the way, I was talking all the time about an RTX 3050 Laptop, not an RTX 3060 Desktop. Thanks for the info, but it has nothing to do with this bug.
what is your ram? maybe your ram is too low, so it uses swap and is causing an issue, when its not freed. you would have to restart the laptop. Close other programs, disable browser hardware acceleration. This has only happened twice?
I have 16 GB of DDR5 at 4800 MHz
No, it has happened many times, I have access to two laptops with the RTX 3050 and every time I try to create a vertical image, this error appears
I also had the same problem as you and my graphics card is RTX3060. but only below 768x512 can work perfectly. I tried all the methods to solve this problem but nothing worked. Now, I solved this problem perfectly after reinstalling the system and redeploying SDwebui
so, reinstall, turn off other programs, connect to power supply. 4gb can do much higher, maybe update your drivers (but keep track of the previous version)
I've already done all of that, I have no idea what is going on 🤔
did you reinstall Windows too?I reinstalled everything, including CUDA and python
Of course the laptop version has less VRAM than the desktop one, but still, it isn't 0 GB. Just in case you didn't know, the RTX 3050 for laptop has 4 GB of VRAM, which should be large enough (even more with the lowvram parameter) to generate a vertical image. This is a bug, because I don't have 0 GB of VRAM. And by the way, I was talking all the time about an RTX 3050 Laptop, not an RTX 3060 Desktop. Thanks for the info, but it has nothing to do with this bug.
That 4 GBs of VRAM is likely the problem. I have a 6GB card and often hit ram limits like that even on lowvram.
did you reinstall Windows too?I reinstalled everything, including CUDA and python
No, I unistalled the entire folder and reinstalled it
Of course the laptop version has less VRAM than the desktop one, but still, it isn't 0 GB. Just in case you didn't know, the RTX 3050 for laptop has 4 GB of VRAM, which should be large enough (even more with the lowvram parameter) to generate a vertical image. This is a bug, because I don't have 0 GB of VRAM. And by the way, I was talking all the time about an RTX 3050 Laptop, not an RTX 3060 Desktop. Thanks for the info, but it has nothing to do with this bug.
That 4 GBs of VRAM is likely the problem. I have a 6GB card and often hit ram limits like that even on lowvram.
Maybe, but still I don't get why there's this error message saying that I have 0 GB of VRAM
@javi22020 everything looks like a simple "not enough vram for the resolution" issue. The error message "Need: 0.0GB free, Have:0.0GB free" is worded in a confusing way, but with the other symptoms in mind i would interpret it as "I need [an extra] 0.0 GB of free VRAM, but you only have 0.0GB of free VRAM" with the 0.0GB for both being a rounding error (anything below 49MB would get rounded to 0.0GB if there's only one decimal place). With that this issue should be closed. There just isn't anything beyond the usual optimisations in the wiki that can be done to give your card more VRAM.
Edit: reference to the wiki is now a link
Ignore everyone lmao. I HAVE A 1050 and can run 768z512 refer to https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Troubleshooting
You JUST HAVE TO DO THIS Edit webui-user.bat modify this line to set COMMANDLINE_ARGS=--medvram
@jajajajasjajjsja could you please test 512×960 (which was the original resolution this issue is about) with xformers enabled? This would be interesting, as the 1050 has the same amount of VRAM (4GiB). Also what OS are you on? But you are right, I should have turned my existing reference to the wiki into a clickable link.
set COMMANDLINE_ARGS=--medvram or --lowvram
I have an an RTX 3050 Laptop, was having this issue, --lowvram worked for me, thanks!
I have an RTX 3060 laptop and was having this issue. --lowvram was helpful, thank you!(^^)
On potato hardware (GTX 950), --medvram generated a 512x512 image, thanks!