MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / predict_eps_from_z_and_v

Method predict_eps_from_z_and_v

ldm/models/diffusion/ddpm.py:305–309  ·  view source on GitHub ↗
(self, x_t, t, v)

Source from the content-addressed store, hash-verified

303 )
304
305 def predict_eps_from_z_and_v(self, x_t, t, v):
306 return (
307 extract_into_tensor(self.sqrt_alphas_cumprod, t, x_t.shape) * v +
308 extract_into_tensor(self.sqrt_one_minus_alphas_cumprod, t, x_t.shape) * x_t
309 )
310
311 def q_posterior(self, x_start, x_t, t):
312 posterior_mean = (

Callers 2

p_sample_ddimMethod · 0.80
p_sample_ddimMethod · 0.80

Calls 1

extract_into_tensorFunction · 0.90

Tested by

no test coverage detected