From ab5056199d32e09c7f5148512d017e6941be954e Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Tue, 18 Aug 2026 00:46:22 +0100 Subject: [PATCH] fix(video): align ltx frame counts on the shared path with the tab LTX generates 8n+1 frames and floors anything else internally, so a request for 120 frames on the shared path silently produced 113. The tab has always snapped the count before requesting it; the shared path now applies the same rule, next to the width and height rounding it already did. --- modules/video_models/video_overrides.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video_models/video_overrides.py b/modules/video_models/video_overrides.py index 1964bdc59..f0e760896 100644 --- a/modules/video_models/video_overrides.py +++ b/modules/video_models/video_overrides.py @@ -91,6 +91,7 @@ def set_overrides(p: processing.StableDiffusionProcessingVideo, selected: Model) if 'LTX' in cls: p.task_args['width'] = 32 * (p.width // 32) p.task_args['height'] = 32 * (p.height // 32) + p.frames = 8 * (p.frames // 8) + 1 # same rule the ltx tab applies, so both paths request a length the pipe keeps # WAN if 'Wan' in cls: p.task_args['width'] = 16 * (p.width // 16)