(self, timesteps)
| 10 | class 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 |
no outgoing calls
no test coverage detected