This repository provides developers with a way to better manage their ComfyUI model memory. It includes nodes that allow developers to either unload all models or unload one model at a time. These nodes are designed as pass-through nodes, so they can be used anywhere in the flow. The nodes can be found in the "Unload Model" section.
These are massive hammers, and it could be possible to break things, please don't use them if you need finesse.
- Unload One Model: Unload a specific model from memory.
- Unload All Models: Unload all models from memory.
- Delete Any Object: Delete any object from memory and clear the cache.
File: unload_one_model.py
This node allows you to unload a specific model from memory.
File: unload_all_models.py
This node allows you to unload all models from memory.
File: delete_any_object.py
This node allows you to delete any object from memory and clear the cache.
- Clone the repository:
git clone https://github.com/willblaschko/ComfyUI---Unload-Models
- Navigate to the repository directory:
cd comfyui-model-memory-management
- Follow the instructions to integrate the nodes into your ComfyUI environment.
- Import the necessary files into your ComfyUI project.
- Use the nodes
UnloadOneModel
,UnloadAllModels
, andDeleteAnyObject
as needed to manage your model memory effectively.
Contributions are welcome! Please open an issue or submit a pull request for any changes or enhancements.
This project is licensed under the MIT License. See the LICENSE
file for details.