Diffusers documentation
HeliosDMDScheduler
HeliosDMDScheduler
HeliosDMDScheduler 基于 Helios 中引入的金字塔流匹配采样。
HeliosDMDScheduler
class diffusers.HeliosDMDScheduler
< source >( num_train_timesteps: int = 1000shift: float = 1.0stages: int = 3stage_range: list = [0, 0.3333333333333333, 0.6666666666666666, 1]gamma: float = 0.3333333333333333prediction_type: str = 'flow_prediction'use_flow_sigmas: bool = Trueuse_dynamic_shifting: bool = Falsetime_shift_type: typing.Literal['exponential', 'linear'] = 'linear' )
初始化全局时间步和 sigma
初始化每个阶段的 timesteps
设置调度器的起始索引。此函数应在推理之前从流水线中运行。
set_timesteps
< source >( num_inference_steps: intstage_index: int | None = Nonedevice: typing.Union[str, torch.device] = Nonesigmas: bool | None = Nonemu: bool | None = Noneis_amplify_first_chunk: bool = False )
为每个阶段设置 timesteps 和 sigmas
time_shift
< source >( mu: floatsigma: floatt: Tensor ) → torch.Tensor
对 sigmas 应用时间偏移。
scheduling_helios_dmd
Update on GitHub