MCPcopy Create free account
hub / github.com/ImprintLab/MedSegDiff / interpolate_fn

Function interpolate_fn

guided_diffusion/dpm_solver.py:1207–1245  ·  view source on GitHub ↗

A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd). The function f(x) is well-defined for all x-axis. (For x beyond the bounds of xp, we use the outmost points of xp to define the linear function.)

(x, xp, yp)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

inverse_lambdaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected