Skip to content

Progress update events #21

Description

@irgolic

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions