MCPcopy Create free account
hub / github.com/ImprintLab/MedSegDiff / q_sample

Method q_sample

guided_diffusion/gaussian_diffusion.py:203–219  ·  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 norm

(self, x_start, t, noise=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

calc_bpd_loopMethod · 0.95

Calls 1

_extract_into_tensorFunction · 0.85

Tested by

no test coverage detected