Skip to content

Commit

Permalink
fix from_ddpm #12
Browse files Browse the repository at this point in the history
  • Loading branch information
tqch committed Oct 7, 2023
1 parent 5a2566e commit 9879834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddim.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def p_sample(self, denoise_fn, shape, device=torch.device("cpu"), noise=None, se
return x_t

@classmethod
def from_ddpm(cls, eta, subsequence):
def from_ddpm(cls, diffusion, eta, subsequence):
return cls(**{
k: diffusion.__dict__.get(k, None)
for k in ["betas", "model_mean_type", "model_var_type", "loss_type"]
Expand Down

0 comments on commit 9879834

Please sign in to comment.