fix Fun inpaint vid2vid

This commit is contained in:
zhilemann 2024-12-22 03:47:04 +03:00 committed by GitHub
parent c9c9b50e40
commit ce1c23811e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -822,7 +822,8 @@ class CogVideoXPipeline(DiffusionPipeline, CogVideoXLoraLoaderMixin):
fun_inpaint_masked_video_latents = torch.cat([fun_masked_video_latents] * 3)
else:
fun_inpaint_masked_video_latents = fun_masked_video_latents
fun_inpaint_latents = torch.cat([fun_inpaint_mask, fun_inpaint_masked_video_latents], dim=2).to(latents.dtype)
latent_model_input = torch.cat([latent_model_input, fun_inpaint_latents], dim=2)
# broadcast to batch dimension in a way that's compatible with ONNX/Core ML