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

Method predict_start_from_z_and_v

diff2flow/ddpm.py:275–279  ·  view source on GitHub ↗
(self, x_t, t, v)

Source from the content-addressed store, hash-verified

273 )
274
275 def predict_start_from_z_and_v(self, x_t, t, v):
276 return (
277 extract_into_tensor(self.sqrt_alphas_cumprod, t, x_t.shape) * x_t -
278 extract_into_tensor(self.sqrt_one_minus_alphas_cumprod, t, x_t.shape) * v
279 )
280
281 def predict_eps_from_z_and_v(self, x_t, t, v):
282 return (

Callers 1

p_mean_varianceMethod · 0.95

Calls 1

extract_into_tensorFunction · 0.70

Tested by

no test coverage detected