mmagic.models.utils.diffusion_utils
¶
Module Contents¶
Functions¶
|
Create a beta schedule that discretized the given alpha_t_bar |
- mmagic.models.utils.diffusion_utils.betas_for_alpha_bar(num_diffusion_timesteps, max_beta=0.999)[source]¶
Create a beta schedule that discretized the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [0,1].
Source: https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddim.py#L49 # noqa