Visit ComfyUI Online for ready-to-use ComfyUI environment
Optimizes memory usage by releasing unnecessary memory, beneficial for high-consumption workflows in ComfyUI.
The GarbageCollector node is designed to optimize the memory usage of ComfyUI by releasing any memory that is not currently necessary. This node is particularly useful for workflows that involve multiple models or operations that can lead to high memory consumption. By invoking garbage collection, the node helps in freeing up VRAM and RAM, ensuring smoother and more efficient performance. This can be especially beneficial if you are experiencing VRAM issues or if your workflow requires frequent loading and unloading of models. The GarbageCollector node can be configured to either forcefully unload models immediately or request unloading, allowing ComfyUI to handle it at its convenience. This flexibility helps in managing memory without disrupting the workflow.
This parameter accepts any type of data that you want to forward to other nodes after the memory cleaning process. It acts as a passthrough, ensuring that your data continues to flow through the workflow seamlessly. There are no specific minimum or maximum values for this parameter as it is designed to handle any type of input.
This boolean parameter, labeled as "Free Unused Memory (Windows only)," attempts to clear the RAM on Windows systems. It requires the WinMemoryCleaner.exe
to be placed in the ComfyUI root folder. The default value is True
, meaning it will attempt to free unused memory by default. This can help in reducing the overall memory footprint of your workflow.
This boolean parameter, labeled as "Run Async. (Requires Admin)," specifies whether to wait for the memory cleaning process to complete before continuing with the workflow. If set to True
, the node will run asynchronously, which requires administrative privileges. The default value is False
, meaning the node will wait until the memory cleaning process is complete before proceeding.
This parameter outputs the data that was passed through the Input
parameter after the memory cleaning process. It ensures that your data continues to flow through the workflow without any interruption. The output type is the same as the input type, maintaining consistency in your workflow.
RAM
parameter to free up unused memory on Windows systems, which can help in reducing the overall memory footprint.Mode
parameter based on your workflow requirements. If you need the memory cleaning process to complete before proceeding, set it to False
. If you prefer to run it asynchronously, set it to True
but ensure you have administrative privileges.WinMemoryCleaner.exe
file is required to free unused memory on Windows systems.WinMemoryCleaner.exe
file is placed in the ComfyUI root folder.Mode
parameter to False
to wait for the memory cleaning process to complete.© Copyright 2024 RunComfy. All Rights Reserved.