scheduling_self_forcing_flow_match ¶
Classes¶
fastvideo.models.schedulers.scheduling_self_forcing_flow_match.SelfForcingFlowMatchScheduler ¶
SelfForcingFlowMatchScheduler(num_inference_steps=100, num_train_timesteps=1000, shift=3.0, sigma_max=1.0, sigma_min=0.003 / 1.002, inverse_timesteps=False, extra_one_step=False, reverse_sigmas=False, training=False)
Bases: BaseScheduler, ConfigMixin, SchedulerMixin
Source code in fastvideo/models/schedulers/scheduling_self_forcing_flow_match.py
Methods:¶
fastvideo.models.schedulers.scheduling_self_forcing_flow_match.SelfForcingFlowMatchScheduler.add_noise ¶
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [BT, C, H, W] - noise: the noise with shape [BT, C, H, W] - timestep: the timestep with shape [BT] Output: the corrupted latent with shape [BT, C, H, W]
Source code in fastvideo/models/schedulers/scheduling_self_forcing_flow_match.py
fastvideo.models.schedulers.scheduling_self_forcing_flow_match.SelfForcingFlowMatchScheduler.add_noise_high ¶
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [BT, C, H, W] - noise: the noise with shape [BT, C, H, W] - timestep: the timestep with shape [BT] Output: the corrupted latent with shape [BT, C, H, W]
Source code in fastvideo/models/schedulers/scheduling_self_forcing_flow_match.py
fastvideo.models.schedulers.scheduling_self_forcing_flow_match.SelfForcingFlowMatchScheduler.training_weight ¶
Input
- timestep: the timestep with shape [B*T]
Output: the corresponding weighting [B*T]
Source code in fastvideo/models/schedulers/scheduling_self_forcing_flow_match.py
fastvideo.models.schedulers.scheduling_self_forcing_flow_match.SelfForcingFlowMatchSchedulerOutput ¶
Bases: BaseOutput
Output class for the scheduler's step function output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prev_sample | `torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` for images | Computed sample | required |