The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Small wan camera memory optimization. (#9111)
comfyanonymousda9dab7edd36
diff --git a/comfy/ldm/wan/model.py b/comfy/ldm/wan/model.pyindex a93a13c86..86d0795e9 100644--- a/comfy/ldm/wan/model.py+++ b/comfy/ldm/wan/model.py@@ -769,8 +769,7 @@ class CameraWanModel(WanModel):# embeddingsx = self.patch_embedding(x.float()).to(x.dtype)if self.control_adapter is not None and camera_conditions is not None:- x_camera = self.control_adapter(camera_conditions).to(x.dtype)- x = x + x_camera+ x = x + self.control_adapter(camera_conditions).to(x.dtype)grid_sizes = x.shape[2:]x = x.flatten(2).transpose(1, 2)