Skip to content

Commit

Permalink
Update sampler.py
Browse files Browse the repository at this point in the history
fix import
  • Loading branch information
rromb authored Nov 16, 2022
1 parent 5a00c4f commit 21f890f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldm/models/diffusion/dpm_solver/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import torch

from .solver import NoiseScheduleVP, model_wrapper, DPM_Solver
from .dpm_solver import NoiseScheduleVP, model_wrapper, DPM_Solver


class DPMSolverSampler(object):
Expand Down Expand Up @@ -79,4 +79,4 @@ def sample(self,
dpm_solver = DPM_Solver(model_fn, ns, predict_x0=True, thresholding=False)
x = dpm_solver.sample(img, steps=S, skip_type="time_uniform", method="multistep", order=2, lower_order_final=True)

return x.to(device), None
return x.to(device), None

0 comments on commit 21f890f

Please sign in to comment.