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

Method p_sample

guided_diffusion/gaussian_diffusion.py:403–447  ·  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 predic

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

image_editing_sampleMethod · 0.80

Calls 2

p_mean_varianceMethod · 0.95
condition_meanMethod · 0.95

Tested by

no test coverage detected