mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user