Node packVerifiedExternal
Comfyui-Memory_Cleanup
Clean up system cache, support VRAM cleaning and RAM cleaning
Maintainer@LAOGOU-666Bgrade
Package profile
- Status
- Verified
- Publisher
- @LAOGOU-666
- Source
- GitHub
- Stars
- 408
README
Comfyui-Memory_Cleanup
Comfyui-Memory_Cleanup 是一个用于 ComfyUI 的自定义节点,提供内存清理功能以优化 ComfyUI 的运行性能。
功能介绍
使用示例1
使用示例2
主要功能
本插件提供两个主要节点:
1. 🎈VRAM-Cleanup (GPU显存清理)
可以帮助释放 GPU 显存,主要功能:
- 卸载模型 (offload_model)
- 清理显存缓存 (offload_cache)
2. 🎈RAM-Cleanup (系统内存清理)
可以帮助释放系统内存,支持 Windows 和 Linux 系统:
- 清理文件缓存 (clean_file_cache)
- 清理进程内存 (clean_processes)
- 清理未使用的 DLL (clean_dlls)
- 支持多次重试 (retry_times)
安装方法
-
将此仓库克隆或下载到您的 ComfyUI 自定义节点目录:
git clone https://github.com/LAOGOU-666/Comfyui-Memory_Cleanup.git或直接下载 ZIP 解压到
custom_nodes目录 -
安装依赖:
pip install -r requirements.txt -
重启 ComfyUI
使用方法
- 在节点浏览器中搜索 "Memory Management" 分类
- 将 🎈VRAM-Cleanup 或 🎈RAM-Cleanup 添加到您的工作流中
- 连接到工作流的适当位置,通常放在生成完成后
参数说明
VRAM-Cleanup
- anything: 可以连接任何输入
- offload_model: 是否卸载模型
- offload_cache: 是否清理显存缓存
RAM-Cleanup
- anything: 可以连接任何输入
- clean_file_cache: 是否清理文件缓存
- clean_processes: 是否清理进程内存
- clean_dlls: 是否清理未使用DLL
- retry_times: 重试次数 (1-10)
注意事项
- 内存清理可能会导致性能暂时下降,但可以防止长时间运行时的内存泄漏
- 建议在重要节点完成工作后使用此节点
如果您受益于本项目,不妨请作者喝杯咖啡,您的支持是我最大的动力
商务合作
如果您有定制工作流/节点的需求,或者想要学习插件制作的相关课程,请联系我 wechat:wenrulaogou2033
Nodes in this pack
2 nodes
Nodes in this pack
2 nodes- RAMCleanup
- VRAMCleanup
Related resources
30 connections
Related resources
30 connectionsUsed byComfyUI beginner friendly Z-Image Base (or Z-Image Base GGUF) Text-to-Image with LORAs Workflow by Sarcastic TOFU — Z-ImageBase_Txt2Img_v1.0Used byAutoBatch ZeroDistort 8K Upscaler-批量自适应8K零变形放大流 — 2workflow for autoUpscaleUsed byWan Video ComfyUI (T2V & I2V) — v3.1Used byComfyUI beginner friendly Flux.2 Klein 9B GGUF Simple Flawless Fast Headswap Workflows by Sarcastic TOFU — Flux2k_9B_GGUF_SWAP_v1Used byFriendly Flux 2 Klein UniEdit — v1.0Used byEfficient first-last frame video generation workflow: 5 seconds per segment, and can generate continuously up to 15 seconds. — v1.0Used byA1111 To Comfyui workflow (My version) — v2.0Used byComfyUI beginner friendly Magic WAN Image v2 GGUF Text-to-Image Workflow (With LORAs) by Sarcastic TOFU — MagicWanImagev2_T2I_v1.0Used bySocksLatentPatcher GGUF Subgraph — v1.0Used byMotion Forge: Wan2.2 S2V - High-Motion & Long-Format Workflow 4 Steps — v1.0Used byComfyUI beginner friendly Z-Image Turbo ALL-in-One Fast Post Generation Face Swap Workflow by Sarcastic TOFU — Z-Image_FaceSwap_Gen_1.0Used byWan Animated ComfyUI — v1.1Used byLTX-2.3 (newest LTX) using distilled GGUF - I2V — v3Used byZ-Image-Turbo ControlNet Image Remix V2.1(NSFW) — v1.0Used byFriendly Lite MiniMax H3 (T2V, I2V, FLF, LLM) — v1.0b — v1.0.1 Turbo Upscale fixUsed byA1111 To Comfyui workflow (My version) — v2.2Used bydiffusion_models+Upskale+facedetailer — v1.0Used byWan2.2 I2V/14B/GGUF KIJAI WF with For loop lightxv2. — v2.0Used byA1111 To Comfyui workflow (My version) — v1.5Used byMinimax-LowVRAM — INITIA — PERFECTAUsed byFriendly LTX-2.3 T2V+I2V+FLF+Lipsync — Unified Light v1.0Used byWan Animated ComfyUI — v1.0Used byComfyUI beginner friendly Low VRAM Kandinsky 5 Lite Image-to-Image Workflow with Easy Prompt Saver by Sarcastic TOFU — Kandinsky_I2I_v1.0Used byKlein+Zimage二转三anime to real — v1.5Used byComfyUI beginner friendly Low VRAM Kandinsky 5 Lite Text-to-Image Workflow with Easy Prompt Saver by Sarcastic TOFU — Kandinsky_T2I_v1.0Used byMiniMax H3 - Spectrum Speed UP & Memory Optimized Workflow (Text/Image to Video + Native Audio) — v1.0Used byA1111 To Comfyui workflow (My version) — v1.0Used byComfyUI beginner friendly SDXL 1.0 AIO Text-to-Image Workflow with Easy Prompt Saver by Sarcastic TOFU — SDXL_AIO_Txt2Img_v1.0Used bySocksLatentPatcher GGUF Subgraph — v2.0Used byFast Chroma w/ Upscaler, Refiner and Face detailer [Low VRAM] — v1.4
Sources
3 sources
Sources
3 sourcesComfy registrySource
raw.githubusercontent.com/Comfy-Org/ComfyUI-Manager/main/extension-node-map.jsonVerified Oct 12
GitHubSourceVersion 58de13a6090e04408e343501ff8902c034d9f518
github.com/LAOGOU-666/Comfyui-Memory_CleanupVerified Oct 12
Source excerpts
1 excerpt
Source excerpts
1 excerptSource context: Repo LAOGOU-666/Comfyui-Memory_Cleanup
