MCPcopy
hub / github.com/hojonathanho/diffusion / _warmup_beta

Function _warmup_beta

diffusion_tf/diffusion_utils.py:15–19  ·  view source on GitHub ↗
(beta_start, beta_end, num_diffusion_timesteps, warmup_frac)

Source from the content-addressed store, hash-verified

13
14
15def _warmup_beta(beta_start, beta_end, num_diffusion_timesteps, warmup_frac):
16 betas = beta_end * np.ones(num_diffusion_timesteps, dtype=np.float64)
17 warmup_time = int(num_diffusion_timesteps * warmup_frac)
18 betas[:warmup_time] = np.linspace(beta_start, beta_end, warmup_time, dtype=np.float64)
19 return betas
20
21
22def get_beta_schedule(beta_schedule, *, beta_start, beta_end, num_diffusion_timesteps):

Callers 1

get_beta_scheduleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected