Robin Rombach commited on
Commit
27c4b25
1 Parent(s): 8192949

Update sampler.py

Browse files

fix import

Former-commit-id: 21f890f9da3cfbeaba8e2ac3c425ee9e998d5229

ldm/models/diffusion/dpm_solver/sampler.py CHANGED
@@ -2,7 +2,7 @@
2
 
3
  import torch
4
 
5
- from .solver import NoiseScheduleVP, model_wrapper, DPM_Solver
6
 
7
 
8
  class DPMSolverSampler(object):
@@ -79,4 +79,4 @@ class DPMSolverSampler(object):
79
  dpm_solver = DPM_Solver(model_fn, ns, predict_x0=True, thresholding=False)
80
  x = dpm_solver.sample(img, steps=S, skip_type="time_uniform", method="multistep", order=2, lower_order_final=True)
81
 
82
- return x.to(device), None
 
2
 
3
  import torch
4
 
5
+ from .dpm_solver import NoiseScheduleVP, model_wrapper, DPM_Solver
6
 
7
 
8
  class DPMSolverSampler(object):
 
79
  dpm_solver = DPM_Solver(model_fn, ns, predict_x0=True, thresholding=False)
80
  x = dpm_solver.sample(img, steps=S, skip_type="time_uniform", method="multistep", order=2, lower_order_final=True)
81
 
82
+ return x.to(device), None