Can I set low vram usage in controlnet, like in a1111's UI extension? #1177
-
I have only 4GB vram. For an average 1200*800 image generation VRAM usage is on 70% level, but with controlnet it's immediately 100%. As soon as the excess memory gets into the shared video memory, a critical error occurs and the generation stops. Is there any solution for my situation, or it's impossible to use it witg 4GB in ComfyUI? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
you can run ComfyUI with --lowram like this:
Also try increasing your PC's swap file size. |
Beta Was this translation helpful? Give feedback.
-
... you also shouldnt be running 1200*800 images off the cuff with 4gb of RAM. Ideally you need to Run 768x512, then upscale by 2. (credit to Kim2091 for 4x-Ultrasharp) |
Beta Was this translation helpful? Give feedback.
-
what's your workflow? |
Beta Was this translation helpful? Give feedback.
-
This shouldn't be a problem anymore on latest ComfyUI. You can run it without any arguments and controlnets should work even on low vram. |
Beta Was this translation helpful? Give feedback.
ok. that's odd - you shouldn't be having issues at all.
have you tried re-installing or updating ControlNet?