Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -351,12 +351,11 @@ def status() -> str:
|
|
| 351 |
return LOAD_ERROR
|
| 352 |
if PIPE is None:
|
| 353 |
return f"Loading `{MODEL_REPO}` (transformer + VAEs, 77.3 GB). Watch the Space logs."
|
| 354 |
-
import h3_aoti
|
| 355 |
|
| 356 |
film = "FILM **ready**" if FILM is not None else f"FILM **off** ({FILM_ERROR})"
|
| 357 |
return (
|
| 358 |
f"Ready · transformer + VAEs **bfloat16, unquantized** · placement `{PLACEMENT}` · attention "
|
| 359 |
-
f"`{ATTENTION}` · {
|
| 360 |
f"conditioner `{CONDITIONER_SPACE}`"
|
| 361 |
)
|
| 362 |
|
|
@@ -813,11 +812,22 @@ def generate(
|
|
| 813 |
post = [f"RCAS {float(sharpen):.2f}" if float(sharpen) > 0 else "no sharpening"]
|
| 814 |
post.append(f"FILM {multiplier}x -> {fps} fps" if multiplier > 1 else f"{fps} fps")
|
| 815 |
lora_text = " / ".join(
|
| 816 |
-
f"{LORA_LABELS.get(name, name)} {strength:.2f}"
|
|
|
|
|
|
|
| 817 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 818 |
report = (
|
| 819 |
f"`{width}x{height}`, {num_frames} frames ({num_frames / FPS:.3f} s) -> {out_frames} frames at {fps} fps · "
|
| 820 |
-
f"{
|
| 821 |
f"conditioner {condition_seconds:.0f}s ({plan['num_text_tokens']} tokens"
|
| 822 |
f"{', upsampled' if refined else ''}) · denoise + decode {denoise_seconds:.0f}s "
|
| 823 |
f"({denoise_seconds / max(1, int(steps)):.1f} s/step) · post {post_seconds:.0f}s · "
|
|
@@ -1049,7 +1059,7 @@ with gr.Blocks(title="PlagueKind · MiniMax-H3") as demo:
|
|
| 1049 |
maximum=2.0,
|
| 1050 |
step=0.05,
|
| 1051 |
value=DEFAULT_LORA_I_STRENGTH,
|
| 1052 |
-
|
| 1053 |
)
|
| 1054 |
with gr.Accordion("Custom LoRAs", open=False):
|
| 1055 |
lora_a_strength = gr.Slider(
|
|
|
|
| 351 |
return LOAD_ERROR
|
| 352 |
if PIPE is None:
|
| 353 |
return f"Loading `{MODEL_REPO}` (transformer + VAEs, 77.3 GB). Watch the Space logs."
|
|
|
|
| 354 |
|
| 355 |
film = "FILM **ready**" if FILM is not None else f"FILM **off** ({FILM_ERROR})"
|
| 356 |
return (
|
| 357 |
f"Ready · transformer + VAEs **bfloat16, unquantized** · placement `{PLACEMENT}` · attention "
|
| 358 |
+
f"`{ATTENTION}` · {film} · {LORA_STATUS or 'no LoRA'} · loaded in {LOADED_IN:.0f}s · "
|
| 359 |
f"conditioner `{CONDITIONER_SPACE}`"
|
| 360 |
)
|
| 361 |
|
|
|
|
| 812 |
post = [f"RCAS {float(sharpen):.2f}" if float(sharpen) > 0 else "no sharpening"]
|
| 813 |
post.append(f"FILM {multiplier}x -> {fps} fps" if multiplier > 1 else f"{fps} fps")
|
| 814 |
lora_text = " / ".join(
|
| 815 |
+
f"{LORA_LABELS.get(name, name)} {strength:.2f}"
|
| 816 |
+
for name, strength in lora_strengths.items()
|
| 817 |
+
if strength > 0
|
| 818 |
)
|
| 819 |
+
info = [
|
| 820 |
+
f"{int(steps)} steps of `{schedule_key}`",
|
| 821 |
+
f"sampler `{sampler}`",
|
| 822 |
+
f"shift {float(video_shift):.1f}/{float(audio_shift):.1f}",
|
| 823 |
+
*post,
|
| 824 |
+
f"seed {int(seed)}",
|
| 825 |
+
]
|
| 826 |
+
if lora_text:
|
| 827 |
+
info.append(lora_text)
|
| 828 |
report = (
|
| 829 |
f"`{width}x{height}`, {num_frames} frames ({num_frames / FPS:.3f} s) -> {out_frames} frames at {fps} fps · "
|
| 830 |
+
f"{' · '.join(info)}\n\n"
|
| 831 |
f"conditioner {condition_seconds:.0f}s ({plan['num_text_tokens']} tokens"
|
| 832 |
f"{', upsampled' if refined else ''}) · denoise + decode {denoise_seconds:.0f}s "
|
| 833 |
f"({denoise_seconds / max(1, int(steps)):.1f} s/step) · post {post_seconds:.0f}s · "
|
|
|
|
| 1059 |
maximum=2.0,
|
| 1060 |
step=0.05,
|
| 1061 |
value=DEFAULT_LORA_I_STRENGTH,
|
| 1062 |
+
visible=False, # not confirmed working at its own shift yet — see the 8-step LoRA thread
|
| 1063 |
)
|
| 1064 |
with gr.Accordion("Custom LoRAs", open=False):
|
| 1065 |
lora_a_strength = gr.Slider(
|