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.
This commit is contained in:
CalamitousFelicitousness
2026-08-18 00:46:22 +01:00
parent bd6abfc3e4
commit ab5056199d
+1
View File
@@ -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)