MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / linear_beta_schedule

Function linear_beta_schedule

usr/diff/shallow_diffusion_tts.py:167–172  ·  view source on GitHub ↗

linear schedule

(timesteps, max_beta=hparams.get('max_beta', 0.01))

Source from the content-addressed store, hash-verified

165
166
167def linear_beta_schedule(timesteps, max_beta=hparams.get('max_beta', 0.01)):
168 """
169 linear schedule
170 """
171 betas = np.linspace(1e-4, max_beta, timesteps)
172 return betas
173
174
175def cosine_beta_schedule(timesteps, s=0.008):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected