akatz-ai commited on
Commit
96ea340
·
verified ·
1 Parent(s): d06323b

Add H3 Relay 2.0 native character-swap workflows and guide

Browse files
README.md CHANGED
@@ -44,6 +44,17 @@ selected person in a source performance with a character from an image reference
44
  | H3 Character Swap V1.5 | `h3_character_swap_v1.5.safetensors` | Recommended |
45
  | H3 Character Swap V1 | `h3_character_swap_pro4500_1000.safetensors` | Previous release |
46
 
 
 
 
 
 
 
 
 
 
 
 
47
  ## Use in ComfyUI
48
 
49
  1. Obtain the H3 Ref2VA base model, text encoder and VAEs separately.
 
44
  | H3 Character Swap V1.5 | `h3_character_swap_v1.5.safetensors` | Recommended |
45
  | H3 Character Swap V1 | `h3_character_swap_pro4500_1000.safetensors` | Previous release |
46
 
47
+ ## Native workflow with H3 Relay 2.0
48
+
49
+ [Download the canvas workflow](examples/H3-Character-Swap-Relay-V2.json) or
50
+ [the API prompt](examples/H3-Character-Swap-Relay-V2.api.json). These use the
51
+ recommended V1.5 adapter, native ComfyUI model loading, reference conditioning,
52
+ SAM masking, sampling, loops and saving, plus reusable Relay timeline helpers.
53
+ The model weights are unchanged by this workflow update.
54
+
55
+ Install [H3 Relay 2.0](https://github.com/akatz-ai/h3-relay) and follow
56
+ [the workflow guide](examples/README.md) for models, runtime and input paths.
57
+
58
  ## Use in ComfyUI
59
 
60
  1. Obtain the H3 Ref2VA base model, text encoder and VAEs separately.
examples/H3-Character-Swap-Relay-V2.api.json ADDED
@@ -0,0 +1,783 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": {
3
+ "class_type": "UNETLoader",
4
+ "inputs": {
5
+ "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
6
+ "weight_dtype": "default"
7
+ },
8
+ "_meta": {
9
+ "title": "UNETLoader"
10
+ }
11
+ },
12
+ "shift": {
13
+ "class_type": "MiniMaxH3SigmaShift",
14
+ "inputs": {
15
+ "model": [
16
+ "model",
17
+ 0
18
+ ],
19
+ "shift_video": 12.0,
20
+ "shift_audio": 3.0
21
+ },
22
+ "_meta": {
23
+ "title": "MiniMaxH3SigmaShift"
24
+ }
25
+ },
26
+ "attention": {
27
+ "class_type": "ModelAttentionBackend",
28
+ "inputs": {
29
+ "model": [
30
+ "shift",
31
+ 0
32
+ ],
33
+ "attention": "comfy kitchen attention"
34
+ },
35
+ "_meta": {
36
+ "title": "ModelAttentionBackend"
37
+ }
38
+ },
39
+ "text": {
40
+ "class_type": "CLIPLoader",
41
+ "inputs": {
42
+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
43
+ "type": "minimax",
44
+ "device": "default"
45
+ },
46
+ "_meta": {
47
+ "title": "CLIPLoader"
48
+ }
49
+ },
50
+ "text_device": {
51
+ "class_type": "SelectCLIPDevice",
52
+ "inputs": {
53
+ "clip": [
54
+ "text",
55
+ 0
56
+ ],
57
+ "device": "gpu:0"
58
+ },
59
+ "_meta": {
60
+ "title": "SelectCLIPDevice"
61
+ }
62
+ },
63
+ "text_memory": {
64
+ "class_type": "H3RelayTextMemory",
65
+ "inputs": {
66
+ "clip": [
67
+ "text_device",
68
+ 0
69
+ ]
70
+ },
71
+ "_meta": {
72
+ "title": "H3RelayTextMemory"
73
+ }
74
+ },
75
+ "video_vae": {
76
+ "class_type": "VAELoader",
77
+ "inputs": {
78
+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"
79
+ },
80
+ "_meta": {
81
+ "title": "VAELoader"
82
+ }
83
+ },
84
+ "audio_vae": {
85
+ "class_type": "VAELoader",
86
+ "inputs": {
87
+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
88
+ },
89
+ "_meta": {
90
+ "title": "VAELoader"
91
+ }
92
+ },
93
+ "turbo": {
94
+ "class_type": "LoraLoaderModelOnly",
95
+ "inputs": {
96
+ "model": [
97
+ "attention",
98
+ 0
99
+ ],
100
+ "lora_name": "minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
101
+ "strength_model": 1.0
102
+ },
103
+ "_meta": {
104
+ "title": "LoraLoaderModelOnly"
105
+ }
106
+ },
107
+ "adapter": {
108
+ "class_type": "LoraLoaderModelOnly",
109
+ "inputs": {
110
+ "model": [
111
+ "turbo",
112
+ 0
113
+ ],
114
+ "lora_name": "h3-v2-challenge-eval-20261013/v2-1000.safetensors",
115
+ "strength_model": 1.0
116
+ },
117
+ "_meta": {
118
+ "title": "LoraLoaderModelOnly"
119
+ }
120
+ },
121
+ "source": {
122
+ "class_type": "LoadVideo",
123
+ "inputs": {
124
+ "file": "source.mp4"
125
+ },
126
+ "_meta": {
127
+ "title": "LoadVideo"
128
+ }
129
+ },
130
+ "prepare": {
131
+ "class_type": "H3RelayPrepareSource",
132
+ "inputs": {
133
+ "video": [
134
+ "source",
135
+ 0
136
+ ],
137
+ "resolution": "768",
138
+ "duration_seconds": 0.0,
139
+ "missing_audio": "silence"
140
+ },
141
+ "_meta": {
142
+ "title": "H3RelayPrepareSource"
143
+ }
144
+ },
145
+ "dimensions": {
146
+ "class_type": "GetImageSize",
147
+ "inputs": {
148
+ "image": [
149
+ "prepare",
150
+ 0
151
+ ]
152
+ },
153
+ "_meta": {
154
+ "title": "GetImageSize"
155
+ }
156
+ },
157
+ "reference": {
158
+ "class_type": "LoadImage",
159
+ "inputs": {
160
+ "image": "reference.png"
161
+ },
162
+ "_meta": {
163
+ "title": "LoadImage"
164
+ }
165
+ },
166
+ "sam": {
167
+ "class_type": "CheckpointLoaderSimple",
168
+ "inputs": {
169
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
170
+ },
171
+ "_meta": {
172
+ "title": "CheckpointLoaderSimple"
173
+ }
174
+ },
175
+ "subject": {
176
+ "class_type": "CLIPTextEncode",
177
+ "inputs": {
178
+ "clip": [
179
+ "sam",
180
+ 1
181
+ ],
182
+ "text": "person"
183
+ },
184
+ "_meta": {
185
+ "title": "CLIPTextEncode"
186
+ }
187
+ },
188
+ "first_frame": {
189
+ "class_type": "ImageFromBatch",
190
+ "inputs": {
191
+ "image": [
192
+ "prepare",
193
+ 0
194
+ ],
195
+ "batch_index": 0,
196
+ "length": 1
197
+ },
198
+ "_meta": {
199
+ "title": "ImageFromBatch"
200
+ }
201
+ },
202
+ "detect": {
203
+ "class_type": "SAM3_Detect",
204
+ "inputs": {
205
+ "model": [
206
+ "sam",
207
+ 0
208
+ ],
209
+ "image": [
210
+ "first_frame",
211
+ 0
212
+ ],
213
+ "conditioning": [
214
+ "subject",
215
+ 0
216
+ ],
217
+ "threshold": 0.35,
218
+ "refine_iterations": 2,
219
+ "individual_masks": true
220
+ },
221
+ "_meta": {
222
+ "title": "SAM3_Detect"
223
+ }
224
+ },
225
+ "select": {
226
+ "class_type": "H3RelaySelectMask",
227
+ "inputs": {
228
+ "masks": [
229
+ "detect",
230
+ 0
231
+ ],
232
+ "selection": "largest",
233
+ "index": 0
234
+ },
235
+ "_meta": {
236
+ "title": "H3RelaySelectMask"
237
+ }
238
+ },
239
+ "track": {
240
+ "class_type": "SAM3_VideoTrack",
241
+ "inputs": {
242
+ "model": [
243
+ "sam",
244
+ 0
245
+ ],
246
+ "images": [
247
+ "prepare",
248
+ 0
249
+ ],
250
+ "initial_mask": [
251
+ "select",
252
+ 0
253
+ ],
254
+ "conditioning": [
255
+ "subject",
256
+ 0
257
+ ],
258
+ "detection_threshold": 0.5,
259
+ "max_objects": 1,
260
+ "detect_interval": 1
261
+ },
262
+ "_meta": {
263
+ "title": "SAM3_VideoTrack"
264
+ }
265
+ },
266
+ "mask": {
267
+ "class_type": "SAM3_TrackToMask",
268
+ "inputs": {
269
+ "track_data": [
270
+ "track",
271
+ 0
272
+ ],
273
+ "object_indices": ""
274
+ },
275
+ "_meta": {
276
+ "title": "SAM3_TrackToMask"
277
+ }
278
+ },
279
+ "recover": {
280
+ "class_type": "H3RelayRecoverMasks",
281
+ "inputs": {
282
+ "masks": [
283
+ "mask",
284
+ 0
285
+ ],
286
+ "images": [
287
+ "prepare",
288
+ 0
289
+ ],
290
+ "source_frames": [
291
+ "prepare",
292
+ 5
293
+ ],
294
+ "model": [
295
+ "sam",
296
+ 0
297
+ ],
298
+ "conditioning": [
299
+ "subject",
300
+ 0
301
+ ],
302
+ "selection": [
303
+ "select",
304
+ 1
305
+ ],
306
+ "recover_empty_frames": true
307
+ },
308
+ "_meta": {
309
+ "title": "H3RelayRecoverMasks"
310
+ }
311
+ },
312
+ "expand_mask": {
313
+ "class_type": "H3RelayExpandMask",
314
+ "inputs": {
315
+ "masks": [
316
+ "recover",
317
+ 0
318
+ ],
319
+ "images": [
320
+ "prepare",
321
+ 0
322
+ ],
323
+ "source_frames": [
324
+ "prepare",
325
+ 5
326
+ ],
327
+ "expansion_px": 64
328
+ },
329
+ "_meta": {
330
+ "title": "H3RelayExpandMask"
331
+ }
332
+ },
333
+ "mask_preview": {
334
+ "class_type": "PreviewImage",
335
+ "inputs": {
336
+ "images": [
337
+ "expand_mask",
338
+ 1
339
+ ]
340
+ },
341
+ "_meta": {
342
+ "title": "PreviewImage"
343
+ }
344
+ },
345
+ "plan": {
346
+ "class_type": "H3RelayWindowPlan",
347
+ "inputs": {
348
+ "source_frames": [
349
+ "prepare",
350
+ 5
351
+ ],
352
+ "window_frames": "124",
353
+ "history_frames": "18",
354
+ "seed": 904239,
355
+ "schedule": "adaptive",
356
+ "seed_mode": "fixed",
357
+ "seed_overrides": "{}"
358
+ },
359
+ "_meta": {
360
+ "title": "Plan source-aligned windows"
361
+ }
362
+ },
363
+ "start": {
364
+ "class_type": "StartLoop",
365
+ "inputs": {
366
+ "mode": "simple",
367
+ "mode.num_iterations": [
368
+ "plan",
369
+ 2
370
+ ],
371
+ "cache_iterations": false
372
+ },
373
+ "_meta": {
374
+ "title": "Native loop \u00b7 one H3 window"
375
+ }
376
+ },
377
+ "window": {
378
+ "class_type": "H3RelayWindowInputs",
379
+ "inputs": {
380
+ "source": [
381
+ "prepare",
382
+ 0
383
+ ],
384
+ "window": [
385
+ "plan",
386
+ 3
387
+ ],
388
+ "iteration_index": [
389
+ "start",
390
+ 0
391
+ ],
392
+ "previous": [
393
+ "start",
394
+ 4
395
+ ],
396
+ "reference_history": true,
397
+ "fps": 24.0,
398
+ "resize_anchor": true,
399
+ "history_audio_mode": "source",
400
+ "source_audio": [
401
+ "prepare",
402
+ 1
403
+ ],
404
+ "mask": [
405
+ "expand_mask",
406
+ 0
407
+ ]
408
+ },
409
+ "_meta": {
410
+ "title": "H3RelayWindowInputs"
411
+ }
412
+ },
413
+ "reference_conditioning": {
414
+ "class_type": "MiniMaxH3ReferenceToVideo",
415
+ "inputs": {
416
+ "clip": [
417
+ "text_memory",
418
+ 0
419
+ ],
420
+ "prompt": "Replace the selected person with the reference character. Preserve source performance, scene and audio timing.",
421
+ "width": [
422
+ "dimensions",
423
+ 0
424
+ ],
425
+ "height": [
426
+ "dimensions",
427
+ 1
428
+ ],
429
+ "length": [
430
+ "window",
431
+ 8
432
+ ],
433
+ "ref_image_size": "match",
434
+ "ref_videos.ref_video_0": [
435
+ "window",
436
+ 5
437
+ ],
438
+ "ref_images.ref_image_0": [
439
+ "reference",
440
+ 0
441
+ ],
442
+ "vae": [
443
+ "video_vae",
444
+ 0
445
+ ],
446
+ "audio_vae": [
447
+ "audio_vae",
448
+ 0
449
+ ],
450
+ "ref_audios.ref_audio_0": [
451
+ "window",
452
+ 6
453
+ ]
454
+ },
455
+ "_meta": {
456
+ "title": "Native H3 reference conditioning"
457
+ }
458
+ },
459
+ "history": {
460
+ "class_type": "H3RelayApplyHistory",
461
+ "inputs": {
462
+ "positive": [
463
+ "reference_conditioning",
464
+ 0
465
+ ],
466
+ "latent": [
467
+ "reference_conditioning",
468
+ 1
469
+ ],
470
+ "vae": [
471
+ "video_vae",
472
+ 0
473
+ ],
474
+ "audio_vae": [
475
+ "audio_vae",
476
+ 0
477
+ ],
478
+ "frames": [
479
+ "window",
480
+ 3
481
+ ],
482
+ "history_frames": [
483
+ "window",
484
+ 7
485
+ ],
486
+ "first_frame_guide": false,
487
+ "target_audio_guide": true,
488
+ "audio": [
489
+ "window",
490
+ 4
491
+ ]
492
+ },
493
+ "_meta": {
494
+ "title": "H3RelayApplyHistory"
495
+ }
496
+ },
497
+ "encode_source": {
498
+ "class_type": "VAEEncode",
499
+ "inputs": {
500
+ "pixels": [
501
+ "window",
502
+ 0
503
+ ],
504
+ "vae": [
505
+ "video_vae",
506
+ 0
507
+ ]
508
+ },
509
+ "_meta": {
510
+ "title": "VAEEncode"
511
+ }
512
+ },
513
+ "edit_mask": {
514
+ "class_type": "H3RelayApplyEditMask",
515
+ "inputs": {
516
+ "latent": [
517
+ "history",
518
+ 1
519
+ ],
520
+ "source_latent": [
521
+ "encode_source",
522
+ 0
523
+ ],
524
+ "mask": [
525
+ "window",
526
+ 1
527
+ ]
528
+ },
529
+ "_meta": {
530
+ "title": "H3RelayApplyEditMask"
531
+ }
532
+ },
533
+ "guide": {
534
+ "class_type": "MiniMaxH3AddGuide",
535
+ "inputs": {
536
+ "positive": [
537
+ "history",
538
+ 0
539
+ ],
540
+ "latent": [
541
+ "edit_mask",
542
+ 0
543
+ ],
544
+ "frame_idx": 0,
545
+ "audio_vae": [
546
+ "audio_vae",
547
+ 0
548
+ ],
549
+ "audio": [
550
+ "window",
551
+ 2
552
+ ]
553
+ },
554
+ "_meta": {
555
+ "title": "Native target guide"
556
+ }
557
+ },
558
+ "sampling_memory": {
559
+ "class_type": "H3RelaySamplingMemory",
560
+ "inputs": {
561
+ "model": [
562
+ "adapter",
563
+ 0
564
+ ],
565
+ "latent": [
566
+ "edit_mask",
567
+ 0
568
+ ],
569
+ "conditioning": [
570
+ "guide",
571
+ 0
572
+ ],
573
+ "activation_memory_gib": 17.0
574
+ },
575
+ "_meta": {
576
+ "title": "H3RelaySamplingMemory"
577
+ }
578
+ },
579
+ "noise": {
580
+ "class_type": "RandomNoise",
581
+ "inputs": {
582
+ "noise_seed": [
583
+ "window",
584
+ 10
585
+ ]
586
+ },
587
+ "_meta": {
588
+ "title": "RandomNoise"
589
+ }
590
+ },
591
+ "guider": {
592
+ "class_type": "CFGGuider",
593
+ "inputs": {
594
+ "model": [
595
+ "sampling_memory",
596
+ 0
597
+ ],
598
+ "positive": [
599
+ "guide",
600
+ 0
601
+ ],
602
+ "negative": [
603
+ "guide",
604
+ 0
605
+ ],
606
+ "cfg": 1.0
607
+ },
608
+ "_meta": {
609
+ "title": "CFGGuider"
610
+ }
611
+ },
612
+ "sampler": {
613
+ "class_type": "KSamplerSelect",
614
+ "inputs": {
615
+ "sampler_name": "er_sde"
616
+ },
617
+ "_meta": {
618
+ "title": "KSamplerSelect"
619
+ }
620
+ },
621
+ "schedule": {
622
+ "class_type": "BasicScheduler",
623
+ "inputs": {
624
+ "model": [
625
+ "adapter",
626
+ 0
627
+ ],
628
+ "scheduler": "normal",
629
+ "steps": 8,
630
+ "denoise": 1.0
631
+ },
632
+ "_meta": {
633
+ "title": "BasicScheduler"
634
+ }
635
+ },
636
+ "sample": {
637
+ "class_type": "SamplerCustomAdvanced",
638
+ "inputs": {
639
+ "noise": [
640
+ "noise",
641
+ 0
642
+ ],
643
+ "guider": [
644
+ "guider",
645
+ 0
646
+ ],
647
+ "sampler": [
648
+ "sampler",
649
+ 0
650
+ ],
651
+ "sigmas": [
652
+ "schedule",
653
+ 0
654
+ ],
655
+ "latent_image": [
656
+ "edit_mask",
657
+ 0
658
+ ]
659
+ },
660
+ "_meta": {
661
+ "title": "SamplerCustomAdvanced"
662
+ }
663
+ },
664
+ "separate": {
665
+ "class_type": "LTXVSeparateAVLatent",
666
+ "inputs": {
667
+ "av_latent": [
668
+ "sample",
669
+ 0
670
+ ]
671
+ },
672
+ "_meta": {
673
+ "title": "LTXVSeparateAVLatent"
674
+ }
675
+ },
676
+ "decode": {
677
+ "class_type": "VAEDecode",
678
+ "inputs": {
679
+ "samples": [
680
+ "separate",
681
+ 0
682
+ ],
683
+ "vae": [
684
+ "video_vae",
685
+ 0
686
+ ]
687
+ },
688
+ "_meta": {
689
+ "title": "VAEDecode"
690
+ }
691
+ },
692
+ "append": {
693
+ "class_type": "H3RelayAppendWindow",
694
+ "inputs": {
695
+ "frames": [
696
+ "decode",
697
+ 0
698
+ ],
699
+ "window": [
700
+ "window",
701
+ 12
702
+ ],
703
+ "previous": [
704
+ "start",
705
+ 4
706
+ ]
707
+ },
708
+ "_meta": {
709
+ "title": "H3RelayAppendWindow"
710
+ }
711
+ },
712
+ "end": {
713
+ "class_type": "EndLoop",
714
+ "inputs": {
715
+ "output_value": [
716
+ "append",
717
+ 0
718
+ ],
719
+ "next_iteration_value": [
720
+ "append",
721
+ 0
722
+ ],
723
+ "accumulate": false
724
+ },
725
+ "_meta": {
726
+ "title": "EndLoop"
727
+ }
728
+ },
729
+ "finish": {
730
+ "class_type": "H3RelayFinishWindows",
731
+ "inputs": {
732
+ "state": [
733
+ "end",
734
+ 0
735
+ ],
736
+ "audio_mode": "source",
737
+ "source_audio": [
738
+ "prepare",
739
+ 1
740
+ ]
741
+ },
742
+ "_meta": {
743
+ "title": "H3RelayFinishWindows"
744
+ }
745
+ },
746
+ "video": {
747
+ "class_type": "CreateVideo",
748
+ "inputs": {
749
+ "images": [
750
+ "finish",
751
+ 0
752
+ ],
753
+ "fps": [
754
+ "finish",
755
+ 2
756
+ ],
757
+ "audio": [
758
+ "finish",
759
+ 1
760
+ ]
761
+ },
762
+ "_meta": {
763
+ "title": "CreateVideo"
764
+ }
765
+ },
766
+ "save": {
767
+ "class_type": "SaveVideo",
768
+ "inputs": {
769
+ "video": [
770
+ "video",
771
+ 0
772
+ ],
773
+ "filename_prefix": "h3-relay/character-swap",
774
+ "format": "mp4",
775
+ "format.codec": "h264",
776
+ "format.codec.encoding": "re-encode",
777
+ "format.codec.encoding.crf": 16
778
+ },
779
+ "_meta": {
780
+ "title": "SaveVideo"
781
+ }
782
+ }
783
+ }
examples/H3-Character-Swap-Relay-V2.json ADDED
The diff for this file is too large to render. See raw diff
 
