matlod commited on
Commit
48e222b
·
verified ·
1 Parent(s): 1016616

Stage 2 Pika workflow (Pika sampler; LoRA + clock off for the last step), levers table

Browse files
.gitattributes CHANGED
@@ -49,3 +49,6 @@ workflows/example_outputs/stage1_all_frames.mp4 filter=lfs diff=lfs merge=lfs -t
49
  workflows/example_outputs/stage1_kept.mp4 filter=lfs diff=lfs merge=lfs -text
50
  workflows/example_outputs/stage2_all_frames.mp4 filter=lfs diff=lfs merge=lfs -text
51
  workflows/example_outputs/stage2_kept.mp4 filter=lfs diff=lfs merge=lfs -text
 
 
 
 
49
  workflows/example_outputs/stage1_kept.mp4 filter=lfs diff=lfs merge=lfs -text
50
  workflows/example_outputs/stage2_all_frames.mp4 filter=lfs diff=lfs merge=lfs -text
51
  workflows/example_outputs/stage2_kept.mp4 filter=lfs diff=lfs merge=lfs -text
52
+ assets/pika_levers_sbs_kept.mp4 filter=lfs diff=lfs merge=lfs -text
53
+ workflows/example_outputs/stage2_pika_all_frames.mp4 filter=lfs diff=lfs merge=lfs -text
54
+ workflows/example_outputs/stage2_pika_kept.mp4 filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -80,7 +80,7 @@ Normal stretches play at normal speed and slowed stretches play as slow motion.
80
  | file | what it is |
81
  |---|---|
82
  | `minimax_h3_variable_clock_runf_step2000_r16.safetensors` | the LoRA as trained: all 50 blocks |
83
- | `minimax_h3_variable_clock_runf_step2000_r16_lateattn.safetensors` | **for stacking with Pika 6-step / turbo LoRAs:** blocks 0–34 as trained, blocks 35–49 attention only (their MLP parts removed; 170 of 200 modules). Less soft than the full LoRA, keeps part of the temporal steadiness. |
84
  | `minimax_h3_variable_clock_runf_step2000_r16_noblock49.safetensors` | the full LoRA without block 49. A smaller sharpness gain than `lateattn`. |
85
 
86
  Why the trimmed copies: stacked with a turbo LoRA, this LoRA softens the result. A block-by-block test with Pika
@@ -173,6 +173,7 @@ load it.
173
  | file | what it does |
174
  |---|---|
175
  | `stage1_t2v_clock.api.json` | **Stage 1:** text-to-video directly on the variable clock (LoRA + H3 True Clock), then keeps the first copy of every real frame |
 
176
  | `stage2_derope_clock.api.json` | **Stage 2:** the usual de-rope pass (H3 Time Smear → partial denoise → H3 Exact Recover), with the clock and the LoRA switched on |
177
  | `source_generation.api.json` | stock H3 at normal speed; its output is the example input for stage 2 |
178
 
