Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,13 +302,18 @@ dramatic_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2.3 - Orga
|
|
| 302 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Cr3ampi3_animation_sulphur-2_i2v_v1.0.safetensors") # cr3ampi3 animation
|
| 303 |
liquid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="liquid_wet_dr1pp_ltx2_v1.0_scaled.safetensors") # wet dr1pp
|
| 304 |
demopose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="clapping-cheeks-audio-v001-alpha.safetensors")
|
| 305 |
-
voice_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="
|
| 306 |
realism_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="FurryenhancerLTX2.3V4.094fused.safetensors")
|
| 307 |
transition_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_takerpov_lora_v1.2.safetensors") # takerpov1, taker pov
|
| 308 |
physics_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Physics_V2_000002000.safetensors")
|
| 309 |
reasoning_lora_path = hf_hub_download(repo_id="LiconStudio/Ltx2.3-VBVR-lora-I2V", filename="Ltx2.3-Licon-VBVR-I2V-390K-R32.safetensors")
|
| 310 |
twostep_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Multi_step_video_reasoning_V0.1.safetensors")
|
| 311 |
mcfurry_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_3_mc_Furry_realistic_lora_v1.safetensors")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
|
| 313 |
print(f"Singularity LoRA: {singularity_lora_path}")
|
| 314 |
print(f"10Eros LoRA: {teneros_lora_path}")
|
|
@@ -329,6 +334,11 @@ print(f"Physics LoRA: {physics_lora_path}")
|
|
| 329 |
print(f"Reasoning LoRA: {reasoning_lora_path}")
|
| 330 |
print(f"Twostep LoRA: {twostep_lora_path}")
|
| 331 |
print(f"Mcfurry LoRA: {mcfurry_lora_path}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
# ----------------------------------------------------------------
|
| 333 |
|
| 334 |
print(f"Checkpoint: {checkpoint_path}")
|
|
@@ -346,7 +356,7 @@ pipeline = LTX23DistilledA2VPipeline(
|
|
| 346 |
)
|
| 347 |
# ----------------------------------------------------------------
|
| 348 |
|
| 349 |
-
def _make_lora_key(singularity_strength: float, teneros_strength: float, sulphur_strength: float, pose_strength: float, general_strength: float, motion_strength: float, dreamlay_strength: float, mself_strength: float, dramatic_strength: float, fluid_strength: float, liquid_strength: float, demopose_strength: float, voice_strength: float, realism_strength: float, transition_strength: float, physics_strength: float, reasoning_strength: float, twostep_strength: float, mcfurry_strength: float) -> tuple[str, str]:
|
| 350 |
rx = round(float(singularity_strength), 2)
|
| 351 |
ra = round(float(teneros_strength), 2)
|
| 352 |
rb = round(float(sulphur_strength), 2)
|
|
@@ -366,7 +376,12 @@ def _make_lora_key(singularity_strength: float, teneros_strength: float, sulphur
|
|
| 366 |
ri = round(float(reasoning_strength), 2)
|
| 367 |
rw = round(float(twostep_strength), 2)
|
| 368 |
mc = round(float(mcfurry_strength), 2)
|
| 369 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 370 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 371 |
return key, key_str
|
| 372 |
|
|
@@ -391,6 +406,11 @@ def prepare_lora_cache(
|
|
| 391 |
reasoning_strength: float,
|
| 392 |
twostep_strength: float,
|
| 393 |
mcfurry_strength: float,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 394 |
progress=gr.Progress(track_tqdm=True),
|
| 395 |
):
|
| 396 |
"""
|
|
@@ -438,6 +458,11 @@ def prepare_lora_cache(
|
|
| 438 |
(reasoning_lora_path, round(float(reasoning_strength), 2)),
|
| 439 |
(twostep_lora_path, round(float(twostep_strength), 2)),
|
| 440 |
(mcfurry_lora_path, round(float(mcfurry_strength), 2)),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 441 |
]
|
| 442 |
loras_for_builder = [
|
| 443 |
LoraPathStrengthAndSDOps(path, strength, LTXV_LORA_COMFY_RENAMING_MAP)
|
|
@@ -641,6 +666,11 @@ def get_gpu_duration(
|
|
| 641 |
reasoning_strength: float = 0.0,
|
| 642 |
twostep_strength: float = 0.0,
|
| 643 |
mcfurry_strength: float = 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 644 |
progress=None,
|
| 645 |
):
|
| 646 |
return int(gpu_duration)
|
|
@@ -678,6 +708,11 @@ def generate_video(
|
|
| 678 |
reasoning_strength: float = 0.0,
|
| 679 |
twostep_strength: float = 0.0,
|
| 680 |
mcfurry_strength: float = 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 681 |
progress=gr.Progress(track_tqdm=True),
|
| 682 |
):
|
| 683 |
try:
|
|
@@ -862,6 +897,26 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 862 |
label="t2v anthro realism strength",
|
| 863 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 864 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 865 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|
| 866 |
lora_status = gr.Textbox(
|
| 867 |
label="LoRA Cache Status",
|
|
@@ -899,7 +954,7 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 899 |
|
| 900 |
prepare_lora_btn.click(
|
| 901 |
fn=prepare_lora_cache,
|
| 902 |
-
inputs=[singularity_strength, teneros_strength, sulphur_strength, pose_strength, general_strength, motion_strength, dreamlay_strength, mself_strength, dramatic_strength, fluid_strength, liquid_strength, demopose_strength, voice_strength, realism_strength, transition_strength, physics_strength, reasoning_strength, twostep_strength, mcfurry_strength],
|
| 903 |
outputs=[lora_status],
|
| 904 |
)
|
| 905 |
|
|
@@ -908,7 +963,7 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 908 |
inputs=[
|
| 909 |
first_image, last_image, input_audio, prompt, duration, gpu_duration, enhance_prompt,
|
| 910 |
seed, randomize_seed, height, width,
|
| 911 |
-
singularity_strength, teneros_strength, sulphur_strength, pose_strength, general_strength, motion_strength, dreamlay_strength, mself_strength, dramatic_strength, fluid_strength, liquid_strength, demopose_strength, voice_strength, realism_strength, transition_strength, physics_strength, reasoning_strength, twostep_strength, mcfurry_strength,
|
| 912 |
],
|
| 913 |
outputs=[output_video, seed],
|
| 914 |
)
|
|
|
|
| 302 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Cr3ampi3_animation_sulphur-2_i2v_v1.0.safetensors") # cr3ampi3 animation
|
| 303 |
liquid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="liquid_wet_dr1pp_ltx2_v1.0_scaled.safetensors") # wet dr1pp
|
| 304 |
demopose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="clapping-cheeks-audio-v001-alpha.safetensors")
|
| 305 |
+
voice_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="hentai_voice_ltx23_v2.comfy.safetensors")
|
| 306 |
realism_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="FurryenhancerLTX2.3V4.094fused.safetensors")
|
| 307 |
transition_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_takerpov_lora_v1.2.safetensors") # takerpov1, taker pov
|
| 308 |
physics_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Physics_V2_000002000.safetensors")
|
| 309 |
reasoning_lora_path = hf_hub_download(repo_id="LiconStudio/Ltx2.3-VBVR-lora-I2V", filename="Ltx2.3-Licon-VBVR-I2V-390K-R32.safetensors")
|
| 310 |
twostep_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Multi_step_video_reasoning_V0.1.safetensors")
|
| 311 |
mcfurry_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_3_mc_Furry_realistic_lora_v1.safetensors")
|
| 312 |
+
dm_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Doggy_mission_sulphur-2_v0.5.safetensors")
|
| 313 |
+
praxis_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Penile_Praxis_V4.safetensors")
|
| 314 |
+
threed_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="ltx2-3d-animations-12500-steps-k3nk.safetensors")
|
| 315 |
+
concept_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="ltx23_nsfw_helper_multi_concept_lora_v2.safetensors")
|
| 316 |
+
bulge_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="stomach_bulge_10eros_sulphur_v1.safetensors")
|
| 317 |
|
| 318 |
print(f"Singularity LoRA: {singularity_lora_path}")
|
| 319 |
print(f"10Eros LoRA: {teneros_lora_path}")
|
|
|
|
| 334 |
print(f"Reasoning LoRA: {reasoning_lora_path}")
|
| 335 |
print(f"Twostep LoRA: {twostep_lora_path}")
|
| 336 |
print(f"Mcfurry LoRA: {mcfurry_lora_path}")
|
| 337 |
+
print(f"DM LoRA: {dm_lora_path}")
|
| 338 |
+
print(f"Praxis LoRA: {praxis_lora_path}")
|
| 339 |
+
print(f"ThreeD LoRA: {threed_lora_path}")
|
| 340 |
+
print(f"Concept LoRA: {concept_lora_path}")
|
| 341 |
+
print(f"Bulge LoRA: {bulge_lora_path}")
|
| 342 |
# ----------------------------------------------------------------
|
| 343 |
|
| 344 |
print(f"Checkpoint: {checkpoint_path}")
|
|
|
|
| 356 |
)
|
| 357 |
# ----------------------------------------------------------------
|
| 358 |
|
| 359 |
+
def _make_lora_key(singularity_strength: float, teneros_strength: float, sulphur_strength: float, pose_strength: float, general_strength: float, motion_strength: float, dreamlay_strength: float, mself_strength: float, dramatic_strength: float, fluid_strength: float, liquid_strength: float, demopose_strength: float, voice_strength: float, realism_strength: float, transition_strength: float, physics_strength: float, reasoning_strength: float, twostep_strength: float, mcfurry_strength: float, dm_strength: float, praxis_strength: float, threed_strength: float, concept_strength: float, bulge_strength: float) -> tuple[str, str]:
|
| 360 |
rx = round(float(singularity_strength), 2)
|
| 361 |
ra = round(float(teneros_strength), 2)
|
| 362 |
rb = round(float(sulphur_strength), 2)
|
|
|
|
| 376 |
ri = round(float(reasoning_strength), 2)
|
| 377 |
rw = round(float(twostep_strength), 2)
|
| 378 |
mc = round(float(mcfurry_strength), 2)
|
| 379 |
+
dm = round(float(dm_strength), 2)
|
| 380 |
+
pr = round(float(praxis_strength), 2)
|
| 381 |
+
td = round(float(threed_strength), 2)
|
| 382 |
+
co = round(float(concept_strength), 2)
|
| 383 |
+
bu = round(float(bulge_strength), 2)
|
| 384 |
+
key_str = f"{singularity_lora_path}:{rx}|{teneros_lora_path}:{ra}|{sulphur_lora_path}:{rb}|{pose_lora_path}:{rp}|{general_lora_path}:{rg}|{motion_lora_path}:{rm}|{dreamlay_lora_path}:{rd}|{mself_lora_path}:{rs}|{dramatic_lora_path}:{rr}|{fluid_lora_path}:{rf}|{liquid_lora_path}:{rl}|{demopose_lora_path}:{ro}|{voice_lora_path}:{rv}|{realism_lora_path}:{re}|{transition_lora_path}:{rt}|{physics_lora_path}:{ry}|{reasoning_lora_path}:{ri}|{twostep_lora_path}:{rw}|{mcfurry_lora_path}:{mc}|{dm_lora_path}:{dm}|{praxis_lora_path}:{pr}|{threed_lora_path}:{td}|{concept_lora_path}:{co}|{bulge_lora_path}:{bu}"
|
| 385 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 386 |
return key, key_str
|
| 387 |
|
|
|
|
| 406 |
reasoning_strength: float,
|
| 407 |
twostep_strength: float,
|
| 408 |
mcfurry_strength: float,
|
| 409 |
+
dm_strength: float,
|
| 410 |
+
praxis_strength: float,
|
| 411 |
+
threed_strength: float,
|
| 412 |
+
concept_strength: float,
|
| 413 |
+
bulge_strength: float,
|
| 414 |
progress=gr.Progress(track_tqdm=True),
|
| 415 |
):
|
| 416 |
"""
|
|
|
|
| 458 |
(reasoning_lora_path, round(float(reasoning_strength), 2)),
|
| 459 |
(twostep_lora_path, round(float(twostep_strength), 2)),
|
| 460 |
(mcfurry_lora_path, round(float(mcfurry_strength), 2)),
|
| 461 |
+
(dm_lora_path, round(float(dm_strength), 2)),
|
| 462 |
+
(praxis_lora_path, round(float(praxis_strength), 2)),
|
| 463 |
+
(threed_lora_path, round(float(threed_strength), 2)),
|
| 464 |
+
(concept_lora_path, round(float(concept_strength), 2)),
|
| 465 |
+
(bulge_lora_path, round(float(bulge_strength), 2)),
|
| 466 |
]
|
| 467 |
loras_for_builder = [
|
| 468 |
LoraPathStrengthAndSDOps(path, strength, LTXV_LORA_COMFY_RENAMING_MAP)
|
|
|
|
| 666 |
reasoning_strength: float = 0.0,
|
| 667 |
twostep_strength: float = 0.0,
|
| 668 |
mcfurry_strength: float = 0.0,
|
| 669 |
+
dm_strength: float = 0.0,
|
| 670 |
+
praxis_strength: float = 0.0,
|
| 671 |
+
threed_strength: float = 0.0,
|
| 672 |
+
concept_strength: float = 0.0,
|
| 673 |
+
bulge_strength: float = 0.0,
|
| 674 |
progress=None,
|
| 675 |
):
|
| 676 |
return int(gpu_duration)
|
|
|
|
| 708 |
reasoning_strength: float = 0.0,
|
| 709 |
twostep_strength: float = 0.0,
|
| 710 |
mcfurry_strength: float = 0.0,
|
| 711 |
+
dm_strength: float = 0.0,
|
| 712 |
+
praxis_strength: float = 0.0,
|
| 713 |
+
threed_strength: float = 0.0,
|
| 714 |
+
concept_strength: float = 0.0,
|
| 715 |
+
bulge_strength: float = 0.0,
|
| 716 |
progress=gr.Progress(track_tqdm=True),
|
| 717 |
):
|
| 718 |
try:
|
|
|
|
| 897 |
label="t2v anthro realism strength",
|
| 898 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 899 |
)
|
| 900 |
+
dm_strength = gr.Slider(
|
| 901 |
+
label="DM3D strength",
|
| 902 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 903 |
+
)
|
| 904 |
+
praxis_strength = gr.Slider(
|
| 905 |
+
label="Praxis strength",
|
| 906 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 907 |
+
)
|
| 908 |
+
threed_strength = gr.Slider(
|
| 909 |
+
label="3D animation strength",
|
| 910 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 911 |
+
)
|
| 912 |
+
concept_strength = gr.Slider(
|
| 913 |
+
label="Conceptual strength",
|
| 914 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 915 |
+
)
|
| 916 |
+
bulge_strength = gr.Slider(
|
| 917 |
+
label="Bulge strength",
|
| 918 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 919 |
+
)
|
| 920 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|
| 921 |
lora_status = gr.Textbox(
|
| 922 |
label="LoRA Cache Status",
|
|
|
|
| 954 |
|
| 955 |
prepare_lora_btn.click(
|
| 956 |
fn=prepare_lora_cache,
|
| 957 |
+
inputs=[singularity_strength, teneros_strength, sulphur_strength, pose_strength, general_strength, motion_strength, dreamlay_strength, mself_strength, dramatic_strength, fluid_strength, liquid_strength, demopose_strength, voice_strength, realism_strength, transition_strength, physics_strength, reasoning_strength, twostep_strength, mcfurry_strength, dm_strength, praxis_strength, threed_strength, concept_strength, bulge_strength],
|
| 958 |
outputs=[lora_status],
|
| 959 |
)
|
| 960 |
|
|
|
|
| 963 |
inputs=[
|
| 964 |
first_image, last_image, input_audio, prompt, duration, gpu_duration, enhance_prompt,
|
| 965 |
seed, randomize_seed, height, width,
|
| 966 |
+
singularity_strength, teneros_strength, sulphur_strength, pose_strength, general_strength, motion_strength, dreamlay_strength, mself_strength, dramatic_strength, fluid_strength, liquid_strength, demopose_strength, voice_strength, realism_strength, transition_strength, physics_strength, reasoning_strength, twostep_strength, mcfurry_strength, dm_strength, praxis_strength, threed_strength, concept_strength, bulge_strength,
|
| 967 |
],
|
| 968 |
outputs=[output_video, seed],
|
| 969 |
)
|