1
0
mirror of https://github.com/kijai/ComfyUI-WanVideoWrapper.git synced 2026-01-28 12:20:55 +03:00

Allow canceling mid step

This commit is contained in:
kijai
2025-10-13 17:47:28 +03:00
parent 6c38f8cb24
commit 32eb6b480d

View File

@@ -2673,6 +2673,7 @@ class WanModel(torch.nn.Module):
lynx_ref_buffer = {}
for b, block in enumerate(self.blocks):
mm.throw_exception_if_processing_interrupted()
block_idx = f"{b:02d}"
if lynx_ref_buffer is not None and not lynx_ref_feature_extractor:
lynx_ref_feature = lynx_ref_buffer.get(block_idx, None)