MCPcopy Create free account
hub / github.com/NVlabs/DiffPure / condition_mean

Method condition_mean

guided_diffusion/gaussian_diffusion.py:364–377  ·  view source on GitHub ↗

Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with respect to x. In particular, cond_fn computes grad(log(p(y|x))), and we want to condition on y. This uses the conditioning strat

(self, cond_fn, p_mean_var, x, t, model_kwargs=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

p_sampleMethod · 0.95

Calls 1

_scale_timestepsMethod · 0.95

Tested by

no test coverage detected