Output class for the scheduler's `step` function output. Args: prev_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images): Computed sample `(x_{t-1})` of previous timestep. `prev_sample` should be used as next model input in the
| 33 | |
| 34 | @dataclass |
| 35 | class LCMSchedulerOutput(BaseOutput): |
| 36 | """ |
| 37 | Output class for the scheduler's `step` function output. |
| 38 | |
| 39 | Args: |
| 40 | prev_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images): |
| 41 | Computed sample `(x_{t-1})` of previous timestep. `prev_sample` should be used as next model input in the |
| 42 | denoising loop. |
| 43 | pred_original_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images): |
| 44 | The predicted denoised sample `(x_{0})` based on the model output from the current timestep. |
| 45 | `pred_original_sample` can be used to preview progress or for guidance. |
| 46 | """ |
| 47 | |
| 48 | prev_sample: torch.Tensor |
| 49 | denoised: Optional[torch.Tensor] = None |
| 50 | |
| 51 | |
| 52 | # Copied from diffusers.schedulers.scheduling_ddpm.betas_for_alpha_bar |