From 67c77f7c4f1efcc3fc0b8bdada51d97473792cf1 Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Tue, 21 Apr 2026 02:46:40 +0100 Subject: [PATCH] feat(ltx): default Refine on for Dev 2.x T2V/I2V Lightricks' production recipe for Dev is Stage 1 + 2x upsample + Stage 2 refine. Until now the UI reset Refine to False on every model change, so users picking Dev got a single-pass generation that does not match the recommended flow. Default Refine to on for variants that support the canonical Stage 2 recipe; multi-condition variants stay off. --- modules/ltx/ltx_ui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ltx/ltx_ui.py b/modules/ltx/ltx_ui.py index de72efda1..94bd857ef 100644 --- a/modules/ltx/ltx_ui.py +++ b/modules/ltx/ltx_ui.py @@ -31,13 +31,17 @@ def _model_change(model_name: str): ) # 2.x refine runs fixed canonical schedules; refine_strength only feeds 0.9.x LTXConditionPipeline. refine_strength_interactive = caps.family == '0.9' + # Default Refine on for Dev 2.x T2V/I2V: Lightricks' production recipe is Stage 1 + 2x upsample + # + Stage 2 refine (auto_refine_upsample at ltx_process.py:179 couples the stages once Refine is on). + # Multi-condition variants are excluded for the same reason auto_refine_upsample excludes them. + refine_default = caps.supports_canonical_stage2 and not caps.supports_multi_condition return ( gr.update(visible=caps.supports_input_media), gr.update(visible=caps.supports_multi_condition), gr.update(visible=True), gr.update(visible=True), gr.update(value=False), - gr.update(value=False), + gr.update(value=refine_default), gr.update(interactive=refine_strength_interactive), gr.update(value=caps.default_cfg), gr.update(value=caps.default_steps),