Skip to content

Commit

Permalink
sigma_to_t -> timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
95harry committed Aug 13, 2024
1 parent 1b18656 commit b0f9eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion latent_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def sample(self, cfg_guidance, prompt=["", ""], callback_fn=None, **kwargs):
c_in = at.clone().sqrt()
c_out = -sigma.clone()

new_t = self.sigma_to_t(sigma).to(self.device)
new_t = self.timestep(sigma).to(self.device)

with torch.no_grad():
noise_uc, noise_c = self.predict_noise(x*c_in, new_t, uc, c)
Expand Down

0 comments on commit b0f9eae

Please sign in to comment.