MCPcopy
hub / github.com/Vchitect/Latte / _predict_eps_from_xstart

Method _predict_eps_from_xstart

diffusion/gaussian_diffusion.py:345–348  ·  view source on GitHub ↗
(self, x_t, t, pred_xstart)

Source from the content-addressed store, hash-verified

343 )
344
345 def _predict_eps_from_xstart(self, x_t, t, pred_xstart):
346 return (
347 _extract_into_tensor(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t - pred_xstart
348 ) / _extract_into_tensor(self.sqrt_recipm1_alphas_cumprod, t, x_t.shape)
349
350 def condition_mean(self, cond_fn, p_mean_var, x, t, model_kwargs=None):
351 """

Callers 3

condition_scoreMethod · 0.95
ddim_sampleMethod · 0.95
calc_bpd_loopMethod · 0.95

Calls 1

_extract_into_tensorFunction · 0.85

Tested by

no test coverage detected