MCPcopy Create free account
hub / github.com/CompVis/diff2flow / drift

Method drift

diff2flow/flow.py:231–234  ·  view source on GitHub ↗
(self, x, t, model, **model_kwargs)

Source from the content-addressed store, hash-verified

229 self.schedule = schedule
230
231 def drift(self, x, t, model, **model_kwargs):
232 model_output = model(x, t, **model_kwargs)
233 assert model_output.shape == x.shape, "Output shape from ODE solver must match input shape"
234 return model_output
235
236 def score(self, x, t, model, **model_kwargs):
237 # we only train velocity, hence only need to compute score from velocity

Callers 4

last_stepMethod · 0.95
__Euler_Maruyama_stepMethod · 0.80
__Heun_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected