This commit is contained in:
Eugene Fairley 2025-06-27 23:51:02 -07:00
parent 92d72ea4a6
commit 5feb9a6915

View File

@ -550,6 +550,7 @@ def patch_motion(
mix_feature = out_feature + vid[vae_divide[0]:, 1:] * (1 - out_weight.clamp(0, 1))
out_feature_full = torch.cat([vid[vae_divide[0]:, :1], mix_feature], dim=1) # C, T, H, W
print("out_feature_full:", out_feature_full)
out_mask_full = torch.cat([torch.ones_like(out_weight[:1]), out_weight], dim=0) # T, H, W
return torch.cat([out_mask_full[None].expand(vae_divide[0], -1, -1, -1), out_feature_full], dim=0)