| sd_denoise_step | R Documentation |
Runs the diffusion model once on x at sigma and returns the
denoised x_0 estimate. The Euler update of x is done by the caller
(see sd_sample_stepwise for the full loop). Must be called
between sd_sampler_begin and sd_sampler_end.
sd_denoise_step(
ctx,
x,
sigma,
cond,
uncond = list(crossattn = NULL, vector = NULL, concat = NULL),
cfg_scale = 7,
step = 1L,
total_steps = 1L
)
ctx |
SD context |
x |
Current latent sd_tensor |
sigma |
Current sigma (scalar) |
cond |
Positive conditioning from |
uncond |
Negative conditioning; empty (all |
cfg_scale |
CFG scale (1 disables CFG) |
step, total_steps |
1-based step index / total, for progress hooks |
An sd_tensor list — the denoised x_0 estimate.
sd_sample_stepwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.