ComfyUI Node
XMemoryCleanup
Manual memory cleanup node with optional Python GC, model unload, and VRAM cache cleanup. Pass-through keeps input and output data types consistent.
XMemoryCleanup
- anything
- anything
◄cleanup_memoryfalse►
◄cleanup_node_usagefalse►
◄cleanup_vramfalse►
Category♾️ Xz3r0/Workflow-Processing
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| cleanup_memory | BOOLEAN | false | Run Python garbage collection (gc.collect) to release reclaimable Python-side memory |
| cleanup_node_usage | BOOLEAN | false | Unload currently loaded models and clean up model memory usage |
| cleanup_vram | BOOLEAN | false | Clear VRAM cache via ComfyUI model management without unloading currently loaded models |
| anythingopt | COMFY_MATCHTYPE_V3 | Optional pass-through input. Output type matches the connected input type automatically. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| anything | COMFY_MATCHTYPE_V3 | Original input data passed through unchanged |