aleph65 commited on
Commit
d8525a6
·
verified ·
1 Parent(s): fb700da

Add scail2-character-replacement-auto API format

Browse files
workflows/api/scail2-character-replacement-auto.json ADDED
@@ -0,0 +1,1307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "155": {
3
+ "class_type": "LoadVideo",
4
+ "inputs": {
5
+ "file": "driving_outdoor_dance.mp4"
6
+ }
7
+ },
8
+ "201": {
9
+ "class_type": "CreateVideo",
10
+ "inputs": {
11
+ "audio": [
12
+ "215",
13
+ 1
14
+ ],
15
+ "bit_depth": 8,
16
+ "fps": [
17
+ "215",
18
+ 2
19
+ ],
20
+ "images": [
21
+ "213:6",
22
+ 0
23
+ ]
24
+ }
25
+ },
26
+ "202": {
27
+ "_meta": {
28
+ "title": "Save Video (First Segement)"
29
+ },
30
+ "class_type": "SaveVideo",
31
+ "inputs": {
32
+ "codec": "auto",
33
+ "filename_prefix": "video/ComfyUI",
34
+ "format": "auto",
35
+ "video": [
36
+ "201",
37
+ 0
38
+ ]
39
+ }
40
+ },
41
+ "213:11": {
42
+ "class_type": "LoraLoaderModelOnly",
43
+ "inputs": {
44
+ "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
45
+ "model": [
46
+ "213:318",
47
+ 0
48
+ ],
49
+ "strength_model": 0.8
50
+ }
51
+ },
52
+ "213:114": {
53
+ "class_type": "WanSCAILToVideo",
54
+ "inputs": {
55
+ "batch_size": 1,
56
+ "clip_vision_output": [
57
+ "213:76",
58
+ 0
59
+ ],
60
+ "height": [
61
+ "213:163",
62
+ 1
63
+ ],
64
+ "length": [
65
+ "213:163",
66
+ 2
67
+ ],
68
+ "negative": [
69
+ "213:4",
70
+ 0
71
+ ],
72
+ "pose_end": 1,
73
+ "pose_start": 0,
74
+ "pose_strength": 1,
75
+ "pose_video": [
76
+ "213:156",
77
+ 0
78
+ ],
79
+ "pose_video_mask": [
80
+ "213:197",
81
+ 0
82
+ ],
83
+ "positive": [
84
+ "213:3",
85
+ 0
86
+ ],
87
+ "previous_frame_count": 5,
88
+ "reference_image": [
89
+ "30",
90
+ 0
91
+ ],
92
+ "reference_image_mask": [
93
+ "213:197",
94
+ 1
95
+ ],
96
+ "replacement_mode": [
97
+ "213:203",
98
+ 0
99
+ ],
100
+ "vae": [
101
+ "213:7",
102
+ 0
103
+ ],
104
+ "video_frame_offset": 0,
105
+ "width": [
106
+ "213:163",
107
+ 0
108
+ ]
109
+ }
110
+ },
111
+ "213:154": {
112
+ "class_type": "UNETLoader",
113
+ "inputs": {
114
+ "unet_name": "wan2.1_14B_SCAIL_2_fp16.safetensors",
115
+ "weight_dtype": "default"
116
+ }
117
+ },
118
+ "213:156": {
119
+ "class_type": "ResizeImageMaskNode",
120
+ "inputs": {
121
+ "input": [
122
+ "213:177",
123
+ 0
124
+ ],
125
+ "resize_type": "scale dimensions",
126
+ "resize_type.crop": "center",
127
+ "resize_type.height": [
128
+ "213:182",
129
+ 1
130
+ ],
131
+ "resize_type.width": [
132
+ "213:180",
133
+ 1
134
+ ],
135
+ "scale_method": "area"
136
+ }
137
+ },
138
+ "213:157": {
139
+ "class_type": "GetVideoComponents",
140
+ "inputs": {
141
+ "video": [
142
+ "155",
143
+ 0
144
+ ]
145
+ }
146
+ },
147
+ "213:163": {
148
+ "class_type": "GetImageSize",
149
+ "inputs": {
150
+ "image": [
151
+ "213:156",
152
+ 0
153
+ ]
154
+ }
155
+ },
156
+ "213:165": {
157
+ "_meta": {
158
+ "title": "Int (Steps)"
159
+ },
160
+ "class_type": "PrimitiveInt",
161
+ "inputs": {
162
+ "value": 40
163
+ }
164
+ },
165
+ "213:166": {
166
+ "_meta": {
167
+ "title": "Float (CFG)"
168
+ },
169
+ "class_type": "PrimitiveFloat",
170
+ "inputs": {
171
+ "value": 5
172
+ }
173
+ },
174
+ "213:167": {
175
+ "_meta": {
176
+ "title": "Float (CFG)"
177
+ },
178
+ "class_type": "PrimitiveFloat",
179
+ "inputs": {
180
+ "value": 1
181
+ }
182
+ },
183
+ "213:168": {
184
+ "_meta": {
185
+ "title": "Int (Steps)"
186
+ },
187
+ "class_type": "PrimitiveInt",
188
+ "inputs": {
189
+ "value": 6
190
+ }
191
+ },
192
+ "213:169": {
193
+ "_meta": {
194
+ "title": "Switch (Model)"
195
+ },
196
+ "class_type": "ComfySwitchNode",
197
+ "inputs": {
198
+ "on_false": [
199
+ "213:318",
200
+ 0
201
+ ],
202
+ "on_true": [
203
+ "213:11",
204
+ 0
205
+ ],
206
+ "switch": [
207
+ "213:172",
208
+ 0
209
+ ]
210
+ }
211
+ },
212
+ "213:170": {
213
+ "_meta": {
214
+ "title": "Switch (Steps)"
215
+ },
216
+ "class_type": "ComfySwitchNode",
217
+ "inputs": {
218
+ "on_false": [
219
+ "213:165",
220
+ 0
221
+ ],
222
+ "on_true": [
223
+ "213:168",
224
+ 0
225
+ ],
226
+ "switch": [
227
+ "213:172",
228
+ 0
229
+ ]
230
+ }
231
+ },
232
+ "213:171": {
233
+ "_meta": {
234
+ "title": "Switch (Steps)"
235
+ },
236
+ "class_type": "ComfySwitchNode",
237
+ "inputs": {
238
+ "on_false": [
239
+ "213:166",
240
+ 0
241
+ ],
242
+ "on_true": [
243
+ "213:167",
244
+ 0
245
+ ],
246
+ "switch": [
247
+ "213:172",
248
+ 0
249
+ ]
250
+ }
251
+ },
252
+ "213:172": {
253
+ "_meta": {
254
+ "title": "Boolean (Enable Distill LoRA?)"
255
+ },
256
+ "class_type": "PrimitiveBoolean",
257
+ "inputs": {
258
+ "value": true
259
+ }
260
+ },
261
+ "213:177": {
262
+ "class_type": "ImageFromBatch",
263
+ "inputs": {
264
+ "batch_index": [
265
+ "213:184",
266
+ 1
267
+ ],
268
+ "image": [
269
+ "213:157",
270
+ 0
271
+ ],
272
+ "length": 81
273
+ }
274
+ },
275
+ "213:178": {
276
+ "_meta": {
277
+ "title": "Int (Width)"
278
+ },
279
+ "class_type": "PrimitiveInt",
280
+ "inputs": {
281
+ "value": [
282
+ "322",
283
+ 1
284
+ ]
285
+ }
286
+ },
287
+ "213:179": {
288
+ "_meta": {
289
+ "title": "Int (Height)"
290
+ },
291
+ "class_type": "PrimitiveInt",
292
+ "inputs": {
293
+ "value": [
294
+ "323",
295
+ 1
296
+ ]
297
+ }
298
+ },
299
+ "213:18": {
300
+ "class_type": "BasicScheduler",
301
+ "inputs": {
302
+ "denoise": 1,
303
+ "model": [
304
+ "213:11",
305
+ 0
306
+ ],
307
+ "scheduler": "simple",
308
+ "steps": [
309
+ "213:170",
310
+ 0
311
+ ]
312
+ }
313
+ },
314
+ "213:180": {
315
+ "class_type": "ComfyMathExpression",
316
+ "inputs": {
317
+ "expression": "(a // 32) * 32",
318
+ "values.a": [
319
+ "213:178",
320
+ 0
321
+ ]
322
+ }
323
+ },
324
+ "213:182": {
325
+ "class_type": "ComfyMathExpression",
326
+ "inputs": {
327
+ "expression": "(a // 32) * 32",
328
+ "values.a": [
329
+ "213:179",
330
+ 0
331
+ ]
332
+ }
333
+ },
334
+ "213:183": {
335
+ "_meta": {
336
+ "title": "Int (segment index)"
337
+ },
338
+ "class_type": "PrimitiveInt",
339
+ "inputs": {
340
+ "value": 1
341
+ }
342
+ },
343
+ "213:184": {
344
+ "class_type": "ComfyMathExpression",
345
+ "inputs": {
346
+ "expression": "(b - c) * (a - 1)",
347
+ "values.a": [
348
+ "213:183",
349
+ 0
350
+ ],
351
+ "values.b": 81,
352
+ "values.c": 5
353
+ }
354
+ },
355
+ "213:19": {
356
+ "class_type": "SamplerCustom",
357
+ "inputs": {
358
+ "add_noise": true,
359
+ "cfg": [
360
+ "213:171",
361
+ 0
362
+ ],
363
+ "latent_image": [
364
+ "213:114",
365
+ 2
366
+ ],
367
+ "model": [
368
+ "213:95",
369
+ 0
370
+ ],
371
+ "negative": [
372
+ "213:114",
373
+ 1
374
+ ],
375
+ "noise_seed": 1,
376
+ "positive": [
377
+ "213:114",
378
+ 0
379
+ ],
380
+ "sampler": [
381
+ "213:27",
382
+ 0
383
+ ],
384
+ "sigmas": [
385
+ "213:18",
386
+ 0
387
+ ]
388
+ }
389
+ },
390
+ "213:191": {
391
+ "class_type": "CLIPTextEncode",
392
+ "inputs": {
393
+ "clip": [
394
+ "213:193",
395
+ 1
396
+ ],
397
+ "text": "human"
398
+ }
399
+ },
400
+ "213:193": {
401
+ "class_type": "CheckpointLoaderSimple",
402
+ "inputs": {
403
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
404
+ }
405
+ },
406
+ "213:196": {
407
+ "class_type": "SAM3_VideoTrack",
408
+ "inputs": {
409
+ "conditioning": [
410
+ "213:191",
411
+ 0
412
+ ],
413
+ "detect_interval": 1,
414
+ "detection_threshold": 0.5,
415
+ "images": [
416
+ "213:156",
417
+ 0
418
+ ],
419
+ "max_objects": 4,
420
+ "model": [
421
+ "213:193",
422
+ 0
423
+ ]
424
+ }
425
+ },
426
+ "213:197": {
427
+ "class_type": "SCAIL2ColoredMask",
428
+ "inputs": {
429
+ "driving_track_data": [
430
+ "213:196",
431
+ 0
432
+ ],
433
+ "object_indices": "",
434
+ "ref_track_data": [
435
+ "213:198",
436
+ 0
437
+ ],
438
+ "replacement_mode": [
439
+ "213:203",
440
+ 0
441
+ ],
442
+ "sort_by": "left_to_right"
443
+ }
444
+ },
445
+ "213:198": {
446
+ "class_type": "SAM3_VideoTrack",
447
+ "inputs": {
448
+ "conditioning": [
449
+ "213:212",
450
+ 0
451
+ ],
452
+ "detect_interval": 1,
453
+ "detection_threshold": 0.5,
454
+ "images": [
455
+ "30",
456
+ 0
457
+ ],
458
+ "max_objects": 4,
459
+ "model": [
460
+ "213:193",
461
+ 0
462
+ ]
463
+ }
464
+ },
465
+ "213:203": {
466
+ "_meta": {
467
+ "title": "Boolean \uff08Replace Mode\uff09"
468
+ },
469
+ "class_type": "PrimitiveBoolean",
470
+ "inputs": {
471
+ "value": true
472
+ }
473
+ },
474
+ "213:212": {
475
+ "class_type": "CLIPTextEncode",
476
+ "inputs": {
477
+ "clip": [
478
+ "213:193",
479
+ 1
480
+ ],
481
+ "text": "human"
482
+ }
483
+ },
484
+ "213:27": {
485
+ "class_type": "KSamplerSelect",
486
+ "inputs": {
487
+ "sampler_name": "euler"
488
+ }
489
+ },
490
+ "213:3": {
491
+ "class_type": "CLIPTextEncode",
492
+ "inputs": {
493
+ "clip": [
494
+ "213:9",
495
+ 0
496
+ ],
497
+ "text": "A young woman with dark hair tied in a neat high bun, with a few loose strands framing her face, is dancing outdoors on a sunny coastal hillside. She has a normal-sized head and a slim face, with no hat, no headwear, and no oversized hair volume. She wears a fitted black long-sleeve crop top with a shoulder cutout, extremely baggy black cargo pants with straps and pockets, and chunky black combat boots. She performs energetic dance moves with one leg lifted and arms extended, moving naturally in front of a large tree, a small white stone house with a terracotta roof, and a bright blue sea under a clear sky with light clouds."
498
+ }
499
+ },
500
+ "213:318": {
501
+ "class_type": "LoraLoaderModelOnly",
502
+ "inputs": {
503
+ "lora_name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
504
+ "model": [
505
+ "213:154",
506
+ 0
507
+ ],
508
+ "strength_model": 1
509
+ }
510
+ },
511
+ "213:4": {
512
+ "class_type": "CLIPTextEncode",
513
+ "inputs": {
514
+ "clip": [
515
+ "213:9",
516
+ 0
517
+ ],
518
+ "text": ""
519
+ }
520
+ },
521
+ "213:6": {
522
+ "class_type": "VAEDecode",
523
+ "inputs": {
524
+ "samples": [
525
+ "213:19",
526
+ 1
527
+ ],
528
+ "vae": [
529
+ "213:7",
530
+ 0
531
+ ]
532
+ }
533
+ },
534
+ "213:7": {
535
+ "class_type": "VAELoader",
536
+ "inputs": {
537
+ "vae_name": "Wan2_1_VAE_bf16.safetensors"
538
+ }
539
+ },
540
+ "213:75": {
541
+ "class_type": "CLIPVisionLoader",
542
+ "inputs": {
543
+ "clip_name": "clip_vision_h.safetensors"
544
+ }
545
+ },
546
+ "213:76": {
547
+ "class_type": "CLIPVisionEncode",
548
+ "inputs": {
549
+ "clip_vision": [
550
+ "213:75",
551
+ 0
552
+ ],
553
+ "crop": "none",
554
+ "image": [
555
+ "30",
556
+ 0
557
+ ]
558
+ }
559
+ },
560
+ "213:9": {
561
+ "class_type": "CLIPLoader",
562
+ "inputs": {
563
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
564
+ "device": "default",
565
+ "type": "wan"
566
+ }
567
+ },
568
+ "213:95": {
569
+ "class_type": "ModelSamplingSD3",
570
+ "inputs": {
571
+ "model": [
572
+ "213:169",
573
+ 0
574
+ ],
575
+ "shift": 5
576
+ }
577
+ },
578
+ "215": {
579
+ "class_type": "GetVideoComponents",
580
+ "inputs": {
581
+ "video": [
582
+ "155",
583
+ 0
584
+ ]
585
+ }
586
+ },
587
+ "262:216": {
588
+ "class_type": "LoraLoaderModelOnly",
589
+ "inputs": {
590
+ "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
591
+ "model": [
592
+ "262:319",
593
+ 0
594
+ ],
595
+ "strength_model": 0.8
596
+ }
597
+ },
598
+ "262:217": {
599
+ "class_type": "VAELoader",
600
+ "inputs": {
601
+ "vae_name": "Wan2_1_VAE_bf16.safetensors"
602
+ }
603
+ },
604
+ "262:218": {
605
+ "class_type": "ResizeImageMaskNode",
606
+ "inputs": {
607
+ "input": [
608
+ "262:235",
609
+ 0
610
+ ],
611
+ "resize_type": "scale dimensions",
612
+ "resize_type.crop": "center",
613
+ "resize_type.height": [
614
+ "262:239",
615
+ 1
616
+ ],
617
+ "resize_type.width": [
618
+ "262:238",
619
+ 1
620
+ ],
621
+ "scale_method": "area"
622
+ }
623
+ },
624
+ "262:219": {
625
+ "class_type": "GetVideoComponents",
626
+ "inputs": {
627
+ "video": [
628
+ "155",
629
+ 0
630
+ ]
631
+ }
632
+ },
633
+ "262:220": {
634
+ "class_type": "GetImageSize",
635
+ "inputs": {
636
+ "image": [
637
+ "262:218",
638
+ 0
639
+ ]
640
+ }
641
+ },
642
+ "262:221": {
643
+ "class_type": "CLIPLoader",
644
+ "inputs": {
645
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
646
+ "device": "default",
647
+ "type": "wan"
648
+ }
649
+ },
650
+ "262:222": {
651
+ "class_type": "CLIPVisionLoader",
652
+ "inputs": {
653
+ "clip_name": "clip_vision_h.safetensors"
654
+ }
655
+ },
656
+ "262:223": {
657
+ "class_type": "UNETLoader",
658
+ "inputs": {
659
+ "unet_name": "wan2.1_14B_SCAIL_2_fp16.safetensors",
660
+ "weight_dtype": "default"
661
+ }
662
+ },
663
+ "262:224": {
664
+ "class_type": "ModelSamplingSD3",
665
+ "inputs": {
666
+ "model": [
667
+ "262:232",
668
+ 0
669
+ ],
670
+ "shift": 5
671
+ }
672
+ },
673
+ "262:225": {
674
+ "class_type": "KSamplerSelect",
675
+ "inputs": {
676
+ "sampler_name": "euler"
677
+ }
678
+ },
679
+ "262:226": {
680
+ "class_type": "BasicScheduler",
681
+ "inputs": {
682
+ "denoise": 1,
683
+ "model": [
684
+ "262:216",
685
+ 0
686
+ ],
687
+ "scheduler": "simple",
688
+ "steps": [
689
+ "262:233",
690
+ 0
691
+ ]
692
+ }
693
+ },
694
+ "262:227": {
695
+ "class_type": "SamplerCustom",
696
+ "inputs": {
697
+ "add_noise": true,
698
+ "cfg": [
699
+ "262:234",
700
+ 0
701
+ ],
702
+ "latent_image": [
703
+ "262:259",
704
+ 2
705
+ ],
706
+ "model": [
707
+ "262:224",
708
+ 0
709
+ ],
710
+ "negative": [
711
+ "262:259",
712
+ 1
713
+ ],
714
+ "noise_seed": 1,
715
+ "positive": [
716
+ "262:259",
717
+ 0
718
+ ],
719
+ "sampler": [
720
+ "262:225",
721
+ 0
722
+ ],
723
+ "sigmas": [
724
+ "262:226",
725
+ 0
726
+ ]
727
+ }
728
+ },
729
+ "262:228": {
730
+ "_meta": {
731
+ "title": "Int (Steps)"
732
+ },
733
+ "class_type": "PrimitiveInt",
734
+ "inputs": {
735
+ "value": 6
736
+ }
737
+ },
738
+ "262:229": {
739
+ "_meta": {
740
+ "title": "Float (CFG)"
741
+ },
742
+ "class_type": "PrimitiveFloat",
743
+ "inputs": {
744
+ "value": 1
745
+ }
746
+ },
747
+ "262:230": {
748
+ "_meta": {
749
+ "title": "Int (Steps)"
750
+ },
751
+ "class_type": "PrimitiveInt",
752
+ "inputs": {
753
+ "value": 40
754
+ }
755
+ },
756
+ "262:231": {
757
+ "_meta": {
758
+ "title": "Float (CFG)"
759
+ },
760
+ "class_type": "PrimitiveFloat",
761
+ "inputs": {
762
+ "value": 5
763
+ }
764
+ },
765
+ "262:232": {
766
+ "_meta": {
767
+ "title": "Switch (Model)"
768
+ },
769
+ "class_type": "ComfySwitchNode",
770
+ "inputs": {
771
+ "on_false": [
772
+ "262:319",
773
+ 0
774
+ ],
775
+ "on_true": [
776
+ "262:216",
777
+ 0
778
+ ],
779
+ "switch": [
780
+ "262:255",
781
+ 0
782
+ ]
783
+ }
784
+ },
785
+ "262:233": {
786
+ "_meta": {
787
+ "title": "Switch (Steps)"
788
+ },
789
+ "class_type": "ComfySwitchNode",
790
+ "inputs": {
791
+ "on_false": [
792
+ "262:230",
793
+ 0
794
+ ],
795
+ "on_true": [
796
+ "262:228",
797
+ 0
798
+ ],
799
+ "switch": [
800
+ "262:255",
801
+ 0
802
+ ]
803
+ }
804
+ },
805
+ "262:234": {
806
+ "_meta": {
807
+ "title": "Switch (Steps)"
808
+ },
809
+ "class_type": "ComfySwitchNode",
810
+ "inputs": {
811
+ "on_false": [
812
+ "262:231",
813
+ 0
814
+ ],
815
+ "on_true": [
816
+ "262:229",
817
+ 0
818
+ ],
819
+ "switch": [
820
+ "262:255",
821
+ 0
822
+ ]
823
+ }
824
+ },
825
+ "262:235": {
826
+ "class_type": "ImageFromBatch",
827
+ "inputs": {
828
+ "batch_index": [
829
+ "262:241",
830
+ 1
831
+ ],
832
+ "image": [
833
+ "262:219",
834
+ 0
835
+ ],
836
+ "length": 81
837
+ }
838
+ },
839
+ "262:236": {
840
+ "_meta": {
841
+ "title": "Int (Width)"
842
+ },
843
+ "class_type": "PrimitiveInt",
844
+ "inputs": {
845
+ "value": [
846
+ "322",
847
+ 1
848
+ ]
849
+ }
850
+ },
851
+ "262:237": {
852
+ "_meta": {
853
+ "title": "Int (Height)"
854
+ },
855
+ "class_type": "PrimitiveInt",
856
+ "inputs": {
857
+ "value": [
858
+ "323",
859
+ 1
860
+ ]
861
+ }
862
+ },
863
+ "262:238": {
864
+ "class_type": "ComfyMathExpression",
865
+ "inputs": {
866
+ "expression": "(a // 32) * 32",
867
+ "values.a": [
868
+ "262:236",
869
+ 0
870
+ ]
871
+ }
872
+ },
873
+ "262:239": {
874
+ "class_type": "ComfyMathExpression",
875
+ "inputs": {
876
+ "expression": "(a // 32) * 32",
877
+ "values.a": [
878
+ "262:237",
879
+ 0
880
+ ]
881
+ }
882
+ },
883
+ "262:240": {
884
+ "_meta": {
885
+ "title": "Int (segment index)"
886
+ },
887
+ "class_type": "PrimitiveInt",
888
+ "inputs": {
889
+ "value": 2
890
+ }
891
+ },
892
+ "262:241": {
893
+ "class_type": "ComfyMathExpression",
894
+ "inputs": {
895
+ "expression": "(b - c) * (a - 1)",
896
+ "values.a": [
897
+ "262:240",
898
+ 0
899
+ ],
900
+ "values.b": 81,
901
+ "values.c": 5
902
+ }
903
+ },
904
+ "262:242": {
905
+ "class_type": "CLIPTextEncode",
906
+ "inputs": {
907
+ "clip": [
908
+ "262:243",
909
+ 1
910
+ ],
911
+ "text": "human"
912
+ }
913
+ },
914
+ "262:243": {
915
+ "class_type": "CheckpointLoaderSimple",
916
+ "inputs": {
917
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
918
+ }
919
+ },
920
+ "262:244": {
921
+ "class_type": "SAM3_VideoTrack",
922
+ "inputs": {
923
+ "conditioning": [
924
+ "262:242",
925
+ 0
926
+ ],
927
+ "detect_interval": 1,
928
+ "detection_threshold": 0.5,
929
+ "images": [
930
+ "262:218",
931
+ 0
932
+ ],
933
+ "max_objects": 4,
934
+ "model": [
935
+ "262:243",
936
+ 0
937
+ ]
938
+ }
939
+ },
940
+ "262:245": {
941
+ "class_type": "SCAIL2ColoredMask",
942
+ "inputs": {
943
+ "driving_track_data": [
944
+ "262:244",
945
+ 0
946
+ ],
947
+ "object_indices": "",
948
+ "ref_track_data": [
949
+ "262:246",
950
+ 0
951
+ ],
952
+ "replacement_mode": [
953
+ "262:247",
954
+ 0
955
+ ],
956
+ "sort_by": "left_to_right"
957
+ }
958
+ },
959
+ "262:246": {
960
+ "class_type": "SAM3_VideoTrack",
961
+ "inputs": {
962
+ "conditioning": [
963
+ "262:261",
964
+ 0
965
+ ],
966
+ "detect_interval": 1,
967
+ "detection_threshold": 0.5,
968
+ "images": [
969
+ "30",
970
+ 0
971
+ ],
972
+ "max_objects": 4,
973
+ "model": [
974
+ "262:243",
975
+ 0
976
+ ]
977
+ }
978
+ },
979
+ "262:247": {
980
+ "_meta": {
981
+ "title": "Boolean \uff08Replace Mode\uff09"
982
+ },
983
+ "class_type": "PrimitiveBoolean",
984
+ "inputs": {
985
+ "value": true
986
+ }
987
+ },
988
+ "262:250": {
989
+ "class_type": "VAEDecode",
990
+ "inputs": {
991
+ "samples": [
992
+ "262:227",
993
+ 1
994
+ ],
995
+ "vae": [
996
+ "262:217",
997
+ 0
998
+ ]
999
+ }
1000
+ },
1001
+ "262:251": {
1002
+ "class_type": "ImageFromBatch",
1003
+ "inputs": {
1004
+ "batch_index": 5,
1005
+ "image": [
1006
+ "262:250",
1007
+ 0
1008
+ ],
1009
+ "length": 4096
1010
+ }
1011
+ },
1012
+ "262:252": {
1013
+ "class_type": "ColorTransfer",
1014
+ "inputs": {
1015
+ "image_ref": [
1016
+ "262:253",
1017
+ 0
1018
+ ],
1019
+ "image_target": [
1020
+ "262:251",
1021
+ 0
1022
+ ],
1023
+ "method": "reinhard_lab",
1024
+ "source_stats": "per_frame",
1025
+ "strength": 1
1026
+ }
1027
+ },
1028
+ "262:253": {
1029
+ "class_type": "ImageFromBatch",
1030
+ "inputs": {
1031
+ "batch_index": -1,
1032
+ "image": [
1033
+ "213:6",
1034
+ 0
1035
+ ],
1036
+ "length": 1
1037
+ }
1038
+ },
1039
+ "262:255": {
1040
+ "_meta": {
1041
+ "title": "Boolean (Enable Distill LoRA?)"
1042
+ },
1043
+ "class_type": "PrimitiveBoolean",
1044
+ "inputs": {
1045
+ "value": true
1046
+ }
1047
+ },
1048
+ "262:256": {
1049
+ "class_type": "CLIPVisionEncode",
1050
+ "inputs": {
1051
+ "clip_vision": [
1052
+ "262:222",
1053
+ 0
1054
+ ],
1055
+ "crop": "none",
1056
+ "image": [
1057
+ "30",
1058
+ 0
1059
+ ]
1060
+ }
1061
+ },
1062
+ "262:257": {
1063
+ "class_type": "CLIPTextEncode",
1064
+ "inputs": {
1065
+ "clip": [
1066
+ "262:221",
1067
+ 0
1068
+ ],
1069
+ "text": ""
1070
+ }
1071
+ },
1072
+ "262:258": {
1073
+ "class_type": "CLIPTextEncode",
1074
+ "inputs": {
1075
+ "clip": [
1076
+ "262:221",
1077
+ 0
1078
+ ],
1079
+ "text": "A young woman with dark hair tied in a neat high bun, with a few loose strands framing her face, is dancing outdoors on a sunny coastal hillside. She has a normal-sized head and a slim face, with no hat, no headwear, and no oversized hair volume. She wears a fitted black long-sleeve crop top with a shoulder cutout, extremely baggy black cargo pants with straps and pockets, and chunky black combat boots. She performs energetic dance moves with one leg lifted and arms extended, moving naturally in front of a large tree, a small white stone house with a terracotta roof, and a bright blue sea under a clear sky with light clouds."
1080
+ }
1081
+ },
1082
+ "262:259": {
1083
+ "class_type": "WanSCAILToVideo",
1084
+ "inputs": {
1085
+ "batch_size": 1,
1086
+ "clip_vision_output": [
1087
+ "262:256",
1088
+ 0
1089
+ ],
1090
+ "height": [
1091
+ "262:220",
1092
+ 1
1093
+ ],
1094
+ "length": [
1095
+ "262:220",
1096
+ 2
1097
+ ],
1098
+ "negative": [
1099
+ "262:257",
1100
+ 0
1101
+ ],
1102
+ "pose_end": 1,
1103
+ "pose_start": 0,
1104
+ "pose_strength": 1,
1105
+ "pose_video": [
1106
+ "262:218",
1107
+ 0
1108
+ ],
1109
+ "pose_video_mask": [
1110
+ "262:245",
1111
+ 0
1112
+ ],
1113
+ "positive": [
1114
+ "262:258",
1115
+ 0
1116
+ ],
1117
+ "previous_frame_count": 5,
1118
+ "previous_frames": [
1119
+ "213:6",
1120
+ 0
1121
+ ],
1122
+ "reference_image": [
1123
+ "30",
1124
+ 0
1125
+ ],
1126
+ "reference_image_mask": [
1127
+ "262:245",
1128
+ 1
1129
+ ],
1130
+ "replacement_mode": [
1131
+ "262:247",
1132
+ 0
1133
+ ],
1134
+ "vae": [
1135
+ "262:217",
1136
+ 0
1137
+ ],
1138
+ "video_frame_offset": 0,
1139
+ "width": [
1140
+ "262:220",
1141
+ 0
1142
+ ]
1143
+ }
1144
+ },
1145
+ "262:261": {
1146
+ "class_type": "CLIPTextEncode",
1147
+ "inputs": {
1148
+ "clip": [
1149
+ "262:243",
1150
+ 1
1151
+ ],
1152
+ "text": "human"
1153
+ }
1154
+ },
1155
+ "262:319": {
1156
+ "class_type": "LoraLoaderModelOnly",
1157
+ "inputs": {
1158
+ "lora_name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
1159
+ "model": [
1160
+ "262:223",
1161
+ 0
1162
+ ],
1163
+ "strength_model": 1
1164
+ }
1165
+ },
1166
+ "263": {
1167
+ "class_type": "GetImageSize",
1168
+ "inputs": {
1169
+ "image": [
1170
+ "215",
1171
+ 0
1172
+ ]
1173
+ }
1174
+ },
1175
+ "264": {
1176
+ "class_type": "ComfyMathExpression",
1177
+ "inputs": {
1178
+ "expression": "ceil(a / (81 - 5))",
1179
+ "values.a": [
1180
+ "263",
1181
+ 2
1182
+ ]
1183
+ }
1184
+ },
1185
+ "265": {
1186
+ "_meta": {
1187
+ "title": "Preview as Text ()"
1188
+ },
1189
+ "class_type": "PreviewAny",
1190
+ "inputs": {
1191
+ "source": [
1192
+ "264",
1193
+ 1
1194
+ ]
1195
+ }
1196
+ },
1197
+ "269": {
1198
+ "class_type": "BatchImagesNode",
1199
+ "inputs": {
1200
+ "images.image0": [
1201
+ "213:6",
1202
+ 0
1203
+ ],
1204
+ "images.image1": [
1205
+ "262:252",
1206
+ 0
1207
+ ]
1208
+ }
1209
+ },
1210
+ "270": {
1211
+ "class_type": "CreateVideo",
1212
+ "inputs": {
1213
+ "audio": [
1214
+ "215",
1215
+ 1
1216
+ ],
1217
+ "bit_depth": 8,
1218
+ "fps": [
1219
+ "215",
1220
+ 2
1221
+ ],
1222
+ "images": [
1223
+ "269",
1224
+ 0
1225
+ ]
1226
+ }
1227
+ },
1228
+ "271": {
1229
+ "_meta": {
1230
+ "title": "Save Video (Final output)"
1231
+ },
1232
+ "class_type": "SaveVideo",
1233
+ "inputs": {
1234
+ "codec": "auto",
1235
+ "filename_prefix": "video/SCAIL2",
1236
+ "format": "auto",
1237
+ "video": [
1238
+ "270",
1239
+ 0
1240
+ ]
1241
+ }
1242
+ },
1243
+ "30": {
1244
+ "class_type": "LoadImage",
1245
+ "inputs": {
1246
+ "image": "reference_streetwear_character.png"
1247
+ }
1248
+ },
1249
+ "322": {
1250
+ "_meta": {
1251
+ "title": "Auto Width (closest SCAIL aspect)"
1252
+ },
1253
+ "class_type": "ComfyMathExpression",
1254
+ "inputs": {
1255
+ "expression": "min(896, max(512, round(sqrt(458752 * a / b) / 16) * 16))",
1256
+ "values.a": [
1257
+ "263",
1258
+ 0
1259
+ ],
1260
+ "values.b": [
1261
+ "263",
1262
+ 1
1263
+ ]
1264
+ }
1265
+ },
1266
+ "323": {
1267
+ "_meta": {
1268
+ "title": "Auto Height (closest SCAIL aspect)"
1269
+ },
1270
+ "class_type": "ComfyMathExpression",
1271
+ "inputs": {
1272
+ "expression": "min(896, max(512, round(sqrt(458752 * b / a) / 16) * 16))",
1273
+ "values.a": [
1274
+ "263",
1275
+ 0
1276
+ ],
1277
+ "values.b": [
1278
+ "263",
1279
+ 1
1280
+ ]
1281
+ }
1282
+ },
1283
+ "324": {
1284
+ "_meta": {
1285
+ "title": "Auto Width \u2192"
1286
+ },
1287
+ "class_type": "PreviewAny",
1288
+ "inputs": {
1289
+ "source": [
1290
+ "322",
1291
+ 1
1292
+ ]
1293
+ }
1294
+ },
1295
+ "325": {
1296
+ "_meta": {
1297
+ "title": "Auto Height \u2192"
1298
+ },
1299
+ "class_type": "PreviewAny",
1300
+ "inputs": {
1301
+ "source": [
1302
+ "323",
1303
+ 1
1304
+ ]
1305
+ }
1306
+ }
1307
+ }