ComfyUI-Dev-Utils
===
[](https://github.com/ty0x2333/ComfyUI-Dev-Utils/tags)
Installation
---
#### ComfyUI-Manager
Guide: [ComfyUI-Manager How-to-use](https://github.com/ltdrdata/ComfyUI-Manager#how-to-use)
#### Manual
In your ComfyUI directory:
```shell
$ cd custom_nodes
$ git clone https://github.com/ty0x2333/ComfyUI-Dev-Utils.git
$ cd ComfyUI-Dev-Utils
$ pip install -r requirements.txt
```
**Finally, restart ComfyUI**
Features
---
1. Execution Time Analysis Tool
- When running, a Badge will be added to the upper left corner of the Node to display the execution time of the
node.
Preview
- Add `Execution Time` Node to display the execution time of each node in a table. At the same time, the current
execution time and the last execution time, as well as their differences, will be displayed.
Preview
- Add a "Clear Execution Cache" button to the sidebar menu. Click it to clear the current cache(unload models and
free memory).
Preview
Usage Example (Video)
[Execution Time Analysis Demo](https://github.com/ty0x2333/ComfyUI-Dev-Utils/assets/7489176/1345f5db-c7b8-482c-9b71-de2da4d9ca09)
2. Log Console
Provide a Console panel to display **Python logs** (**not** Javascript console.log).
`LogConsole` automatically captures the output of `print`, `logging`, `stdout` and `stderr`. Then send it to the web page via SSE.
`LogConsole` Feautes:
- **based on SSE, not Websocket. It will not affect the performance of ComfyUI's core and other functions.**
- Support text color. Differentiate error logs by color.
- Lazy startup, only starts capturing logs when needed.
- Supports completely disabling LogConsole.
Usage Example (Video)
[LogConsole Demo](https://github.com/ty0x2333/ComfyUI-Dev-Utils/assets/7489176/f8295843-80ae-43e5-9702-3fd6c1962519)
4. Reroute Enhancement
- Add "Reroute" option to node slot menu.
Preview
| Before |
After |
 |
 |
- Optimized for deleting Reroute Node.
Preview
| Before |
After |
 |
 |
5. `UrlDownload` Node
Download file from remote url and get file path
6. `UploadAnything` Node
Upload any file and get file path
Reference
---
- [ltdrdata/ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager)
- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)
- [chrisgoringe/cg-quicknodes](https://github.com/chrisgoringe/cg-quicknodes)
- [tzwm/comfyui-profiler](https://github.com/tzwm/comfyui-profiler)
- [xtermjs/xterm.js](https://github.com/xtermjs/xterm.js)
License
---
ComfyUI-Dev-Utils is available under the MIT license. See the LICENSE file for more info.