mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 01:48:13 +00:00
fmt fixes in wan_video_dit.py
This commit is contained in:
@@ -335,7 +335,7 @@ class WanModel(torch.nn.Module):
|
|||||||
else:
|
else:
|
||||||
self.control_adapter = None
|
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: torch.Tensor = None):
|
||||||
x = self.patch_embedding(x)
|
x = self.patch_embedding(x)
|
||||||
if self.control_adapter is not None and control_camera_latents_input is not None:
|
if self.control_adapter is not None and control_camera_latents_input is not None:
|
||||||
y_camera = self.control_adapter(control_camera_latents_input)
|
y_camera = self.control_adapter(control_camera_latents_input)
|
||||||
|
|||||||
Reference in New Issue
Block a user