From 26461c19638eaa6fd03403baec247401cd0fe33b Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Mon, 4 Aug 2025 23:52:48 +0800 Subject: [PATCH] Update diffsynth/models/wan_video_dit.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- diffsynth/models/wan_video_dit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diffsynth/models/wan_video_dit.py b/diffsynth/models/wan_video_dit.py index ab9e9cc..419f8cf 100644 --- a/diffsynth/models/wan_video_dit.py +++ b/diffsynth/models/wan_video_dit.py @@ -335,7 +335,7 @@ class WanModel(torch.nn.Module): else: self.control_adapter = None - def patchify(self, x: torch.Tensor, control_camera_latents_input: torch.Tensor = None): + def patchify(self, x: torch.Tensor, control_camera_latents_input: Optional[torch.Tensor] = None): x = self.patch_embedding(x) if self.control_adapter is not None and control_camera_latents_input is not None: y_camera = self.control_adapter(control_camera_latents_input)