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

Method _vb_terms_bpd

guided_diffusion/gaussian_diffusion.py:717–750  ·  view source on GitHub ↗

Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allows for comparison to other papers. :return: a dict with the following keys: - 'output': a shape [N] tensor of NLLs or KLs.

(
        self, model, x_start, x_t, t, clip_denoised=True, model_kwargs=None
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

training_lossesMethod · 0.95
calc_bpd_loopMethod · 0.95

Calls 6

p_mean_varianceMethod · 0.95
normal_klFunction · 0.85
mean_flatFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected