Spaces:
Running on Zero
Running on Zero
Rename app(old).py to app.py
Browse files- app(old).py → app.py +96 -30
app(old).py → app.py
RENAMED
|
@@ -233,7 +233,7 @@ weights_dir = Path("weights")
|
|
| 233 |
weights_dir.mkdir(exist_ok=True)
|
| 234 |
checkpoint_path = hf_hub_download(
|
| 235 |
repo_id="TenStrip/LTX2.3-10Eros",
|
| 236 |
-
filename="
|
| 237 |
local_dir=str(weights_dir),
|
| 238 |
local_dir_use_symlinks=False,
|
| 239 |
)
|
|
@@ -248,27 +248,33 @@ LORA_REPO = "dagloop5/LoRA"
|
|
| 248 |
print("=" * 80)
|
| 249 |
print("Downloading LoRA adapters from dagloop5/LoRA...")
|
| 250 |
print("=" * 80)
|
| 251 |
-
|
|
|
|
| 252 |
pose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2_3_NSFW_furry_concat_v2.safetensors")
|
| 253 |
-
twod_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_2d_NSFW_motion_enhancer.safetensors") # 2d style animation
|
| 254 |
general_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_reasoning_I2V_V3.safetensors")
|
| 255 |
motion_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Sulphur_LTX 2.3_better _NSFW_motion.safetensors")
|
| 256 |
dreamlay_lora_path = hf_hub_download(repo_id="lynaNSFW/DR34ML4Y_AIO_NSFW_LTX23", filename="DR34ML4Y_LTXXX_V2.safetensors") # m15510n4ry, bl0wj0b, d0ubl3_bj, d0gg1e, c0wg1rl
|
| 257 |
mself_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Furry Hyper Masturbation - LTX-2 I2V v1.safetensors") # Hyperfap
|
| 258 |
-
dramatic_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2.3 - Orgasm.safetensors") #
|
| 259 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Cr3ampi3_animation_sulphur-2_i2v_v1.0.safetensors") # cr3ampi3 animation
|
| 260 |
liquid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="liquid_wet_dr1pp_ltx2_v1.0_scaled.safetensors") # wet dr1pp
|
| 261 |
demopose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="clapping-cheeks-audio-v001-alpha.safetensors")
|
| 262 |
-
voice_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="
|
| 263 |
realism_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="FurryenhancerLTX2.3V4.094fused.safetensors")
|
| 264 |
transition_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_takerpov_lora_v1.2.safetensors") # takerpov1, taker pov
|
| 265 |
physics_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Physics_V2_000002000.safetensors")
|
| 266 |
reasoning_lora_path = hf_hub_download(repo_id="LiconStudio/Ltx2.3-VBVR-lora-I2V", filename="Ltx2.3-Licon-VBVR-I2V-390K-R32.safetensors")
|
| 267 |
twostep_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Multi_step_video_reasoning_V0.1.safetensors")
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
print(f"Pose LoRA: {pose_lora_path}")
|
| 271 |
-
print(f"twod LoRA: {twod_lora_path}")
|
| 272 |
print(f"General LoRA: {general_lora_path}")
|
| 273 |
print(f"Motion LoRA: {motion_lora_path}")
|
| 274 |
print(f"Dreamlay LoRA: {dreamlay_lora_path}")
|
|
@@ -283,6 +289,12 @@ print(f"Transition LoRA: {transition_lora_path}")
|
|
| 283 |
print(f"Physics LoRA: {physics_lora_path}")
|
| 284 |
print(f"Reasoning LoRA: {reasoning_lora_path}")
|
| 285 |
print(f"Twostep LoRA: {twostep_lora_path}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
|
| 287 |
print(f"Checkpoint: {checkpoint_path}")
|
| 288 |
print(f"Spatial upsampler: {spatial_upsampler_path}")
|
|
@@ -299,10 +311,10 @@ pipeline = LTX23DistilledA2VPipeline(
|
|
| 299 |
)
|
| 300 |
# ----------------------------------------------------------------
|
| 301 |
|
| 302 |
-
def _make_lora_key(
|
| 303 |
-
rx = round(float(
|
|
|
|
| 304 |
rp = round(float(pose_strength), 2)
|
| 305 |
-
ra = round(float(twod_strength), 2)
|
| 306 |
rg = round(float(general_strength), 2)
|
| 307 |
rm = round(float(motion_strength), 2)
|
| 308 |
rd = round(float(dreamlay_strength), 2)
|
|
@@ -317,15 +329,21 @@ def _make_lora_key(distilled_strength: float, pose_strength: float, twod_strengt
|
|
| 317 |
ry = round(float(physics_strength), 2)
|
| 318 |
ri = round(float(reasoning_strength), 2)
|
| 319 |
rw = round(float(twostep_strength), 2)
|
| 320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 322 |
return key, key_str
|
| 323 |
|
| 324 |
|
| 325 |
def prepare_lora_cache(
|
| 326 |
-
|
|
|
|
| 327 |
pose_strength: float,
|
| 328 |
-
twod_strength: float,
|
| 329 |
general_strength: float,
|
| 330 |
motion_strength: float,
|
| 331 |
dreamlay_strength: float,
|
|
@@ -340,6 +358,12 @@ def prepare_lora_cache(
|
|
| 340 |
physics_strength: float,
|
| 341 |
reasoning_strength: float,
|
| 342 |
twostep_strength: float,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
progress=gr.Progress(track_tqdm=True),
|
| 344 |
):
|
| 345 |
"""
|
|
@@ -352,7 +376,7 @@ def prepare_lora_cache(
|
|
| 352 |
global PENDING_LORA_KEY, PENDING_LORA_STATE, PENDING_LORA_STATUS
|
| 353 |
|
| 354 |
ledger = pipeline.model_ledger
|
| 355 |
-
key, _ = _make_lora_key(
|
| 356 |
cache_path = LORA_CACHE_DIR / f"{key}.safetensors"
|
| 357 |
|
| 358 |
progress(0.05, desc="Preparing LoRA state")
|
|
@@ -368,9 +392,9 @@ def prepare_lora_cache(
|
|
| 368 |
print(f"[LoRA] Cache load failed: {type(e).__name__}: {e}")
|
| 369 |
|
| 370 |
entries = [
|
| 371 |
-
(
|
|
|
|
| 372 |
(pose_lora_path, round(float(pose_strength), 2)),
|
| 373 |
-
(twod_lora_path, round(float(twod_strength), 2)),
|
| 374 |
(general_lora_path, round(float(general_strength), 2)),
|
| 375 |
(motion_lora_path, round(float(motion_strength), 2)),
|
| 376 |
(dreamlay_lora_path, round(float(dreamlay_strength), 2)),
|
|
@@ -385,6 +409,12 @@ def prepare_lora_cache(
|
|
| 385 |
(physics_lora_path, round(float(physics_strength), 2)),
|
| 386 |
(reasoning_lora_path, round(float(reasoning_strength), 2)),
|
| 387 |
(twostep_lora_path, round(float(twostep_strength), 2)),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
]
|
| 389 |
loras_for_builder = [
|
| 390 |
LoraPathStrengthAndSDOps(path, strength, LTXV_LORA_COMFY_RENAMING_MAP)
|
|
@@ -568,9 +598,9 @@ def get_gpu_duration(
|
|
| 568 |
randomize_seed: bool = True,
|
| 569 |
height: int = 1024,
|
| 570 |
width: int = 1536,
|
| 571 |
-
|
|
|
|
| 572 |
pose_strength: float = 0.0,
|
| 573 |
-
twod_strength: float = 0.0,
|
| 574 |
general_strength: float = 0.0,
|
| 575 |
motion_strength: float = 0.0,
|
| 576 |
dreamlay_strength: float = 0.0,
|
|
@@ -585,6 +615,12 @@ def get_gpu_duration(
|
|
| 585 |
physics_strength: float = 0.0,
|
| 586 |
reasoning_strength: float = 0.0,
|
| 587 |
twostep_strength: float = 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 588 |
progress=None,
|
| 589 |
):
|
| 590 |
return int(gpu_duration)
|
|
@@ -602,9 +638,9 @@ def generate_video(
|
|
| 602 |
randomize_seed: bool = True,
|
| 603 |
height: int = 1024,
|
| 604 |
width: int = 1536,
|
| 605 |
-
|
|
|
|
| 606 |
pose_strength: float = 0.0,
|
| 607 |
-
twod_strength: float = 0.0,
|
| 608 |
general_strength: float = 0.0,
|
| 609 |
motion_strength: float = 0.0,
|
| 610 |
dreamlay_strength: float = 0.0,
|
|
@@ -619,6 +655,12 @@ def generate_video(
|
|
| 619 |
physics_strength: float = 0.0,
|
| 620 |
reasoning_strength: float = 0.0,
|
| 621 |
twostep_strength: float = 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 622 |
progress=gr.Progress(track_tqdm=True),
|
| 623 |
):
|
| 624 |
try:
|
|
@@ -725,16 +767,16 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 725 |
high_res = gr.Checkbox(label="High Resolution", value=True)
|
| 726 |
with gr.Column():
|
| 727 |
gr.Markdown("### LoRA adapter strengths (set to 0 to disable; slow and WIP)")
|
| 728 |
-
|
| 729 |
-
label="
|
| 730 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 731 |
)
|
| 732 |
-
|
| 733 |
-
label="
|
| 734 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 735 |
)
|
| 736 |
-
|
| 737 |
-
label="
|
| 738 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 739 |
)
|
| 740 |
general_strength = gr.Slider(
|
|
@@ -790,7 +832,31 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 790 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 791 |
)
|
| 792 |
twostep_strength = gr.Slider(
|
| 793 |
-
label="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 794 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 795 |
)
|
| 796 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|
|
@@ -830,7 +896,7 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 830 |
|
| 831 |
prepare_lora_btn.click(
|
| 832 |
fn=prepare_lora_cache,
|
| 833 |
-
inputs=[
|
| 834 |
outputs=[lora_status],
|
| 835 |
)
|
| 836 |
|
|
@@ -839,7 +905,7 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 839 |
inputs=[
|
| 840 |
first_image, last_image, prompt, duration, gpu_duration, enhance_prompt,
|
| 841 |
seed, randomize_seed, height, width,
|
| 842 |
-
|
| 843 |
],
|
| 844 |
outputs=[output_video, seed],
|
| 845 |
)
|
|
|
|
| 233 |
weights_dir.mkdir(exist_ok=True)
|
| 234 |
checkpoint_path = hf_hub_download(
|
| 235 |
repo_id="TenStrip/LTX2.3-10Eros",
|
| 236 |
+
filename="10Eros_v1.2_bf16.safetensors",
|
| 237 |
local_dir=str(weights_dir),
|
| 238 |
local_dir_use_symlinks=False,
|
| 239 |
)
|
|
|
|
| 248 |
print("=" * 80)
|
| 249 |
print("Downloading LoRA adapters from dagloop5/LoRA...")
|
| 250 |
print("=" * 80)
|
| 251 |
+
singularity_lora_path = hf_hub_download(repo_id="TenStrip/LTX2.3_JoyAI_Lora_Extracted", filename="JoyAI-Echo_r256.safetensors")
|
| 252 |
+
teneros_lora_path = hf_hub_download(repo_id="TenStrip/LTX2.3_Distilled_Lora_1.1_Experiments", filename="ltx-2.3-22b-distilled-lora-1.1_fro90_ceil52_condsafe.safetensors")
|
| 253 |
pose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2_3_NSFW_furry_concat_v2.safetensors")
|
|
|
|
| 254 |
general_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_reasoning_I2V_V3.safetensors")
|
| 255 |
motion_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Sulphur_LTX 2.3_better _NSFW_motion.safetensors")
|
| 256 |
dreamlay_lora_path = hf_hub_download(repo_id="lynaNSFW/DR34ML4Y_AIO_NSFW_LTX23", filename="DR34ML4Y_LTXXX_V2.safetensors") # m15510n4ry, bl0wj0b, d0ubl3_bj, d0gg1e, c0wg1rl
|
| 257 |
mself_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Furry Hyper Masturbation - LTX-2 I2V v1.safetensors") # Hyperfap
|
| 258 |
+
dramatic_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2.3 - Orgasm.safetensors") # buddr
|
| 259 |
fluid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Cr3ampi3_animation_sulphur-2_i2v_v1.0.safetensors") # cr3ampi3 animation
|
| 260 |
liquid_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="liquid_wet_dr1pp_ltx2_v1.0_scaled.safetensors") # wet dr1pp
|
| 261 |
demopose_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="clapping-cheeks-audio-v001-alpha.safetensors")
|
| 262 |
+
voice_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="hentai_voice_ltx23_v2.comfy.safetensors")
|
| 263 |
realism_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="FurryenhancerLTX2.3V4.094fused.safetensors")
|
| 264 |
transition_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_takerpov_lora_v1.2.safetensors") # takerpov1, taker pov
|
| 265 |
physics_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Physics_V2_000002000.safetensors")
|
| 266 |
reasoning_lora_path = hf_hub_download(repo_id="LiconStudio/Ltx2.3-VBVR-lora-I2V", filename="Ltx2.3-Licon-VBVR-I2V-390K-R32.safetensors")
|
| 267 |
twostep_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX2.3_Multi_step_video_reasoning_V0.1.safetensors")
|
| 268 |
+
mcfurry_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="LTX-2_3_mc_Furry_realistic_lora_v1.safetensors")
|
| 269 |
+
dm_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Doggy_mission_sulphur-2_v0.5.safetensors")
|
| 270 |
+
praxis_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="Penile_Praxis_V4.safetensors")
|
| 271 |
+
threed_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="ltx2-3d-animations-12500-steps-k3nk.safetensors")
|
| 272 |
+
concept_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="ltx23_nsfw_helper_multi_concept_lora_v2.safetensors")
|
| 273 |
+
bulge_lora_path = hf_hub_download(repo_id=LORA_REPO, filename="stomach_bulge_10eros_sulphur_v1.safetensors")
|
| 274 |
+
|
| 275 |
+
print(f"Singularity LoRA: {singularity_lora_path}")
|
| 276 |
+
print(f"10Eros LoRA: {teneros_lora_path}")
|
| 277 |
print(f"Pose LoRA: {pose_lora_path}")
|
|
|
|
| 278 |
print(f"General LoRA: {general_lora_path}")
|
| 279 |
print(f"Motion LoRA: {motion_lora_path}")
|
| 280 |
print(f"Dreamlay LoRA: {dreamlay_lora_path}")
|
|
|
|
| 289 |
print(f"Physics LoRA: {physics_lora_path}")
|
| 290 |
print(f"Reasoning LoRA: {reasoning_lora_path}")
|
| 291 |
print(f"Twostep LoRA: {twostep_lora_path}")
|
| 292 |
+
print(f"Mcfurry LoRA: {mcfurry_lora_path}")
|
| 293 |
+
print(f"DM LoRA: {dm_lora_path}")
|
| 294 |
+
print(f"Praxis LoRA: {praxis_lora_path}")
|
| 295 |
+
print(f"ThreeD LoRA: {threed_lora_path}")
|
| 296 |
+
print(f"Concept LoRA: {concept_lora_path}")
|
| 297 |
+
print(f"Bulge LoRA: {bulge_lora_path}")
|
| 298 |
|
| 299 |
print(f"Checkpoint: {checkpoint_path}")
|
| 300 |
print(f"Spatial upsampler: {spatial_upsampler_path}")
|
|
|
|
| 311 |
)
|
| 312 |
# ----------------------------------------------------------------
|
| 313 |
|
| 314 |
+
def _make_lora_key(singularity_strength: float, teneros_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]:
|
| 315 |
+
rx = round(float(singularity_strength), 2)
|
| 316 |
+
ra = round(float(teneros_strength), 2)
|
| 317 |
rp = round(float(pose_strength), 2)
|
|
|
|
| 318 |
rg = round(float(general_strength), 2)
|
| 319 |
rm = round(float(motion_strength), 2)
|
| 320 |
rd = round(float(dreamlay_strength), 2)
|
|
|
|
| 329 |
ry = round(float(physics_strength), 2)
|
| 330 |
ri = round(float(reasoning_strength), 2)
|
| 331 |
rw = round(float(twostep_strength), 2)
|
| 332 |
+
mc = round(float(mcfurry_strength), 2)
|
| 333 |
+
dm = round(float(dm_strength), 2)
|
| 334 |
+
pr = round(float(praxis_strength), 2)
|
| 335 |
+
td = round(float(threed_strength), 2)
|
| 336 |
+
co = round(float(concept_strength), 2)
|
| 337 |
+
bu = round(float(bulge_strength), 2)
|
| 338 |
+
key_str = f"{singularity_lora_path}:{rx}|{teneros_lora_path}:{ra}|{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}"
|
| 339 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 340 |
return key, key_str
|
| 341 |
|
| 342 |
|
| 343 |
def prepare_lora_cache(
|
| 344 |
+
singularity_strength: float,
|
| 345 |
+
teneros_strength: float,
|
| 346 |
pose_strength: float,
|
|
|
|
| 347 |
general_strength: float,
|
| 348 |
motion_strength: float,
|
| 349 |
dreamlay_strength: float,
|
|
|
|
| 358 |
physics_strength: float,
|
| 359 |
reasoning_strength: float,
|
| 360 |
twostep_strength: float,
|
| 361 |
+
mcfurry_strength: float,
|
| 362 |
+
dm_strength: float,
|
| 363 |
+
praxis_strength: float,
|
| 364 |
+
threed_strength: float,
|
| 365 |
+
concept_strength: float,
|
| 366 |
+
bulge_strength: float,
|
| 367 |
progress=gr.Progress(track_tqdm=True),
|
| 368 |
):
|
| 369 |
"""
|
|
|
|
| 376 |
global PENDING_LORA_KEY, PENDING_LORA_STATE, PENDING_LORA_STATUS
|
| 377 |
|
| 378 |
ledger = pipeline.model_ledger
|
| 379 |
+
key, _ = _make_lora_key(singularity_strength, teneros_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)
|
| 380 |
cache_path = LORA_CACHE_DIR / f"{key}.safetensors"
|
| 381 |
|
| 382 |
progress(0.05, desc="Preparing LoRA state")
|
|
|
|
| 392 |
print(f"[LoRA] Cache load failed: {type(e).__name__}: {e}")
|
| 393 |
|
| 394 |
entries = [
|
| 395 |
+
(singularity_lora_path, round(float(singularity_strength), 2)),
|
| 396 |
+
(teneros_lora_path, round(float(teneros_strength), 2)),
|
| 397 |
(pose_lora_path, round(float(pose_strength), 2)),
|
|
|
|
| 398 |
(general_lora_path, round(float(general_strength), 2)),
|
| 399 |
(motion_lora_path, round(float(motion_strength), 2)),
|
| 400 |
(dreamlay_lora_path, round(float(dreamlay_strength), 2)),
|
|
|
|
| 409 |
(physics_lora_path, round(float(physics_strength), 2)),
|
| 410 |
(reasoning_lora_path, round(float(reasoning_strength), 2)),
|
| 411 |
(twostep_lora_path, round(float(twostep_strength), 2)),
|
| 412 |
+
(mcfurry_lora_path, round(float(mcfurry_strength), 2)),
|
| 413 |
+
(dm_lora_path, round(float(dm_strength), 2)),
|
| 414 |
+
(praxis_lora_path, round(float(praxis_strength), 2)),
|
| 415 |
+
(threed_lora_path, round(float(threed_strength), 2)),
|
| 416 |
+
(concept_lora_path, round(float(concept_strength), 2)),
|
| 417 |
+
(bulge_lora_path, round(float(bulge_strength), 2)),
|
| 418 |
]
|
| 419 |
loras_for_builder = [
|
| 420 |
LoraPathStrengthAndSDOps(path, strength, LTXV_LORA_COMFY_RENAMING_MAP)
|
|
|
|
| 598 |
randomize_seed: bool = True,
|
| 599 |
height: int = 1024,
|
| 600 |
width: int = 1536,
|
| 601 |
+
singularity_strength: float = 0.0,
|
| 602 |
+
teneros_strength: float = 0.0,
|
| 603 |
pose_strength: float = 0.0,
|
|
|
|
| 604 |
general_strength: float = 0.0,
|
| 605 |
motion_strength: float = 0.0,
|
| 606 |
dreamlay_strength: float = 0.0,
|
|
|
|
| 615 |
physics_strength: float = 0.0,
|
| 616 |
reasoning_strength: float = 0.0,
|
| 617 |
twostep_strength: float = 0.0,
|
| 618 |
+
mcfurry_strength: float = 0.0,
|
| 619 |
+
dm_strength: float = 0.0,
|
| 620 |
+
praxis_strength: float = 0.0,
|
| 621 |
+
threed_strength: float = 0.0,
|
| 622 |
+
concept_strength: float = 0.0,
|
| 623 |
+
bulge_strength: float = 0.0,
|
| 624 |
progress=None,
|
| 625 |
):
|
| 626 |
return int(gpu_duration)
|
|
|
|
| 638 |
randomize_seed: bool = True,
|
| 639 |
height: int = 1024,
|
| 640 |
width: int = 1536,
|
| 641 |
+
singularity_strength: float = 0.0,
|
| 642 |
+
teneros_strength: float = 0.0,
|
| 643 |
pose_strength: float = 0.0,
|
|
|
|
| 644 |
general_strength: float = 0.0,
|
| 645 |
motion_strength: float = 0.0,
|
| 646 |
dreamlay_strength: float = 0.0,
|
|
|
|
| 655 |
physics_strength: float = 0.0,
|
| 656 |
reasoning_strength: float = 0.0,
|
| 657 |
twostep_strength: float = 0.0,
|
| 658 |
+
mcfurry_strength: float = 0.0,
|
| 659 |
+
dm_strength: float = 0.0,
|
| 660 |
+
praxis_strength: float = 0.0,
|
| 661 |
+
threed_strength: float = 0.0,
|
| 662 |
+
concept_strength: float = 0.0,
|
| 663 |
+
bulge_strength: float = 0.0,
|
| 664 |
progress=gr.Progress(track_tqdm=True),
|
| 665 |
):
|
| 666 |
try:
|
|
|
|
| 767 |
high_res = gr.Checkbox(label="High Resolution", value=True)
|
| 768 |
with gr.Column():
|
| 769 |
gr.Markdown("### LoRA adapter strengths (set to 0 to disable; slow and WIP)")
|
| 770 |
+
singularity_strength = gr.Slider(
|
| 771 |
+
label="JoyAI Lora strength",
|
| 772 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 773 |
)
|
| 774 |
+
teneros_strength = gr.Slider(
|
| 775 |
+
label="10Eros Distilled Lora strength",
|
| 776 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 777 |
)
|
| 778 |
+
pose_strength = gr.Slider(
|
| 779 |
+
label="Anthro Enhancer strength",
|
| 780 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 781 |
)
|
| 782 |
general_strength = gr.Slider(
|
|
|
|
| 832 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 833 |
)
|
| 834 |
twostep_strength = gr.Slider(
|
| 835 |
+
label="Two Step Reasoning strength",
|
| 836 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 837 |
+
)
|
| 838 |
+
mcfurry_strength = gr.Slider(
|
| 839 |
+
label="t2v anthro realism strength",
|
| 840 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 841 |
+
)
|
| 842 |
+
dm_strength = gr.Slider(
|
| 843 |
+
label="DM3D strength",
|
| 844 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 845 |
+
)
|
| 846 |
+
praxis_strength = gr.Slider(
|
| 847 |
+
label="Praxis strength",
|
| 848 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 849 |
+
)
|
| 850 |
+
threed_strength = gr.Slider(
|
| 851 |
+
label="3D animation strength",
|
| 852 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 853 |
+
)
|
| 854 |
+
concept_strength = gr.Slider(
|
| 855 |
+
label="Conceptual strength",
|
| 856 |
+
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 857 |
+
)
|
| 858 |
+
bulge_strength = gr.Slider(
|
| 859 |
+
label="Bulge strength",
|
| 860 |
minimum=0.0, maximum=2.0, value=0.0, step=0.01
|
| 861 |
)
|
| 862 |
prepare_lora_btn = gr.Button("Prepare / Load LoRA Cache", variant="secondary")
|
|
|
|
| 896 |
|
| 897 |
prepare_lora_btn.click(
|
| 898 |
fn=prepare_lora_cache,
|
| 899 |
+
inputs=[singularity_strength, teneros_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],
|
| 900 |
outputs=[lora_status],
|
| 901 |
)
|
| 902 |
|
|
|
|
| 905 |
inputs=[
|
| 906 |
first_image, last_image, prompt, duration, gpu_duration, enhance_prompt,
|
| 907 |
seed, randomize_seed, height, width,
|
| 908 |
+
singularity_strength, teneros_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,
|
| 909 |
],
|
| 910 |
outputs=[output_video, seed],
|
| 911 |
)
|