ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

[Feature Request] ControlNet lowvram

Open jn-jairo opened this issue 1 year ago • 3 comments

The Mikubill/sd-webui-controlnet has a nice lowvram optimization, I can run it on stable-diffusion-webui in my 2GB GPU, but I cannot run the ControlNet from here because I get an out of memory error.

I tried to understand how it works to make that optimization in this repo, but I guess I'm not smart enough for that, I know it keeps things on cpu and load to gpu only when needed and send back to cpu after used, but I couldn't figure out how to make it in this repo.

It would be nice if someone smart like you could add this optimization here 😁

jn-jairo avatar Mar 15 '23 02:03 jn-jairo

Having a lowvram mode for controlnet would be amazing as I am about 250MB short at worst when trying to run controlnet.

teldon avatar Mar 16 '23 15:03 teldon

I tried the t2i-adapter with the models from https://huggingface.co/webui/ControlNet-modules-safetensors and it works on my GPU, so I'll use t2i-adapter from now on, it looks like the better option for my lack of vram.

jn-jairo avatar Mar 19 '23 22:03 jn-jairo

I fixed some controlnet vram related issue a few days ago so your OOM error might be fixed.

comfyanonymous avatar Mar 22 '23 03:03 comfyanonymous