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