Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any effective methods to clean RAM ? #3308

Closed
GeLi1989 opened this issue Apr 20, 2024 · 3 comments
Closed

Is there any effective methods to clean RAM ? #3308

GeLi1989 opened this issue Apr 20, 2024 · 3 comments

Comments

@GeLi1989
Copy link

May I ask help, I used the/free command

RAM memory seems to have not been effectively cleared. And VRAM has been effectively cleaned up.

Do I have any effective methods to clean RAM.
It accumulates higher and higher, as I start the comfyui service for a longer time

################
json_data = {
"unload_models": True,
"free_memory": True
}

@routes.post("/free")
async def post_free(request):
json_data = await request.json()
unload_models = json_data.get("unload_models", False)
free_memory = json_data.get("free_memory", False)
if unload_models:
self.prompt_queue.set_flag("unload_models", unload_models)
if free_memory:
self.prompt_queue.set_flag("free_memory", free_memory)
return web.Response(status=200)

@viebrix
Copy link

viebrix commented Jun 11, 2024

I have the suspect that it has something to do with the bottom frame - which is showing the generated pictures. Decreasing the size of this pictures also lowers memory usage. Maybe you can check if this also changes memory at your installation?

Is there any function/button to delete this images?

@mcmonkey4eva
Copy link
Collaborator

That feature is not provided by Comfy, that comes from an extension

@viebrix
Copy link

viebrix commented Jun 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants