Diffusers documentation
HeliosDMDScheduler
HeliosDMDScheduler
HeliosDMDScheduler is based on the pyramidal flow-matching sampling introduced in Helios.
HeliosDMDScheduler
class diffusers.HeliosDMDScheduler
< source >( num_train_timesteps: int = 1000 shift: float = 1.0 stages: int = 3 stage_range: list = [0, 0.3333333333333333, 0.6666666666666666, 1] gamma: float = 0.3333333333333333 prediction_type: str = 'flow_prediction' use_flow_sigmas: bool = True use_dynamic_shifting: bool = False time_shift_type: typing.Literal['exponential', 'linear'] = 'linear' )
initialize the global timesteps and sigmas
Init the timesteps for each stage
set_begin_index
< source >( begin_index: int = 0 )
Sets the begin index for the scheduler. This function should be run from pipeline before the inference.
set_timesteps
< source >( num_inference_steps: int stage_index: int | None = None device: str | torch.device = None sigmas: bool | None = None mu: bool | None = None is_amplify_first_chunk: bool = False )
Setting the timesteps and sigmas for each stage
time_shift
< source >( mu: float sigma: float t: Tensor ) → torch.Tensor
Apply time shifting to the sigmas.
scheduling_helios_dmd
Update on GitHub