Spaces:
Running on Zero
Running on Zero
Add optional LTX-2.3 2D anime screencap LoRA (anime_lora_strength at index 88)
Browse files
app.py
CHANGED
|
@@ -517,6 +517,12 @@ DOWNLOADS = [
|
|
| 517 |
"dest": MODELS / "loras" / "ltx23" / "ltx2.3-transition.safetensors",
|
| 518 |
"label": "transition lora",
|
| 519 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 520 |
{
|
| 521 |
"repo": "LiconStudio/LTX-2.3-Multiple-Subject-Reference",
|
| 522 |
"file": "LTX2.3-Licon-MSR-test_version.safetensors",
|
|
@@ -551,6 +557,7 @@ OMNINFT_BF16_LORA_FILENAME = "ltx23/LTX-2.3-OmniNFT-RL-Lora_bf16.safetensors"
|
|
| 551 |
MSR_LORA_FILENAME = "ltx23/LTX2.3-Licon-MSR-test_version.safetensors"
|
| 552 |
HARDCUT_LORA_FILENAME = "ltx23/2508281_LTX-2.3_Cinematic hardcut.safetensors"
|
| 553 |
TRANSITION_LORA_FILENAME = "ltx23/ltx2.3-transition.safetensors"
|
|
|
|
| 554 |
NODE_POWER_LORA = "557"
|
| 555 |
|
| 556 |
# Workflow has two sampler passes; MSR conditioning injected at pass-1
|
|
@@ -1844,6 +1851,7 @@ def _inject_params(
|
|
| 1844 |
kf_mid_enabled: bool = False,
|
| 1845 |
kf_mid_entries: list[tuple[str, float]] | None = None,
|
| 1846 |
skip_refine: bool = False,
|
|
|
|
| 1847 |
) -> dict[str, Any]:
|
| 1848 |
# MSR (multi-reference) mode patches the workflow heavily - bypasses the
|
| 1849 |
# likeness/anchor system, inserts IC-LoRA conditioning, adds crop guides
|
|
@@ -1924,6 +1932,7 @@ def _inject_params(
|
|
| 1924 |
"lora_physics_v2": physics_v2_lora_strength,
|
| 1925 |
"lora_hardcut": hardcut_lora_strength,
|
| 1926 |
"lora_transition": transition_lora_strength,
|
|
|
|
| 1927 |
},
|
| 1928 |
audio_strengths={
|
| 1929 |
"lora_sulphur": sulphur_audio_strength,
|
|
@@ -1939,6 +1948,7 @@ def _inject_params(
|
|
| 1939 |
"lora_physics_v2": physics_v2_audio_strength,
|
| 1940 |
"lora_hardcut": hardcut_audio_strength,
|
| 1941 |
"lora_transition": transition_audio_strength,
|
|
|
|
| 1942 |
},
|
| 1943 |
)
|
| 1944 |
workflow[NODE_POSITIVE]["inputs"]["text"] = prompt
|
|
@@ -2105,6 +2115,7 @@ OPTIONAL_LORAS = {
|
|
| 2105 |
"lora_physics_v2": PHYSICS_V2_LORA_FILENAME,
|
| 2106 |
"lora_hardcut": HARDCUT_LORA_FILENAME,
|
| 2107 |
"lora_transition": TRANSITION_LORA_FILENAME,
|
|
|
|
| 2108 |
}
|
| 2109 |
|
| 2110 |
|
|
@@ -3492,6 +3503,7 @@ def get_gpu_duration(
|
|
| 3492 |
kf_mid_5_pos: float = 50.0,
|
| 3493 |
profile_name: str = "",
|
| 3494 |
skip_refine: bool = False,
|
|
|
|
| 3495 |
progress: gr.Progress | None = None,
|
| 3496 |
) -> int:
|
| 3497 |
# Manual override: gen_budget > 0 forces an exact GPU budget.
|
|
@@ -3608,6 +3620,7 @@ def generate(
|
|
| 3608 |
kf_mid_5_pos: float = 50.0,
|
| 3609 |
profile_name: str = "",
|
| 3610 |
skip_refine: bool = False,
|
|
|
|
| 3611 |
progress: gr.Progress = gr.Progress(track_tqdm=True),
|
| 3612 |
) -> tuple[str, str, int]:
|
| 3613 |
seed_value = random.randint(0, 2**32 - 1) if randomize_seed or seed < 0 else int(seed)
|
|
@@ -3775,6 +3788,7 @@ def generate(
|
|
| 3775 |
kf_mid_enabled=bool(kf_mid_enabled),
|
| 3776 |
kf_mid_entries=kf_mid_entries,
|
| 3777 |
skip_refine=bool(skip_refine),
|
|
|
|
| 3778 |
)
|
| 3779 |
|
| 3780 |
mode_label = " (MSR-original)" if msr_original else (" (MSR)" if msr_enabled else "")
|
|
@@ -3806,6 +3820,7 @@ def generate(
|
|
| 3806 |
f"physics_v2={physics_v2_lora_strength:.2f}/{physics_v2_audio_strength:.2f} "
|
| 3807 |
f"hardcut={hardcut_lora_strength:.2f}/{hardcut_audio_strength:.2f} "
|
| 3808 |
f"transition={transition_lora_strength:.2f}/{transition_audio_strength:.2f} "
|
|
|
|
| 3809 |
f"likeness={likeness_strength:.2f} "
|
| 3810 |
f"like_anchor={likeness_anchor_strength:.2f} "
|
| 3811 |
f"lat_anchor={latent_anchor_strength:.2f} "
|
|
@@ -4055,6 +4070,10 @@ with gr.Blocks(title="aether-motion") as demo:
|
|
| 4055 |
0.0, 1.0, value=0.0, step=0.05,
|
| 4056 |
label="transition lora (0 = off, default 0.15)",
|
| 4057 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4058 |
with gr.Accordion("resolution", open=False):
|
| 4059 |
with gr.Row():
|
| 4060 |
target_mp = gr.Number(
|
|
@@ -4377,6 +4396,7 @@ with gr.Blocks(title="aether-motion") as demo:
|
|
| 4377 |
kf_mid_5_pos,
|
| 4378 |
profile_name,
|
| 4379 |
skip_refine,
|
|
|
|
| 4380 |
],
|
| 4381 |
outputs=[video, status, used_seed],
|
| 4382 |
)
|
|
|
|
| 517 |
"dest": MODELS / "loras" / "ltx23" / "ltx2.3-transition.safetensors",
|
| 518 |
"label": "transition lora",
|
| 519 |
},
|
| 520 |
+
{
|
| 521 |
+
"repo": "Muapi/mature-anime-screencap-style-ltx-2.3-edition",
|
| 522 |
+
"file": "mature-anime-screencap-style-ltx-2.3-edition.safetensors",
|
| 523 |
+
"dest": MODELS / "loras" / "ltx23" / "mature-anime-screencap-style-ltx-2.3-edition.safetensors",
|
| 524 |
+
"label": "anime screencap lora",
|
| 525 |
+
},
|
| 526 |
{
|
| 527 |
"repo": "LiconStudio/LTX-2.3-Multiple-Subject-Reference",
|
| 528 |
"file": "LTX2.3-Licon-MSR-test_version.safetensors",
|
|
|
|
| 557 |
MSR_LORA_FILENAME = "ltx23/LTX2.3-Licon-MSR-test_version.safetensors"
|
| 558 |
HARDCUT_LORA_FILENAME = "ltx23/2508281_LTX-2.3_Cinematic hardcut.safetensors"
|
| 559 |
TRANSITION_LORA_FILENAME = "ltx23/ltx2.3-transition.safetensors"
|
| 560 |
+
ANIME_LORA_FILENAME = "ltx23/mature-anime-screencap-style-ltx-2.3-edition.safetensors"
|
| 561 |
NODE_POWER_LORA = "557"
|
| 562 |
|
| 563 |
# Workflow has two sampler passes; MSR conditioning injected at pass-1
|
|
|
|
| 1851 |
kf_mid_enabled: bool = False,
|
| 1852 |
kf_mid_entries: list[tuple[str, float]] | None = None,
|
| 1853 |
skip_refine: bool = False,
|
| 1854 |
+
anime_lora_strength: float = 0.0,
|
| 1855 |
) -> dict[str, Any]:
|
| 1856 |
# MSR (multi-reference) mode patches the workflow heavily - bypasses the
|
| 1857 |
# likeness/anchor system, inserts IC-LoRA conditioning, adds crop guides
|
|
|
|
| 1932 |
"lora_physics_v2": physics_v2_lora_strength,
|
| 1933 |
"lora_hardcut": hardcut_lora_strength,
|
| 1934 |
"lora_transition": transition_lora_strength,
|
| 1935 |
+
"lora_anime": anime_lora_strength,
|
| 1936 |
},
|
| 1937 |
audio_strengths={
|
| 1938 |
"lora_sulphur": sulphur_audio_strength,
|
|
|
|
| 1948 |
"lora_physics_v2": physics_v2_audio_strength,
|
| 1949 |
"lora_hardcut": hardcut_audio_strength,
|
| 1950 |
"lora_transition": transition_audio_strength,
|
| 1951 |
+
"lora_anime": 0.0,
|
| 1952 |
},
|
| 1953 |
)
|
| 1954 |
workflow[NODE_POSITIVE]["inputs"]["text"] = prompt
|
|
|
|
| 2115 |
"lora_physics_v2": PHYSICS_V2_LORA_FILENAME,
|
| 2116 |
"lora_hardcut": HARDCUT_LORA_FILENAME,
|
| 2117 |
"lora_transition": TRANSITION_LORA_FILENAME,
|
| 2118 |
+
"lora_anime": ANIME_LORA_FILENAME,
|
| 2119 |
}
|
| 2120 |
|
| 2121 |
|
|
|
|
| 3503 |
kf_mid_5_pos: float = 50.0,
|
| 3504 |
profile_name: str = "",
|
| 3505 |
skip_refine: bool = False,
|
| 3506 |
+
anime_lora_strength: float = 0.0,
|
| 3507 |
progress: gr.Progress | None = None,
|
| 3508 |
) -> int:
|
| 3509 |
# Manual override: gen_budget > 0 forces an exact GPU budget.
|
|
|
|
| 3620 |
kf_mid_5_pos: float = 50.0,
|
| 3621 |
profile_name: str = "",
|
| 3622 |
skip_refine: bool = False,
|
| 3623 |
+
anime_lora_strength: float = 0.0,
|
| 3624 |
progress: gr.Progress = gr.Progress(track_tqdm=True),
|
| 3625 |
) -> tuple[str, str, int]:
|
| 3626 |
seed_value = random.randint(0, 2**32 - 1) if randomize_seed or seed < 0 else int(seed)
|
|
|
|
| 3788 |
kf_mid_enabled=bool(kf_mid_enabled),
|
| 3789 |
kf_mid_entries=kf_mid_entries,
|
| 3790 |
skip_refine=bool(skip_refine),
|
| 3791 |
+
anime_lora_strength=float(anime_lora_strength),
|
| 3792 |
)
|
| 3793 |
|
| 3794 |
mode_label = " (MSR-original)" if msr_original else (" (MSR)" if msr_enabled else "")
|
|
|
|
| 3820 |
f"physics_v2={physics_v2_lora_strength:.2f}/{physics_v2_audio_strength:.2f} "
|
| 3821 |
f"hardcut={hardcut_lora_strength:.2f}/{hardcut_audio_strength:.2f} "
|
| 3822 |
f"transition={transition_lora_strength:.2f}/{transition_audio_strength:.2f} "
|
| 3823 |
+
f"anime={anime_lora_strength:.2f} "
|
| 3824 |
f"likeness={likeness_strength:.2f} "
|
| 3825 |
f"like_anchor={likeness_anchor_strength:.2f} "
|
| 3826 |
f"lat_anchor={latent_anchor_strength:.2f} "
|
|
|
|
| 4070 |
0.0, 1.0, value=0.0, step=0.05,
|
| 4071 |
label="transition lora (0 = off, default 0.15)",
|
| 4072 |
)
|
| 4073 |
+
anime_lora_strength = gr.Slider(
|
| 4074 |
+
0.0, 1.5, value=0.0, step=0.05,
|
| 4075 |
+
label="anime screencap lora (0 = off, 1.0 = full 2D anime)",
|
| 4076 |
+
)
|
| 4077 |
with gr.Accordion("resolution", open=False):
|
| 4078 |
with gr.Row():
|
| 4079 |
target_mp = gr.Number(
|
|
|
|
| 4396 |
kf_mid_5_pos,
|
| 4397 |
profile_name,
|
| 4398 |
skip_refine,
|
| 4399 |
+
anime_lora_strength,
|
| 4400 |
],
|
| 4401 |
outputs=[video, status, used_seed],
|
| 4402 |
)
|