Open bihailantian655 opened 10 months ago
I got the same issue yesterday.
The frames were extracted from the video, then the upscale went fine, the face swap went fine, and at the end, just before the interpolation node, error saying it cannot allocate 24Gb, with the same message as above.
It was a small video, so I succeeded by unloaded everything, restarting ComfyUI and launching directly from the Faceswap and it finished successfully.
I just got the same issue! Did you fix it?
You should increase Virtual Memory in your OS
SystemPropertiesAdvanced
I have 64Gb of RAM and 16384Mb of Virtual Memory and never faced this error while processing any videos
You guys can try Evolve branch to check whether this issue is fixed or not
The whole script has such a bad memory management, loads too much into RAM instead of using the performance of e.g. SSD storage or even the proper use of GPU.
I gave up with reactor and wrote our own script. With a 4060 / 16GB and 16GB Ram, we run 4 simultaneous swapping threads, each at 2.5 Frames per second (with restoration and masking) and have a 85% utilization of the GPU and 40% CPU. Besides that there is no limitation for durations of videos anymore because of no RAM issues ...
Time is of essence here, reactor is simply much too slow
The whole script has such a bad memory management, loads too much into RAM instead of using the performance of e.g. SSD storage or even the proper use of GPU.
I gave up with reactor and wrote our own script. With a 4060 / 16GB and 16GB Ram, we run 4 simultaneous swapping threads, each at 2.5 Frames per second (with restoration and masking) and have a 85% utilization of the GPU and 40% CPU. Besides that there is no limitation for durations of videos anymore because of no RAM issues ...
Time is of essence here, reactor is simply much too slow
You can make a PR and improve ReActor instead of complaining, it's an opensource non-commercial app that is still in development stage. Me and the other guys (to whom I am very grateful) develops ReActor in our free time
The whole script has such a bad memory management, loads too much into RAM instead of using the performance of e.g. SSD storage or even the proper use of GPU.
I gave up with reactor and wrote our own script. With a 4060 / 16GB and 16GB Ram, we run 4 simultaneous swapping threads, each at 2.5 Frames per second (with restoration and masking) and have a 85% utilization of the GPU and 40% CPU. Besides that there is no limitation for durations of videos anymore because of no RAM issues ...
Time is of essence here, reactor is simply much too slow
Same issue, can you share your script?
First, confirm
What happened?
during Restoring with GFPGANv1.4.pth the following error occured
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 11.3 GiB for an array with shape (480, 768, 1368, 3) and data type float64
here is the workflow , but the total frame is 480.
if i set the total frame smaller , for exmple 100 no error will occure
Steps to reproduce the problem
r
r
Sysinfo
win11 rtx2080 8g vram, 32g ram
Relevant console log
Additional information
No response