Using diffusers pipeline callbacks, at every timestep (unless this drastically slows down computation), a progress update event should be emitted. As per a request parameter, a GeneratedImage should be included with the event every x timesteps, to show intermediate generation progress.
Fulfilling this PR means to:
- Add a
ProgressEvent(percentage: float, image: Optional[GeneratedImage]) to EventUnion
- Add a
progress_update_every_n_steps: int = 5 (or better worder) attribute to Param
- Implement a pipeline callback in
runner_service that emits ProgressEvent every timestep, attaching an image every progress_update_every_n_steps
Something similar should probably be done for model download progress too...
Using diffusers pipeline callbacks, at every timestep (unless this drastically slows down computation), a progress update event should be emitted. As per a request parameter, a GeneratedImage should be included with the event every x timesteps, to show intermediate generation progress.
Fulfilling this PR means to:
ProgressEvent(percentage: float, image: Optional[GeneratedImage])toEventUnionprogress_update_every_n_steps: int = 5(or better worder) attribute toParamrunner_servicethat emitsProgressEventevery timestep, attaching an image everyprogress_update_every_n_stepsSomething similar should probably be done for model download progress too...