DiffusionScheduler
- class DiffusionScheduler(alpha_bar: Tensor)[source]
-
Scheduler for discrete-time diffusion models based on a given noise schedule.
- Parameters:
alpha_bar (torch.Tensor) – Cumulative product of (1 - beta) values, shape (K,), where K is the number of diffusion steps.
- alpha(x: DDTensor, t: Tensor) DDTensor[source]
\(\alpha_t\).
Can be overwritten if \(\alpha_t\) is data-dependent.
- alpha_dot(x: DDTensor, t: Tensor) DDTensor[source]
\(\dot{\alpha}_t\).
Can be overwritten if \(\dot{\alpha}_t\) is data-dependent.
- beta_dot(x: DDTensor, t: Tensor) DDTensor[source]
\(\dot{\beta}_t\).
Can be overwritten if \(\dot{\beta}_t\) is data-dependent.
- model_input(t: Tensor) Tensor[source]
Input to the model at time t that encodes the timestep.