Commit Graph

1 Commits

Author SHA1 Message Date
abhay-codes07
68f5b543d9
Fix LatentInterpolate corrupting batched latents
vector_norm(dim=1) dropped the channel axis, so dividing the (B,C,H,W)
latent by the (B,H,W) norm broadcast the batch axis onto the channels.
With batch_size != channels this raised a RuntimeError, and when they
happened to be equal it silently mixed the per-sample normalization.

Keep the channel dimension with keepdim=True so each latent is
normalized independently.
2026-07-12 15:19:45 +05:30