Update app.py
Browse files
app.py
CHANGED
|
@@ -330,7 +330,6 @@ else:
|
|
| 330 |
checkpoint_path = EROS_FIXED
|
| 331 |
spatial_upsampler_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename="ltx-2.3-spatial-upscaler-x2-1.0.safetensors")
|
| 332 |
gemma_root = snapshot_download(repo_id=GEMMA_REPO)
|
| 333 |
-
distilled_lora_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename=DISTILLED_LORA_FILE)
|
| 334 |
|
| 335 |
# ---- Insert block (LoRA downloads) between lines 268 and 269 ----
|
| 336 |
# LoRA repo + download the requested LoRA adapters
|
|
@@ -347,7 +346,7 @@ mself_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Furry Hyper Mastu
|
|
| 347 |
dramatic_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2.3 - Orgasm.safetensors") # "[He | She] is having am orgasm." (am or an?)
|
| 348 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="cr3ampi3_animation_i2v_ltx2_v1.0.safetensors") # cr3ampi3 animation., missionary animation, doggystyle bouncy animation, double penetration animation
|
| 349 |
liquid_lora_path = hf_hub_download(repo_id="valiantcat/LTX-2.3-Transition-LORA", filename="ltx2.3-transition.safetensors") # wet dr1pp
|
| 350 |
-
demopose_lora_path = hf_hub_download(repo_id=
|
| 351 |
|
| 352 |
print(f"Pose LoRA: {pose_lora_path}")
|
| 353 |
print(f"General LoRA: {general_lora_path}")
|
|
@@ -367,12 +366,6 @@ print(f"Distilled LoRA: {distilled_lora_path}")
|
|
| 367 |
|
| 368 |
# Initialize pipeline WITH text encoder and optional audio support
|
| 369 |
# ---- Replace block (pipeline init) lines 275-281 ----
|
| 370 |
-
print("Creating TI2VidTwoStagesPipeline...")
|
| 371 |
-
distilled_lora = [LoraPathStrengthAndSDOps(
|
| 372 |
-
path=distilled_lora_path,
|
| 373 |
-
strength=0.9,
|
| 374 |
-
sd_ops=SDOps(name="distilled_lora", mapping=()),
|
| 375 |
-
)]
|
| 376 |
pipeline = LTX23DistilledA2VPipeline(
|
| 377 |
distilled_checkpoint_path=checkpoint_path,
|
| 378 |
spatial_upsampler_path=spatial_upsampler_path,
|
|
@@ -805,7 +798,7 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 805 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 806 |
)
|
| 807 |
demopose_strength = gr.Slider(
|
| 808 |
-
label="
|
| 809 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 810 |
)
|
| 811 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|
|
|
|
| 330 |
checkpoint_path = EROS_FIXED
|
| 331 |
spatial_upsampler_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename="ltx-2.3-spatial-upscaler-x2-1.0.safetensors")
|
| 332 |
gemma_root = snapshot_download(repo_id=GEMMA_REPO)
|
|
|
|
| 333 |
|
| 334 |
# ---- Insert block (LoRA downloads) between lines 268 and 269 ----
|
| 335 |
# LoRA repo + download the requested LoRA adapters
|
|
|
|
| 346 |
dramatic_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2.3 - Orgasm.safetensors") # "[He | She] is having am orgasm." (am or an?)
|
| 347 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="cr3ampi3_animation_i2v_ltx2_v1.0.safetensors") # cr3ampi3 animation., missionary animation, doggystyle bouncy animation, double penetration animation
|
| 348 |
liquid_lora_path = hf_hub_download(repo_id="valiantcat/LTX-2.3-Transition-LORA", filename="ltx2.3-transition.safetensors") # wet dr1pp
|
| 349 |
+
demopose_lora_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename=DISTILLED_LORA_FILE)
|
| 350 |
|
| 351 |
print(f"Pose LoRA: {pose_lora_path}")
|
| 352 |
print(f"General LoRA: {general_lora_path}")
|
|
|
|
| 366 |
|
| 367 |
# Initialize pipeline WITH text encoder and optional audio support
|
| 368 |
# ---- Replace block (pipeline init) lines 275-281 ----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 369 |
pipeline = LTX23DistilledA2VPipeline(
|
| 370 |
distilled_checkpoint_path=checkpoint_path,
|
| 371 |
spatial_upsampler_path=spatial_upsampler_path,
|
|
|
|
| 798 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 799 |
)
|
| 800 |
demopose_strength = gr.Slider(
|
| 801 |
+
label="Distilled strength",
|
| 802 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 803 |
)
|
| 804 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|