MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / UFOGenSchedulerOutput

Class UFOGenSchedulerOutput

diffusers/examples/community/scheduling_ufogen.py:32–46  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

30@dataclass
31# Copied from diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput with DDPM->UFOGen
32class 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

Callers 1

stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected