sd_inverse_noise_scale: Undo final-step latent scaling (low-level)

View source: R/lowlevel.R

sd_inverse_noise_scaleR Documentation

Undo final-step latent scaling (low-level)

Description

Applies the denoiser's inverse noise scaling after the last step. A no-op for discrete CompVis denoisers (SD1/SD2/SDXL).

Usage

sd_inverse_noise_scale(ctx, x, sigma_last)

Arguments

ctx

SD context

x

Latent sd_tensor after the last step

sigma_last

Last sigma of the schedule (typically 0)

Value

An sd_tensor.


sd2R documentation built on June 19, 2026, 9:08 a.m.