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

Method q_sample

guided_diffusion/gaussian_diffusion.py:196–214  ·  view source on GitHub ↗

Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial data batch. :param t: the number of diffusion steps (minus 1). Here, 0 means one step. :param noise: if specified, the split-out no

(self, x_start, t, noise=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 1

_extract_into_tensorFunction · 0.70

Tested by

no test coverage detected