@@ -185,6 +186,7 @@ Both clock workflows save two videos: `*_kept` (the real-time result) and `*_all
185
  - `source_native.mp4`: the stage 2 input.
186
  - `stage1_kept.mp4` / `stage1_all_frames.mp4`
187
  - `stage2_kept.mp4` / `stage2_all_frames.mp4`: frames 20–92 of the source, re-denoised at inject 0.45 (the MAINodes default).
 
188
 
189
  On the test machine (one RTX PRO 6000 Max-Q), each run took about 4–5 minutes.
190
 
@@ -226,6 +228,29 @@ def clock_map(latents, speeds): # speeds: one of 4, 2, 1 per 4-frame
226
  Untested: hold values other than 1/2/4, holds that straddle latents, clocks faster than normal, and strengths
227
  other than 1.0.
228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  ## How this compares to DyRoPE / H3 True Clock without a LoRA
230
 
231
  - **The clock signal is the same.** MAINodes' H3 True Clock, DyRoPE and this LoRA all give each latent a RoPE
 
80
  | file | what it is |
81
  |---|---|
82
  | `minimax_h3_variable_clock_runf_step2000_r16.safetensors` | the LoRA as trained: all 50 blocks |
83
+ | `minimax_h3_variable_clock_runf_step2000_r16_lateattn.safetensors` | for turbo LoRAs on a generic schedule (with Pika's own sampler the full file does as well): blocks 0–34 as trained, blocks 35–49 attention only (their MLP parts removed; 170 of 200 modules). Less soft than the full LoRA, keeps part of the temporal steadiness. |
84
  | `minimax_h3_variable_clock_runf_step2000_r16_noblock49.safetensors` | the full LoRA without block 49. A smaller sharpness gain than `lateattn`. |
85
 
86
  Why the trimmed copies: stacked with a turbo LoRA, this LoRA softens the result. A block-by-block test with Pika
 
173
  | file | what it does |
174
  |---|---|
175
  | `stage1_t2v_clock.api.json` | **Stage 1:** text-to-video directly on the variable clock (LoRA + H3 True Clock), then keeps the first copy of every real frame |
176
+ | `stage2_derope_clock_pika.api.json` | **Stage 2 with Pika 6-step (recommended):** Pika's own sampler (its six knots + `lcm`), the last 3 knots (inject 0.45). Steps 1–2 run Pika + this LoRA + H3 True Clock; the last step runs Pika alone on the normal clock. See "With Pika 6-step" below |
177
  | `stage2_derope_clock.api.json` | **Stage 2:** the usual de-rope pass (H3 Time Smear → partial denoise → H3 Exact Recover), with the clock and the LoRA switched on |
178
  | `source_generation.api.json` | stock H3 at normal speed; its output is the example input for stage 2 |
179
 
 
186
  - `source_native.mp4`: the stage 2 input.
187
  - `stage1_kept.mp4` / `stage1_all_frames.mp4`
188
  - `stage2_kept.mp4` / `stage2_all_frames.mp4`: frames 20–92 of the source, re-denoised at inject 0.45 (the MAINodes default).
189
+ - `stage2_pika_kept.mp4` / `stage2_pika_all_frames.mp4`: the Pika workflow on the same source (90 s on the test machine).
190
 
191
  On the test machine (one RTX PRO 6000 Max-Q), each run took about 4–5 minutes.
192
 
 
228
  Untested: hold values other than 1/2/4, holds that straddle latents, clocks faster than normal, and strengths
229
  other than 1.0.
230
 
231
+ ## With Pika 6-step
232
+
233
+ Use Pika's own sampler. MAINodes' Pika preset is: manual sigmas `1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0`,
234
+ sampler `lcm` (fresh noise every step) and `pika_h3_flex_fl2va_v1`. With a generic 6-step Euler schedule everything
235
+ came out softer and less faithful.
236
+
237
+ Then turn the LoRA **and** the clock off for the last step. `stage2_derope_clock_pika.api.json` does this as two
238
+ samplers: Pika + this LoRA + H3 True Clock for knots 0.8 → 0.571 → 0.333, then Pika alone with DisableNoise from
239
+ 0.333 to 0. The idea is that timing is decided in the early steps and detail in the last.
240
+
241
+ ![inference levers with Pika's sampler](https://huggingface.co/MATLOWAI/MiniMax-H3-Variable-Clock/resolve/main/assets/pika_sampler_levers_table.png)
242
+
243
+ From one seed on the punching clip, against the full LoRA with the clock on every step, this has a little more
244
+ fine detail (1.19 vs 1.17 of the source), the best fidelity (20.95 dB) and the least flicker of the clock runs.
245
+ Turning off only the LoRA for the last step adds detail but costs steadiness and adds flicker. With this sampler,
246
+ the `lateattn` trim performs the same as the full LoRA, so the full file is fine here.
247
+
248
+ Side by side (Pika only / Pika + clock / Pika + LoRA + clock / LoRA + clock off for the last step):
249
+ [`assets/pika_levers_sbs_kept.mp4`](assets/pika_levers_sbs_kept.mp4).
250
+
251
+ Not yet checked: whether small, fast detail still slows down correctly when the last step runs on the normal clock.
252
+ This clip has little such detail.
253
+
254
  ## How this compares to DyRoPE / H3 True Clock without a LoRA
255
 
256
  - **The clock signal is the same.** MAINodes' H3 True Clock, DyRoPE and this LoRA all give each latent a RoPE
assets/pika_levers_sbs_kept.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:beff8e2165346939b1080950a1eee9e707feb7490119a687512eccfad9b73379
3
+ size 2468015
assets/pika_sampler_levers_table.png ADDED
workflows/example_outputs/stage2_pika_all_frames.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e873559a67467188dbed0e9b714a02676ef47636e5c922a49c76d7ed0de7c511
3
+ size 2138711
workflows/example_outputs/stage2_pika_kept.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9211fe05e02a2a596bf96b64b365bb017bfcf327dcf3a621703dfdc81a1db17
3
+ size 1717928
workflows/stage2_derope_clock_pika.api.json ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "class_type": "UNETLoader",
4
+ "inputs": {
5
+ "unet_name": "minimax_h3/minimax_h3_fl2va_pruned_int8_convrot.safetensors",
6
+ "weight_dtype": "default"
7
+ },
8
+ "_meta": {}
9
+ },
10
+ "2": {
11
+ "class_type": "CLIPLoader",
12
+ "inputs": {
13
+ "clip_name": "minimax_h3/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
14
+ "type": "minimax",
15
+ "device": "default"
16
+ },
17
+ "_meta": {}
18
+ },
19
+ "3": {
20
+ "class_type": "VAELoader",
21
+ "inputs": {
22
+ "vae_name": "minimax_h3/minimax_h3_video_vae_fp16.safetensors"
23
+ },
24
+ "_meta": {}
25
+ },
26
+ "10": {
27
+ "class_type": "MiniMaxH3ImageToVideo",
28
+ "inputs": {
29
+ "clip": [
30
+ "2",
31
+ 0
32
+ ],
33
+ "vae": [
34
+ "3",
35
+ 0
36
+ ],
37
+ "prompt": "[Shot 1] 2D anime, cel-shaded, cinematic, a close-up medium shot framed from the top of her head down to her chest, a beautiful adult woman in her twenties with a high ponytail, wearing a low-cut black sports bra and red hand wraps, shadowboxing at full speed in a sunlit boxing gym. She bobs and weaves under an imaginary punch, slips left and right, snaps a double jab, rips a rising uppercut, then plants and whips into a spinning backfist that turns her whole body away from the camera and back again, finishing with a fast hook-cross combination. Her shoulders and hips rotate hard, her ponytail whips around her head through the spin, her chest bounces with each sharp movement, loose strands of hair and sweat droplets fly off, her expression focused and fierce. The camera holds steady and close as her fists and wraps snap in and out of frame, dust motes drifting through the window light behind her.\n\noverall_soundscape: Sharp exhales with each punch; quick shuffling footwork on a canvas floor; the whoosh of the spinning backfist; the snap of wraps cutting the air; a heavy bag creaking faintly in the background; muffled gym ambience.\n\nnon_diegetic_music: N/A",
38
+ "width": 1344,
39
+ "height": 768,
40
+ "length": 124
41
+ },
42
+ "_meta": {}
43
+ },
44
+ "20": {
45
+ "class_type": "KSamplerSelect",
46
+ "inputs": {
47
+ "sampler_name": "lcm"
48
+ },
49
+ "_meta": {}
50
+ },
51
+ "21": {
52
+ "class_type": "RandomNoise",
53
+ "inputs": {
54
+ "noise_seed": 20260923
55
+ },
56
+ "_meta": {}
57
+ },
58
+ "22": {
59
+ "class_type": "BasicGuider",
60
+ "inputs": {
61
+ "model": [
62
+ "4",
63
+ 0
64
+ ],
65
+ "conditioning": [
66
+ "10",
67
+ 0
68
+ ]
69
+ },
70
+ "_meta": {}
71
+ },
72
+ "5": {
73
+ "class_type": "PrimitiveStringMultiline",
74
+ "inputs": {
75
+ "value": "{\"holds\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 4, 4, 4, 4, 1, 4, 4, 4, 4, 1, 4, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], \"world_len\": 73}"
76
+ },
77
+ "_meta": {}
78
+ },
79
+ "11": {
80
+ "class_type": "LoadVideo",
81
+ "inputs": {
82
+ "file": "h3clock_source_native_00001_.mp4"
83
+ },
84
+ "_meta": {}
85
+ },
86
+ "12": {
87
+ "class_type": "GetVideoComponents",
88
+ "inputs": {
89
+ "video": [
90
+ "11",
91
+ 0
92
+ ]
93
+ },
94
+ "_meta": {}
95
+ },
96
+ "13": {
97
+ "class_type": "ImageScale",
98
+ "inputs": {
99
+ "image": [
100
+ "12",
101
+ 0
102
+ ],
103
+ "upscale_method": "lanczos",
104
+ "width": 1344,
105
+ "height": 768,
106
+ "crop": "center"
107
+ },
108
+ "_meta": {}
109
+ },
110
+ "14": {
111
+ "class_type": "ImageFromBatch",
112
+ "inputs": {
113
+ "image": [
114
+ "13",
115
+ 0
116
+ ],
117
+ "batch_index": 20,
118
+ "length": 73
119
+ },
120
+ "_meta": {}
121
+ },
122
+ "15": {
123
+ "class_type": "H3TimeSmear",
124
+ "inputs": {
125
+ "images": [
126
+ "14",
127
+ 0
128
+ ],
129
+ "dilation": 1,
130
+ "hold_map": [
131
+ "5",
132
+ 0
133
+ ],
134
+ "fps": 24,
135
+ "expand_to_end": false
136
+ },
137
+ "_meta": {}
138
+ },
139
+ "16": {
140
+ "class_type": "VAEEncode",
141
+ "inputs": {
142
+ "pixels": [
143
+ "15",
144
+ 0
145
+ ],
146
+ "vae": [
147
+ "3",
148
+ 0
149
+ ]
150
+ },
151
+ "_meta": {}
152
+ },
153
+ "17": {
154
+ "class_type": "H3V2VInit",
155
+ "inputs": {
156
+ "samples": [
157
+ "16",
158
+ 0
159
+ ]
160
+ },
161
+ "_meta": {}
162
+ },
163
+ "24": {
164
+ "class_type": "H3TrueClock",
165
+ "inputs": {
166
+ "sampler": [
167
+ "20",
168
+ 0
169
+ ],
170
+ "hold_map": [
171
+ "15",
172
+ 1
173
+ ],
174
+ "keep_fine_bands": 2
175
+ },
176
+ "_meta": {}
177
+ },
178
+ "30": {
179
+ "class_type": "SamplerCustomAdvanced",
180
+ "inputs": {
181
+ "noise": [
182
+ "21",
183
+ 0
184
+ ],
185
+ "guider": [
186
+ "22",
187
+ 0
188
+ ],
189
+ "sampler": [
190
+ "24",
191
+ 0
192
+ ],
193
+ "sigmas": [
194
+ "52",
195
+ 0
196
+ ],
197
+ "latent_image": [
198
+ "17",
199
+ 0
200
+ ]
201
+ },
202
+ "_meta": {
203
+ "title": "pass 1: Pika + run f + H3 True Clock"
204
+ }
205
+ },
206
+ "31": {
207
+ "class_type": "VAEDecode",
208
+ "inputs": {
209
+ "samples": [
210
+ "33",
211
+ 0
212
+ ],
213
+ "vae": [
214
+ "3",
215
+ 0
216
+ ]
217
+ },
218
+ "_meta": {}
219
+ },
220
+ "32": {
221
+ "class_type": "H3ExactRecover",
222
+ "inputs": {
223
+ "images": [
224
+ "31",
225
+ 0
226
+ ],
227
+ "hold_map": [
228
+ "15",
229
+ 1
230
+ ]
231
+ },
232
+ "_meta": {}
233
+ },
234
+ "40": {
235
+ "class_type": "CreateVideo",
236
+ "inputs": {
237
+ "images": [
238
+ "32",
239
+ 0
240
+ ],
241
+ "fps": 24
242
+ },
243
+ "_meta": {}
244
+ },
245
+ "41": {
246
+ "class_type": "SaveVideo",
247
+ "inputs": {
248
+ "video": [
249
+ "40",
250
+ 0
251
+ ],
252
+ "format": "auto",
253
+ "codec": "auto",
254
+ "filename_prefix": "video/h3clock_stage2_pika_kept"
255
+ },
256
+ "_meta": {}
257
+ },
258
+ "42": {
259
+ "class_type": "CreateVideo",
260
+ "inputs": {
261
+ "images": [
262
+ "31",
263
+ 0
264
+ ],
265
+ "fps": 24
266
+ },
267
+ "_meta": {}
268
+ },
269
+ "43": {
270
+ "class_type": "SaveVideo",
271
+ "inputs": {
272
+ "video": [
273
+ "42",
274
+ 0
275
+ ],
276
+ "format": "auto",
277
+ "codec": "auto",
278
+ "filename_prefix": "video/h3clock_stage2_pika_all_frames"
279
+ },
280
+ "_meta": {}
281
+ },
282
+ "6": {
283
+ "class_type": "LoraLoaderModelOnly",
284
+ "inputs": {
285
+ "model": [
286
+ "1",
287
+ 0
288
+ ],
289
+ "lora_name": "pika_h3_flex_fl2va_v1_bf16.safetensors",
290
+ "strength_model": 1.0
291
+ },
292
+ "_meta": {}
293
+ },
294
+ "4": {
295
+ "class_type": "LoraLoaderModelOnly",
296
+ "inputs": {
297
+ "model": [
298
+ "6",
299
+ 0
300
+ ],
301
+ "lora_name": "minimax_h3_variable_clock/minimax_h3_variable_clock_runf_step2000_r16.safetensors",
302
+ "strength_model": 1.0
303
+ },
304
+ "_meta": {}
305
+ },
306
+ "50": {
307
+ "class_type": "ManualSigmas",
308
+ "inputs": {
309
+ "sigmas": "1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0.0"
310
+ },
311
+ "_meta": {
312
+ "title": "Pika's six knots"
313
+ }
314
+ },
315
+ "51": {
316
+ "class_type": "SplitSigmas",
317
+ "inputs": {
318
+ "sigmas": [
319
+ "50",
320
+ 0
321
+ ],
322
+ "step": 3
323
+ },
324
+ "_meta": {
325
+ "title": "inject 0.45 = last 3 of 6 knots"
326
+ }
327
+ },
328
+ "52": {
329
+ "class_type": "SplitSigmas",
330
+ "inputs": {
331
+ "sigmas": [
332
+ "51",
333
+ 1
334
+ ],
335
+ "step": 2
336
+ },
337
+ "_meta": {
338
+ "title": "split: steps 1-2 (run f + clock) | step 3 (Pika only)"
339
+ }
340
+ },
341
+ "25": {
342
+ "class_type": "BasicGuider",
343
+ "inputs": {
344
+ "model": [
345
+ "6",
346
+ 0
347
+ ],
348
+ "conditioning": [
349
+ "10",
350
+ 0
351
+ ]
352
+ },
353
+ "_meta": {}
354
+ },
355
+ "26": {
356
+ "class_type": "DisableNoise",
357
+ "inputs": {},
358
+ "_meta": {}
359
+ },
360
+ "33": {
361
+ "class_type": "SamplerCustomAdvanced",
362
+ "inputs": {
363
+ "noise": [
364
+ "26",
365
+ 0
366
+ ],
367
+ "guider": [
368
+ "25",
369
+ 0
370
+ ],
371
+ "sampler": [
372
+ "20",
373
+ 0
374
+ ],
375
+ "sigmas": [
376
+ "52",
377
+ 1
378
+ ],
379
+ "latent_image": [
380
+ "30",
381
+ 0
382
+ ]
383
+ },
384
+ "_meta": {
385
+ "title": "pass 2: Pika only, normal clock, no new noise"
386
+ }
387
+ }
388
+ }