-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Anyway to get progress updates?
I see this in the task queue code but there is no way to hook into it?
elif msg['type'] == 'progress':
# See ComfyUI::main.hijack_progress
# 'prompt_id', 'node': https://github.com/comfyanonymous/ComfyUI/issues/2425
progress_data = msg['data']
# TODO: Node
value = progress_data['value']
max = progress_data['max']
if value == 1:
if pbar is not None:
pbar.close()
pbar = tqdm(initial=value, total=max)
else:
# value may not start with 1
# e.g. start watch in the middle, CivitAICheckpointLoader
if pbar is None:
pbar = tqdm(initial=value, total=max)
pbar.update(value - pbar.n)
if value == max:
pbar.close()
pbar = None