From a896101ec879e9b487e2b90dd9f15bca70726b0f Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 26 Dec 2025 22:28:04 +0200 Subject: [PATCH] I don't know why this suddenly errors --- nodes_sampler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nodes_sampler.py b/nodes_sampler.py index 2b60f43..5c47564 100644 --- a/nodes_sampler.py +++ b/nodes_sampler.py @@ -1379,15 +1379,14 @@ class WanVideoSampler: z = z * c_in timestep = c_noise + self.noise_front_pad_num = 0 if image_cond is not None: self.noise_front_pad_num = image_cond_input.shape[1] - z.shape[1] if self.noise_front_pad_num > 0: pad = torch.zeros((z.shape[0], self.noise_front_pad_num, z.shape[2], z.shape[3]), dtype=z.dtype, device=z.device) - z = torch.concat([pad, z], dim=1) + z = torch.cat([pad, z], dim=1) nonlocal seq_len seq_len = math.ceil((z.shape[2] * z.shape[3]) / 4 * z.shape[1]) - else: - self.noise_front_pad_num = 0 if background_latents is not None or foreground_latents is not None: z = torch.cat([z, foreground_latents.to(z), background_latents.to(z)], dim=0)