flux2_patchify_latents

Patchify FLUX.2 latents (2x2 -> channels)

Description

[B, C, H, W] -> [B, 4C, H/2, W/2], channel order (C, ph, pw). Reference: Flux2KleinPipeline._patchify_latents.

Usage

flux2_patchify_latents(latents)

Arguments

  • latents: Tensor [B, C, H, W]; H and W must be even.

Value

Tensor [B, C * 4, H / 2, W / 2].