Skip to content

Commit

Permalink
Merge pull request Stability-AI#64 from eltociear/patch-1
Browse files Browse the repository at this point in the history
Fix typo in ddpm.py
  • Loading branch information
rromb authored Dec 7, 2022
2 parents d7440ac + d4e8234 commit f547c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldm/models/diffusion/ddpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def p_losses(self, x_start, t, noise=None):
elif self.parameterization == "v":
target = self.get_v(x_start, noise, t)
else:
raise NotImplementedError(f"Paramterization {self.parameterization} not yet supported")
raise NotImplementedError(f"Parameterization {self.parameterization} not yet supported")

loss = self.get_loss(model_out, target, mean=False).mean(dim=[1, 2, 3])

Expand Down

0 comments on commit f547c4a

Please sign in to comment.