Diffusers documentation
HeliosDMDScheduler
HeliosDMDScheduler
HeliosDMDScheduler é baseado no amostramento de fluxo-piramidal introduzido em Helios.
HeliosDMDScheduler
classe 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' )
inicializar os timesteps e sigmas globais
Inicialize os timesteps para cada etapa
set_begin_index
< source >( begin_index: int = 0 )
Define o índice inicial para o agendador. Esta função deve ser executada a partir do pipeline antes da inferência.
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 )
Definindo os timesteps e sigmas para cada etapa
time_shift
< source >( mu: floatsigma: floatt: Tensor ) → torch.Tensor
Aplicar o deslocamento temporal aos sigmas.
scheduling_helios_dmd
Update on GitHub