examples/README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Character Swap with H3 Relay 2.0
2
+
3
+ Import [the canvas workflow](H3-Character-Swap-Relay-V2.json), or use [the API prompt](H3-Character-Swap-Relay-V2.api.json). Install [H3 Relay 2.0](https://github.com/akatz-ai/h3-relay). The [full model and runtime guide](https://github.com/akatz-ai/h3-relay/blob/main/example_workflows/toolkit/README.md) lists every required file.
4
+
5
+ Download `h3_character_swap_v1.5.safetensors`. Save it as `ComfyUI/models/loras/h3-v2-challenge-eval-20261013/v2-1000.safetensors`, matching the workflow and app catalog, or select its actual filename in the LoRA loader. SHA-256: `8f2c3c3eba161df8d0c6099598b4730f641f5ce01e04cd16d2427cff8a35218f`. The separate FL2V Turbo8 adapter remains required.
6
+
7
+ Supply one source shot and a character reference. Prepare Source preserves the full duration when duration is zero, normalizes to 24 fps and aligns the canvas to 32 pixels. Describe the target person to SAM and review the expanded mask. The native reference node takes the character prompt and source performance/audio. The default canvas has no scene anchor; the application exposes optional reviewed anchors and saved masks.
8
+
9
+ Keep eight steps, normal scheduler, er_sde, CFG 1 and both LoRA strengths at 1. Source video and audio use the same H-1 history alignment. Final video retains the source soundtrack. Review raw decoded frames, identity, occlusion and continuation joins; this is still an experimental model.
10
+
11
+ Qualified runtime: ComfyUI `79be670e2d9be63e238785af307369d2b9039ed1`, frontend 1.53.6, PyTorch 2.11.0 + CUDA 12.8, Linux and RTX 4090. Minimum schema version is ComfyUI 0.37.0. On the tested 24 GB GPU, full residency exhausted memory. Normal offloading with the included Text Stage Memory and Sampling Workspace nodes completed the same generation settings.
12
+
13
+ The existing V1 workflows and showcases remain unchanged for reproducibility.