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.
This commit is contained in:
CalamitousFelicitousness
2026-04-21 02:46:40 +01:00
parent f72f89c993
commit 67c77f7c4f
+5 -1
View File
@@ -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),