MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / on_image_step

Function on_image_step

ui/easydiffusion/tasks/render_images.py:299–312  ·  view source on GitHub ↗
(images, i, *args)

Source from the content-addressed store, hash-verified

297 return partial_images
298
299 def on_image_step(images, i, *args):
300 nonlocal last_callback_time
301
302 step_time = time.time() - last_callback_time if last_callback_time != -1 else -1
303 last_callback_time = time.time()
304
305 progress = {"step": i, "step_time": step_time, "total_steps": n_steps}
306
307 if images is not None:
308 progress["output"] = update_temp_img(images, task_temp_images)
309
310 data_queue.put(json.dumps(progress))
311
312 step_callback()
313
314 return on_image_step

Callers

nothing calls this directly

Calls 2

update_temp_imgFunction · 0.85
putMethod · 0.45

Tested by

no test coverage detected