https://github.com/my-opencode/ComfyUI_KSamplerTimer
https://github.com/my-opencode/ComfyUI_KSamplerTimer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/my-opencode/ComfyUI_KSamplerTimer
- Owner: my-opencode
- Created: 2024-06-29T00:04:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T14:13:17.000Z (over 1 year ago)
- Last Synced: 2024-12-19T03:03:58.229Z (12 months ago)
- Language: Python
- Size: 4.66 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI_KSamplerTimer**
- awesome-comfyui - **ComfyUI_KSamplerTimer**
README
# KSampler (timer)
> by [@IndustrialVectors](https://civitai.com/user/IndustrialVectors)\
> repository [GitLab](https://gitlab.com/lanterieur/comfyui_ksamplertimer)\
> license MIT
A custom node that returns the generation time of the KSampler.
Intended for benchmarking or debugging.


## Install
1. Clone this project into the `custom_nodes` directory of your ComfyUI install directory.\
`git clone https://gitlab.com/lanterieur/comfyui_ksamplertimer.git`
2. (Re)Start ComfyUI
## Usage
- The custom node is called `KSampler (timer)`.
- The node is found under `add node > sampling > KSampler (timer)`.
## Behavior
This node is just a wrapper around the native KSampler. This node adds two outputs to the KSampler:
- GENERATION_TIME_STRING\
The time in seconds as a float string with 2 numbers after the comma.
- GENERATION_TIME\
The time in seconds as a float.
## Batches
The time returned is for the whole batch.
You may have to divide the generation time by the batch size to get the average generation time. (See examples on how to do it.)
## Examples
See the sample workflows in the `workflows` sub directory.