ltx23_get_timestep_embedding

Sinusoidal timestep embedding

Description

DDPM-style sinusoidal embedding. LTX uses flip_sin_to_cos=TRUE (cos first) and downscale_freq_shift=0.

Usage

ltx23_get_timestep_embedding(timesteps, embedding_dim, flip_sin_to_cos = TRUE,
                             downscale_freq_shift = 0, max_period = 10000)

Arguments

  • timesteps: 1D tensor of timestep values.
  • embedding_dim: Integer. Output embedding size.
  • flip_sin_to_cos: Logical. Put cos before sin.
  • downscale_freq_shift: Numeric. Frequency delta control.
  • max_period: Numeric. Maximum embedding frequency period.

Value

Tensor [N, embedding_dim].