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

Method p_mean_variance

guided_diffusion/gaussian_diffusion.py:240–334  ·  view source on GitHub ↗

Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes a signal and a batch of timesteps as input. :param x: the [N x C x ...] tensor at time t. :param t: a 1-D Tenso

(
        self, model, x, t, clip_denoised=True, denoised_fn=None, model_kwargs=None
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

p_sampleMethod · 0.95
ddim_sampleMethod · 0.95
ddim_reverse_sampleMethod · 0.95
_vb_terms_bpdMethod · 0.95

Calls 6

_scale_timestepsMethod · 0.95
_extract_into_tensorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected