From 05c6b49b901f85449c39359b2ea493922294b430 Mon Sep 17 00:00:00 2001 From: ziyannchen <1041276865@qq.com> Date: Wed, 16 Jul 2025 10:30:33 +0000 Subject: [PATCH] fix a bug in sliding_window inference --- diffsynth/pipelines/wan_video_new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diffsynth/pipelines/wan_video_new.py b/diffsynth/pipelines/wan_video_new.py index 9f52ddc..59b4690 100644 --- a/diffsynth/pipelines/wan_video_new.py +++ b/diffsynth/pipelines/wan_video_new.py @@ -1047,7 +1047,7 @@ class TemporalTiler_BCTHW: mask = self.build_mask( model_output, is_bound=(t == 0, t_ == T), - border_width=(sliding_window_size - sliding_window_stride,) + border_width=(sliding_window_size - sliding_window_stride + 1,) ).to(device=data_device, dtype=data_dtype) value[:, :, t: t_, :, :] += model_output * mask weight[:, :, t: t_, :, :] += mask