Make the sampling loop of pipelines modular, with designated inputs that can be handled iteratively with functions and a default sampler step function #7808
Labels
stale
Issues that haven't received updates
Model/Pipeline/Scheduler description
Related to #7761 .
This is an effective replacement for the existing sampling loop function and the many, many kwargs that were made to allow the user to control it or inject callbacks into it.
This will give the end user complete control of the sampling loop, allow the repo to add "official inline sampling functions" like report an image to an endpoint so that the user can view intermediate steps, etc.
We can add an argument sampling_functions:
list[Callable]=[default_sampling_function]
into the__call__
as a new, backwards compatible kwarg.This requires a rewrite of all of the pipelines, but as it is a backwards compatible change it can be introduced to any of the more popular pipelines first.
The text was updated successfully, but these errors were encountered: