JonathanColetti commited on
Commit
07d89ca
·
verified ·
1 Parent(s): f775403

deliberate examples: near steer continues, far steer breaks

Browse files
Files changed (1) hide show
  1. app.py +16 -4
app.py CHANGED
@@ -200,6 +200,9 @@ PROMPTS = {f"{p['idx']:>2} · {p['text']}": p["idx"] for p in INFO["prompts"]}
200
  WORLDS = {f"world {w['idx']} · {w['prompt'][:70]}": w["idx"] for w in INFO["worlds"]}
201
  WORLD_LABELS = list(WORLDS)
202
  PROMPT_LABELS = list(PROMPTS)
 
 
 
203
  print(f"[boot] ready: step {INFO['step']}, {len(PROMPTS)} prompts, "
204
  f"{len(WORLDS)} worlds", flush=True)
205
 
@@ -350,6 +353,11 @@ NOTES = f"""
350
  - Prompts come from the project's 96-prompt bank, the conditioning every published
351
  number refers to. Free text needs umt5-xxl (11 GB) and is not loaded here; the
352
  [local demo]({GITHUB}) has it.
 
 
 
 
 
353
  - One stream at a time: the engine holds a single K/V cache, so requests queue.
354
  - A stream cannot exceed 1024 latent frames (~4.3 min) — that is where `WanModel`'s
355
  RoPE tables end. It stops itself and says so.
@@ -378,10 +386,14 @@ with gr.Blocks(title="LiveWan") as demo:
378
 
379
  gr.Examples(
380
  examples=[
381
- [WORLD_LABELS[2], NO_STEER, 6, 20, 0],
382
- [WORLD_LABELS[2], PROMPT_LABELS[60], 6, 18, 0],
383
- [WORLD_LABELS[0], PROMPT_LABELS[3], 8, 18, 0],
384
- [WORLD_LABELS[1], PROMPT_LABELS[45], 7, 18, 0],
 
 
 
 
385
  ],
386
  inputs=[world, steer_to, steer_at, seconds, seed],
387
  label="Try one",
 
200
  WORLDS = {f"world {w['idx']} · {w['prompt'][:70]}": w["idx"] for w in INFO["worlds"]}
201
  WORLD_LABELS = list(WORLDS)
202
  PROMPT_LABELS = list(PROMPTS)
203
+ # by bank index, so the examples below can name the prompt they mean
204
+ P = {i: lbl for lbl, i in PROMPTS.items()}
205
+ W = {i: lbl for lbl, i in WORLDS.items()}
206
  print(f"[boot] ready: step {INFO['step']}, {len(PROMPTS)} prompts, "
207
  f"{len(WORLDS)} worlds", flush=True)
208
 
 
353
  - Prompts come from the project's 96-prompt bank, the conditioning every published
354
  number refers to. Free text needs umt5-xxl (11 GB) and is not loaded here; the
355
  [local demo]({GITHUB}) has it.
356
+ - **How far you steer matters.** Swapping to a nearby scene (waterfall to mountain
357
+ stream) continues cleanly, because the K/V cache the stream is conditioned on
358
+ still describes something like the new prompt. Swapping somewhere very different
359
+ (waterfall to an aurora at night) visibly falls apart over the following seconds.
360
+ Both are worth trying — the examples below include one of each.
361
  - One stream at a time: the engine holds a single K/V cache, so requests queue.
362
  - A stream cannot exceed 1024 latent frames (~4.3 min) — that is where `WanModel`'s
363
  RoPE tables end. It stops itself and says so.
 
386
 
387
  gr.Examples(
388
  examples=[
389
+ # left alone, the waterfall holds for the full 20 s
390
+ [W[60], NO_STEER, 6, 20, 0],
391
+ # a near steer: waterfall -> mountain stream. The scene carries on
392
+ [W[60], P[57], 6, 18, 0],
393
+ # a far steer: waterfall -> aurora at night. This is where it breaks
394
+ [W[60], P[68], 6, 18, 0],
395
+ # a person, steered to another person
396
+ [W[0], P[2], 7, 18, 0],
397
  ],
398
  inputs=[world, steer_to, steer_at, seconds, seed],
399
  label="Try one",