cubiq / ComfyUI_InstantID

Apache License 2.0
945 stars 50 forks source link

The used vram is high, any way to optimize the vram usage? #109

Open time-river opened 3 months ago

time-river commented 3 months ago

Compared with optimized ComfyUI-InstantID project which use about 10GiB VRAM, it's a little high. Here is my branch patched all of the optimizing ways https://github.com/time-river/ComfyUI-InstantID/commits/optim . It seems that IPAttnProcessor2_0 reduces the most vram usage. Any idea can be provided from it?

I can't understand those code...

cubiq commented 3 months ago

they are completely different code bases. I see they also use onedif.

I'll see what we can do but at the moment this is pretty barebone