MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / linear_beta_schedule

Method linear_beta_schedule

schedule/schedule.py:19–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 return torch.clip(betas, 0.0001, 0.9999)
18
19 def linear_beta_schedule(self):
20 timesteps = self.timesteps
21 scale = 1000 / timesteps
22 beta_start = 1e-6 * scale
23 beta_end = 0.02 * scale
24 return torch.linspace(beta_start, beta_end, timesteps)
25
26 def quadratic_beta_schedule(self):
27 timesteps = self.timesteps

Callers 1

get_betasMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected