MCPcopy Index your code
hub / github.com/VisionXLab/OF-Diff / _predict_eps_from_xstart

Method _predict_eps_from_xstart

ldm/models/diffusion/ddpm.py:875–877  ·  view source on GitHub ↗
(self, x_t, t, pred_xstart)

Source from the content-addressed store, hash-verified

873 return x_recon
874
875 def _predict_eps_from_xstart(self, x_t, t, pred_xstart):
876 return (extract_into_tensor(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t - pred_xstart) / \
877 extract_into_tensor(self.sqrt_recipm1_alphas_cumprod, t, x_t.shape)
878
879 def _prior_bpd(self, x_start):
880 """

Callers

nothing calls this directly

Calls 1

extract_into_tensorFunction · 0.90

Tested by

no test coverage detected