mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
first update in 2025
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -71,6 +71,8 @@ def progressapi(req: ProgressRequest):
|
||||
step_y = max(shared.state.sampling_steps, 1)
|
||||
current = step_y * batch_x + step_x
|
||||
total = step_y * batch_y
|
||||
while total < current:
|
||||
total += step_y
|
||||
progress = min(1, abs(current / total) if total > 0 else 0)
|
||||
elapsed = time.time() - shared.state.time_start if shared.state.time_start is not None else 0
|
||||
predicted = elapsed / progress if progress > 0 else None
|
||||
|
||||
Reference in New Issue
Block a user