MCPcopy Index your code
hub / github.com/CompVis/diff2flow / ode_fn

Method ode_fn

diff2flow/flow_obj.py:34–38  ·  view source on GitHub ↗
(self, t, x, **kwargs)

Source from the content-addressed store, hash-verified

32 self.diffusion_schedule = diffusion_schedule
33
34 def ode_fn(self, t, x, **kwargs):
35 if t.numel() == 1:
36 t = t.expand(x.shape[0])
37 _pred = self.sample_vt(x, t, **kwargs)
38 return _pred
39
40 def register_sdv2_schedule(self, diffusion_schedule, enforce_zero_snr=True):
41 # SDV2 schedule

Callers

nothing calls this directly

Calls 1

sample_vtMethod · 0.95

Tested by

no test coverage detected