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

Method p_sample

guided_diffusion/gaussian_diffusion.py:417–456  ·  view source on GitHub ↗

Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at x_{t-1}. :param t: the value of t, starting at 0 for the first diffusion step. :param clip_denoised: if True, clip the x_start predict

(
        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 1

Calls 1

p_mean_varianceMethod · 0.95

Tested by

no test coverage detected