Skip to content

Commit

Permalink
Late-import scipy.integrate (only required when using LinearMultistep…
Browse files Browse the repository at this point in the history
…Sampler)
  • Loading branch information
akx committed Nov 22, 2023
1 parent 059d8e9 commit b3750ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgm/modules/diffusionmodules/sampling_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import torch
from scipy import integrate

from ...util import append_dims


def linear_multistep_coeff(order, t, i, j, epsrel=1e-4):
from scipy import integrate # late import to avoid extra dependency
if order - 1 > i:
raise ValueError(f"Order {order} too high for step {i}")

Expand Down

0 comments on commit b3750ae

Please sign in to comment.