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

Class LCMSchedulerOutput

diffusers/src/diffusers/schedulers/scheduling_lcm.py:35–49  ·  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

33
34@dataclass
35class 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

Callers 1

stepMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected