mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-19 04:48:17 +08:00
Implement 5D-to-4D temporal latent reshape fix
This commit is contained in:
parent
64ed140c89
commit
9fecaeb2d5
@ -317,6 +317,9 @@ class SingleStreamDiT(nn.Module):
|
||||
negative_ref_method = ref_latents_method == "negative_index"
|
||||
|
||||
for ref in ref_latents:
|
||||
if ref.ndim == 5:
|
||||
ref_b5, ref_c5, ref_t5, ref_h5, ref_w5 = ref.shape
|
||||
ref = ref.reshape(ref_b5 * ref_t5, ref_c5, ref_h5, ref_w5)
|
||||
ref_pad = comfy.ldm.common_dit.pad_to_patch_size(ref, (patch, patch))
|
||||
ref_b, ref_c, ref_h, ref_w = ref_pad.shape
|
||||
ref_gh = ref_h // patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user