ComfyUI_InstantID
ComfyUI_InstantID copied to clipboard
Out of memory where I use cuda as InstantID Face Analysis
InstantID Face Analysis: CUDA
logs
torch.cuda.OutOfMemoryError: Allocation on device 0 would exceed allowed memory. (out of memory)
Currently allocated : 10.15 GiB
Requested : 60.00 MiB
Device limit : 24.00 GiB
Free (according to CUDA): 12.45 GiB
PyTorch limit (set by user-supplied memory fraction)
: 17179869184.00 GiB
I think my RTX3090 (24G) is enough to run with cuda. But change A model to B model, it failed.
My advice: I think it maybe optimize the GPU memory management.
FYI
depends on the wokflow, the above message without context doesn't help much. The face analysis should be performed on the CPU anyway.