ComfyUI > Nodes > tri3d-comfyui-nodes > tri3d-clear-memory

ComfyUI Node: tri3d-clear-memory

Class Name

tri3d-clear-memory

Category
TRI3D
Author
TRI3D-LC (Account age: 770days)
Extension
tri3d-comfyui-nodes
Latest Updated
2025-05-21
Github Stars
0.03K

How to Install tri3d-comfyui-nodes

Install this extension via the ComfyUI Manager by searching for tri3d-comfyui-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter tri3d-comfyui-nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

tri3d-clear-memory Description

Optimizes GPU memory usage by clearing cache for improved performance during image processing tasks.

tri3d-clear-memory:

The tri3d-clear-memory node is designed to manage and optimize the memory usage of your GPU during image processing tasks. Its primary function is to clear the GPU memory cache, which can help prevent memory overflow issues and improve the performance of your system when handling large or complex image data. By freeing up memory, this node ensures that your GPU resources are efficiently utilized, allowing for smoother and more reliable execution of tasks. This is particularly beneficial in scenarios where multiple processes or large datasets are involved, as it helps maintain system stability and performance.

tri3d-clear-memory Input Parameters:

input

This parameter represents the image data that you are working with. It is the primary input for the node and is expected to be in the form of an image tensor. The node processes this input to manage memory without altering the image data itself.

free_mem_per_limit

This parameter controls the percentage of GPU memory to be freed. It is a floating-point value ranging from 0 to 1, where 0 means no memory is freed, and 1 means the maximum possible memory is cleared. The default value is set to 1, which ensures that the node attempts to free as much memory as possible. Adjusting this parameter allows you to balance between memory clearance and the need to retain certain data in memory for ongoing processes.

tri3d-clear-memory Output Parameters:

IMAGE

The output of this node is the same image data that was input. The node returns the image tensor unchanged, as its primary function is to manage memory rather than modify the image. This ensures that your workflow remains uninterrupted while benefiting from optimized memory usage.

tri3d-clear-memory Usage Tips:

  • Use the tri3d-clear-memory node when working with large datasets or multiple processes to prevent memory overflow and ensure smooth operation.
  • Adjust the free_mem_per_limit parameter based on your specific needs; a lower value can be used if you need to retain more data in memory for subsequent operations.

tri3d-clear-memory Common Errors and Solutions:

"CUDA out of memory"

  • Explanation: This error occurs when the GPU runs out of memory to allocate for new tasks.
  • Solution: Use the tri3d-clear-memory node to free up GPU memory before running memory-intensive operations. Ensure that the free_mem_per_limit is set appropriately to maximize memory clearance.

"Memory clearance not effective"

  • Explanation: This might happen if the free_mem_per_limit is set too low, preventing sufficient memory from being freed.
  • Solution: Increase the free_mem_per_limit value closer to 1 to allow more memory to be cleared, ensuring better performance and stability.

tri3d-clear-memory Related Nodes

Go back to the extension to check out more related nodes.
tri3d-comfyui-nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.