ltx23_adain_filter_latent

Adaptive instance normalization between latent tensors

Description

Matches each (batch, channel) slice’s mean/std to the reference latents, blended by factor (cf. diffusers LTX2LatentUpsamplePipeline.adain_filter_latent).

Usage

ltx23_adain_filter_latent(latents, reference_latents, factor = 1)

Arguments

  • latents: Tensor [B, C, F, H, W].
  • reference_latents: Tensor with the target statistics.
  • factor: Numeric blend in [-10, 10]; 0 is identity.

Value

Filtered latents.