fix quadratic_beta_schedule (#141)

This commit is contained in:
Kashif Rasul
2022-06-06 17:45:14 +02:00
committed by GitHub
parent 934c9728dc
commit 1a81670718

View File

@@ -373,7 +373,7 @@ def quadratic_beta_schedule(timesteps):
scale = 1000 / timesteps
beta_start = scale * 0.0001
beta_end = scale * 0.02
return torch.linspace(beta_start**2, beta_end**2, timesteps, dtype = torch.float64) ** 2
return torch.linspace(beta_start**0.5, beta_end**0.5, timesteps, dtype = torch.float64) ** 2
def sigmoid_beta_schedule(timesteps):