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

Method condition_score

guided_diffusion/gaussian_diffusion.py:379–401  ·  view source on GitHub ↗

Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See condition_mean() for details on cond_fn. Unlike condition_mean(), this instead uses the conditioning strategy from Song et al (2020).

(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

ddim_sampleMethod · 0.95

Calls 5

_scale_timestepsMethod · 0.95
_extract_into_tensorFunction · 0.70

Tested by

no test coverage detected