MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / get_snr

Method get_snr

trainer/scheduler.py:12–15  ·  view source on GitHub ↗
(self, timesteps)

Source from the content-addressed store, hash-verified

10class ZoeScheduler:
11
12 def get_snr(self, timesteps):
13 alphas_cumprod = self.alphas_cumprod[timesteps]
14 sigma_power = 1 - alphas_cumprod
15 return alphas_cumprod / sigma_power
16
17 def get_min_snr_weight(self, timesteps, gamma: float = 5.0):
18 """the original min snr weighting in paper

Callers 3

get_min_snr_weightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected