comfyui node: the console heartbeat shows measured s/step, eta = remaining steps x live pace

The old eta extrapolated whole-job progress, which folds the encode
warm-up into the average and drifts badly once a latent-upscaled job
switches grid mid-run (draft steps are cheaper than refine steps). The
node now mirrors the server's per-step log client-side: a _PaceTracker
measures seconds-per-step between polls from the steps_done counter and
smooths it (EMA ~40% new) so the number follows the phase change; the
eta multiplies the remaining steps by that pace and marks the decode
tail as extra. Old servers (no steps_done) keep the progress-based eta.
Help + README updated.
This commit is contained in:
gearwave00001 committed 2026-10-25 04:36:07 -05:00
1 parent 7935897260
commit 19f6cd711e
2 files changed
+69 -22

No files matched your search

@@ -139,12 +139,17 @@ the `input/` folder.
While a job runs the node polls every 3 s, drives ComfyUI's node progress bar,
**and prints a live line to the ComfyUI console** —
`[RadianceMiniMax] job_x: 45%, step 12/26, eta ~1m 07s, elapsed 55s` — so a
waiting user sees pace and progress, not a silent spinner. Real step counts
come from a radiance server built after Oct 2026 (it added `steps_done`/
`steps_total` to the job object); an older server shows `~step` derived from
the job's `progress` field, which is the steps' share of 0..90 by design. That
same new server also prints one `RAD_INFO` line per step, so `docker logs -f`
shows the identical pace on the server box. `timeout` (advanced, default
1800 s) bounds the wait. A refusal, a failed job or an unreachable server all
`[RadianceMiniMax] job_x: 45%, step 12/26, 5.2 s/step, eta ~1m 07s (+decode),
elapsed 55s` — so a waiting user sees pace and progress, not a silent spinner.
The `s/step` is **measured between polls** from the step counter and lightly
smoothed, so it tracks the live pace — including the step-price jump when a
latent-upscaled job switches from draft to refine grid — and the eta is
remaining steps × that pace (the `+decode` tail is extra, as on the server's
own log). Real step counts come from a radiance server built after Oct 2026
(it added `steps_done`/`steps_total` to the job object); an older server shows
`~step` derived from the job's `progress` field, which is the steps' share of
0..90 by design, and extrapolates its eta from that progress. That same new
server also prints one `RAD_INFO` line per step, so `docker logs -f` shows the
identical pace on the server box. `timeout` (advanced, default 1800 s) bounds
the wait. A refusal, a failed job or an unreachable server all
raise with the server's own error text.