Comfy-Org / Comfy-Org/ComfyUI

[BUG] I think i got a heavy memory leak (RAM) after rendering

Open
#2,873 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

i am getting this out of nowhere. I was rendering for hours without a problem.

**My ram usage locks at round 10gb and doesn't not drop after rendering an animation with animate diff v2, SD 1.5 , Controlnet, ipadapter
No matter what i do the ram usage stay exactly at that number and it wont move till i close the CMD.**

I tried to update comfyui and also the costum nodes and restart the pc but id didn't fix the problem. I also tried with other workflows.

I am using Windows 10 with a Nvidia gpu and i am pretty sure my Ram cards are Kingstones, in case is relevant.

Any help would be huge as right now i am kinda stuck.

I attached the workflow file as well
THX!

this screenshot was taken after rendering an animation and then loading a default workflow in comfyui. As you can see the RAM is been used also with a blank workflow and nothing rendering or processing.
![Screenshot 2024-02-23 011834](https://github.com/comfyanonymous/ComfyUI/assets/113861865/08fa53ee-ac37-4c47-b73b-63d81c2d9f6e)

![Screenshot 2024-02-23 012439](https://github.com/comfyanonymous/ComfyUI/assets/113861865/660926f4-c64f-4db5-93a3-10167dca6f1f)

[workflow.json](https://github.com/comfyanonymous/ComfyUI/files/14380643/workflow.json)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.