denk commited on
Commit
2822a33
1 Parent(s): 3530b83

add comfyui json

Browse files
README.md CHANGED
@@ -29,7 +29,7 @@ Start prompt with text like this:
29
  #### ComfyUI example
30
 
31
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/xoCwk68lKPks0rrctHhvI.png)
32
-
33
  #### Minimal code example
34
  ```python
35
  import torch
 
29
  #### ComfyUI example
30
 
31
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/xoCwk68lKPks0rrctHhvI.png)
32
+ <a href="https://huggingface.co/NimVideo/cogvideox1.5-5b-prompt-camera-motion/blob/main/cogvideox_1_5_5b_I2V_prompt_motion_lora_example.json">JSON File Example</a>
33
  #### Minimal code example
34
  ```python
35
  import torch
cogvideox_1_5_5b_I2V_prompt_motion_lora_example.json ADDED
@@ -0,0 +1,741 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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 ],
12
+ "size": [
13
+ 330,
14
+ 574
15
+ ],
16
+ "flags": {},
17
+ "order": 8,
18
+ "mode": 0,
19
+ "inputs": [
20
+ {
21
+ "name": "model",
22
+ "type": "COGVIDEOMODEL",
23
+ "link": 144
24
+ },
25
+ {
26
+ "name": "positive",
27
+ "type": "CONDITIONING",
28
+ "link": 145
29
+ },
30
+ {
31
+ "name": "negative",
32
+ "type": "CONDITIONING",
33
+ "link": 146
34
+ },
35
+ {
36
+ "name": "samples",
37
+ "type": "LATENT",
38
+ "link": null,
39
+ "shape": 7
40
+ },
41
+ {
42
+ "name": "image_cond_latents",
43
+ "type": "LATENT",
44
+ "link": 147,
45
+ "shape": 7
46
+ },
47
+ {
48
+ "name": "context_options",
49
+ "type": "COGCONTEXT",
50
+ "link": null,
51
+ "shape": 7
52
+ },
53
+ {
54
+ "name": "controlnet",
55
+ "type": "COGVIDECONTROLNET",
56
+ "link": null,
57
+ "shape": 7
58
+ },
59
+ {
60
+ "name": "tora_trajectory",
61
+ "type": "TORAFEATURES",
62
+ "link": null,
63
+ "shape": 7
64
+ },
65
+ {
66
+ "name": "fastercache",
67
+ "type": "FASTERCACHEARGS",
68
+ "link": null,
69
+ "shape": 7
70
+ }
71
+ ],
72
+ "outputs": [
73
+ {
74
+ "name": "samples",
75
+ "type": "LATENT",
76
+ "links": [
77
+ 148
78
+ ]
79
+ }
80
+ ],
81
+ "properties": {
82
+ "Node name for S&R": "CogVideoSampler"
83
+ },
84
+ "widgets_values": [
85
+ 49,
86
+ 25,
87
+ 6,
88
+ 0,
89
+ "fixed",
90
+ "CogVideoXDDIM",
91
+ 1
92
+ ]
93
+ },
94
+ {
95
+ "id": 37,
96
+ "type": "ImageResizeKJ",
97
+ "pos": [
98
+ 784,
99
+ 731
100
+ ],
101
+ "size": [
102
+ 315,
103
+ 266
104
+ ],
105
+ "flags": {},
106
+ "order": 3,
107
+ "mode": 0,
108
+ "inputs": [
109
+ {
110
+ "name": "image",
111
+ "type": "IMAGE",
112
+ "link": 71
113
+ },
114
+ {
115
+ "name": "get_image_size",
116
+ "type": "IMAGE",
117
+ "link": null,
118
+ "shape": 7
119
+ },
120
+ {
121
+ "name": "width_input",
122
+ "type": "INT",
123
+ "link": null,
124
+ "widget": {
125
+ "name": "width_input"
126
+ }
127
+ },
128
+ {
129
+ "name": "height_input",
130
+ "type": "INT",
131
+ "link": null,
132
+ "widget": {
133
+ "name": "height_input"
134
+ }
135
+ }
136
+ ],
137
+ "outputs": [
138
+ {
139
+ "name": "IMAGE",
140
+ "type": "IMAGE",
141
+ "links": [
142
+ 142
143
+ ],
144
+ "slot_index": 0,
145
+ "shape": 3
146
+ },
147
+ {
148
+ "name": "width",
149
+ "type": "INT",
150
+ "links": null,
151
+ "shape": 3
152
+ },
153
+ {
154
+ "name": "height",
155
+ "type": "INT",
156
+ "links": null,
157
+ "shape": 3
158
+ }
159
+ ],
160
+ "properties": {
161
+ "Node name for S&R": "ImageResizeKJ"
162
+ },
163
+ "widgets_values": [
164
+ 1360,
165
+ 768,
166
+ "lanczos",
167
+ false,
168
+ 16,
169
+ 0,
170
+ 0,
171
+ "disabled"
172
+ ]
173
+ },
174
+ {
175
+ "id": 31,
176
+ "type": "CogVideoTextEncode",
177
+ "pos": [
178
+ 497,
179
+ 520
180
+ ],
181
+ "size": [
182
+ 463.01251220703125,
183
+ 144
184
+ ],
185
+ "flags": {},
186
+ "order": 6,
187
+ "mode": 0,
188
+ "inputs": [
189
+ {
190
+ "name": "clip",
191
+ "type": "CLIP",
192
+ "link": 149
193
+ }
194
+ ],
195
+ "outputs": [
196
+ {
197
+ "name": "conditioning",
198
+ "type": "CONDITIONING",
199
+ "links": [
200
+ 146
201
+ ],
202
+ "slot_index": 0,
203
+ "shape": 3
204
+ },
205
+ {
206
+ "name": "clip",
207
+ "type": "CLIP",
208
+ "links": null
209
+ }
210
+ ],
211
+ "properties": {
212
+ "Node name for S&R": "CogVideoTextEncode"
213
+ },
214
+ "widgets_values": [
215
+ "",
216
+ 1,
217
+ true
218
+ ]
219
+ },
220
+ {
221
+ "id": 36,
222
+ "type": "LoadImage",
223
+ "pos": [
224
+ 335,
225
+ 731
226
+ ],
227
+ "size": [
228
+ 402.06353759765625,
229
+ 396.6225891113281
230
+ ],
231
+ "flags": {},
232
+ "order": 0,
233
+ "mode": 0,
234
+ "inputs": [],
235
+ "outputs": [
236
+ {
237
+ "name": "IMAGE",
238
+ "type": "IMAGE",
239
+ "links": [
240
+ 71
241
+ ],
242
+ "slot_index": 0,
243
+ "shape": 3
244
+ },
245
+ {
246
+ "name": "MASK",
247
+ "type": "MASK",
248
+ "links": null,
249
+ "shape": 3
250
+ }
251
+ ],
252
+ "properties": {
253
+ "Node name for S&R": "LoadImage"
254
+ },
255
+ "widgets_values": [
256
+ "car.jpg",
257
+ "image"
258
+ ]
259
+ },
260
+ {
261
+ "id": 20,
262
+ "type": "CLIPLoader",
263
+ "pos": [
264
+ -2,
265
+ 304
266
+ ],
267
+ "size": [
268
+ 451.30548095703125,
269
+ 82
270
+ ],
271
+ "flags": {},
272
+ "order": 1,
273
+ "mode": 0,
274
+ "inputs": [],
275
+ "outputs": [
276
+ {
277
+ "name": "CLIP",
278
+ "type": "CLIP",
279
+ "links": [
280
+ 54
281
+ ],
282
+ "slot_index": 0,
283
+ "shape": 3
284
+ }
285
+ ],
286
+ "properties": {
287
+ "Node name for S&R": "CLIPLoader"
288
+ },
289
+ "widgets_values": [
290
+ "t5/google_t5-v1_1-xxl_encoderonly-fp8_e4m3fn.safetensors",
291
+ "sd3"
292
+ ]
293
+ },
294
+ {
295
+ "id": 62,
296
+ "type": "CogVideoImageEncode",
297
+ "pos": [
298
+ 1149,
299
+ 711
300
+ ],
301
+ "size": [
302
+ 315,
303
+ 194
304
+ ],
305
+ "flags": {},
306
+ "order": 7,
307
+ "mode": 0,
308
+ "inputs": [
309
+ {
310
+ "name": "vae",
311
+ "type": "VAE",
312
+ "link": 141
313
+ },
314
+ {
315
+ "name": "start_image",
316
+ "type": "IMAGE",
317
+ "link": 142
318
+ },
319
+ {
320
+ "name": "end_image",
321
+ "type": "IMAGE",
322
+ "link": null,
323
+ "shape": 7
324
+ }
325
+ ],
326
+ "outputs": [
327
+ {
328
+ "name": "samples",
329
+ "type": "LATENT",
330
+ "links": [
331
+ 147
332
+ ]
333
+ }
334
+ ],
335
+ "properties": {
336
+ "Node name for S&R": "CogVideoImageEncode"
337
+ },
338
+ "widgets_values": [
339
+ false,
340
+ 0,
341
+ 1,
342
+ 0,
343
+ 1
344
+ ]
345
+ },
346
+ {
347
+ "id": 30,
348
+ "type": "CogVideoTextEncode",
349
+ "pos": [
350
+ 488,
351
+ 301
352
+ ],
353
+ "size": [
354
+ 471.90142822265625,
355
+ 168.08047485351562
356
+ ],
357
+ "flags": {},
358
+ "order": 4,
359
+ "mode": 0,
360
+ "inputs": [
361
+ {
362
+ "name": "clip",
363
+ "type": "CLIP",
364
+ "link": 54
365
+ }
366
+ ],
367
+ "outputs": [
368
+ {
369
+ "name": "conditioning",
370
+ "type": "CONDITIONING",
371
+ "links": [
372
+ 145
373
+ ],
374
+ "slot_index": 0,
375
+ "shape": 3
376
+ },
377
+ {
378
+ "name": "clip",
379
+ "type": "CLIP",
380
+ "links": [
381
+ 149
382
+ ],
383
+ "slot_index": 1
384
+ }
385
+ ],
386
+ "properties": {
387
+ "Node name for S&R": "CogVideoTextEncode"
388
+ },
389
+ "widgets_values": [
390
+ "Camera is moving to the left. A red sports car driving on a winding road.",
391
+ 1,
392
+ false
393
+ ]
394
+ },
395
+ {
396
+ "id": 60,
397
+ "type": "CogVideoDecode",
398
+ "pos": [
399
+ 1521,
400
+ -6
401
+ ],
402
+ "size": [
403
+ 315,
404
+ 198
405
+ ],
406
+ "flags": {},
407
+ "order": 9,
408
+ "mode": 0,
409
+ "inputs": [
410
+ {
411
+ "name": "vae",
412
+ "type": "VAE",
413
+ "link": 132
414
+ },
415
+ {
416
+ "name": "samples",
417
+ "type": "LATENT",
418
+ "link": 148
419
+ }
420
+ ],
421
+ "outputs": [
422
+ {
423
+ "name": "images",
424
+ "type": "IMAGE",
425
+ "links": [
426
+ 134
427
+ ]
428
+ }
429
+ ],
430
+ "properties": {
431
+ "Node name for S&R": "CogVideoDecode"
432
+ },
433
+ "widgets_values": [
434
+ true,
435
+ 240,
436
+ 360,
437
+ 0.2,
438
+ 0.2,
439
+ true
440
+ ]
441
+ },
442
+ {
443
+ "id": 59,
444
+ "type": "DownloadAndLoadCogVideoModel",
445
+ "pos": [
446
+ 482,
447
+ 20
448
+ ],
449
+ "size": [
450
+ 315,
451
+ 218
452
+ ],
453
+ "flags": {},
454
+ "order": 5,
455
+ "mode": 0,
456
+ "inputs": [
457
+ {
458
+ "name": "block_edit",
459
+ "type": "TRANSFORMERBLOCKS",
460
+ "link": null,
461
+ "shape": 7
462
+ },
463
+ {
464
+ "name": "lora",
465
+ "type": "COGLORA",
466
+ "link": 150,
467
+ "shape": 7
468
+ },
469
+ {
470
+ "name": "compile_args",
471
+ "type": "COMPILEARGS",
472
+ "link": null,
473
+ "shape": 7
474
+ }
475
+ ],
476
+ "outputs": [
477
+ {
478
+ "name": "model",
479
+ "type": "COGVIDEOMODEL",
480
+ "links": [
481
+ 144
482
+ ],
483
+ "slot_index": 0
484
+ },
485
+ {
486
+ "name": "vae",
487
+ "type": "VAE",
488
+ "links": [
489
+ 132,
490
+ 141
491
+ ],
492
+ "slot_index": 1
493
+ }
494
+ ],
495
+ "properties": {
496
+ "Node name for S&R": "DownloadAndLoadCogVideoModel"
497
+ },
498
+ "widgets_values": [
499
+ "kijai/CogVideoX-5b-1.5-I2V",
500
+ "bf16",
501
+ "disabled",
502
+ false,
503
+ "sdpa",
504
+ "main_device"
505
+ ]
506
+ },
507
+ {
508
+ "id": 66,
509
+ "type": "CogVideoLoraSelect",
510
+ "pos": [
511
+ 105,
512
+ 34
513
+ ],
514
+ "size": [
515
+ 315,
516
+ 106
517
+ ],
518
+ "flags": {},
519
+ "order": 2,
520
+ "mode": 0,
521
+ "inputs": [
522
+ {
523
+ "name": "prev_lora",
524
+ "type": "COGLORA",
525
+ "link": null,
526
+ "shape": 7
527
+ }
528
+ ],
529
+ "outputs": [
530
+ {
531
+ "name": "lora",
532
+ "type": "COGLORA",
533
+ "links": [
534
+ 150
535
+ ],
536
+ "slot_index": 0
537
+ }
538
+ ],
539
+ "properties": {
540
+ "Node name for S&R": "CogVideoLoraSelect"
541
+ },
542
+ "widgets_values": [
543
+ "pytorch_lora_weights.safetensors",
544
+ 1,
545
+ false
546
+ ]
547
+ },
548
+ {
549
+ "id": 44,
550
+ "type": "VHS_VideoCombine",
551
+ "pos": [
552
+ 1878,
553
+ -6
554
+ ],
555
+ "size": [
556
+ 605.3909912109375,
557
+ 654.57373046875
558
+ ],
559
+ "flags": {},
560
+ "order": 10,
561
+ "mode": 0,
562
+ "inputs": [
563
+ {
564
+ "name": "images",
565
+ "type": "IMAGE",
566
+ "link": 134
567
+ },
568
+ {
569
+ "name": "audio",
570
+ "type": "AUDIO",
571
+ "link": null,
572
+ "shape": 7
573
+ },
574
+ {
575
+ "name": "meta_batch",
576
+ "type": "VHS_BatchManager",
577
+ "link": null,
578
+ "shape": 7
579
+ },
580
+ {
581
+ "name": "vae",
582
+ "type": "VAE",
583
+ "link": null,
584
+ "shape": 7
585
+ }
586
+ ],
587
+ "outputs": [
588
+ {
589
+ "name": "Filenames",
590
+ "type": "VHS_FILENAMES",
591
+ "links": null,
592
+ "shape": 3
593
+ }
594
+ ],
595
+ "properties": {
596
+ "Node name for S&R": "VHS_VideoCombine"
597
+ },
598
+ "widgets_values": {
599
+ "frame_rate": 16,
600
+ "loop_count": 0,
601
+ "filename_prefix": "CogVideoX_1_5_I2V",
602
+ "format": "video/h264-mp4",
603
+ "pix_fmt": "yuv420p",
604
+ "crf": 19,
605
+ "save_metadata": true,
606
+ "pingpong": false,
607
+ "save_output": true,
608
+ "videopreview": {
609
+ "hidden": false,
610
+ "paused": false,
611
+ "params": {
612
+ "filename": "CogVideoX_1_5_I2V_00002.mp4",
613
+ "subfolder": "",
614
+ "type": "output",
615
+ "format": "video/h264-mp4",
616
+ "frame_rate": 16
617
+ },
618
+ "muted": false
619
+ }
620
+ }
621
+ }
622
+ ],
623
+ "links": [
624
+ [
625
+ 54,
626
+ 20,
627
+ 0,
628
+ 30,
629
+ 0,
630
+ "CLIP"
631
+ ],
632
+ [
633
+ 71,
634
+ 36,
635
+ 0,
636
+ 37,
637
+ 0,
638
+ "IMAGE"
639
+ ],
640
+ [
641
+ 132,
642
+ 59,
643
+ 1,
644
+ 60,
645
+ 0,
646
+ "VAE"
647
+ ],
648
+ [
649
+ 134,
650
+ 60,
651
+ 0,
652
+ 44,
653
+ 0,
654
+ "IMAGE"
655
+ ],
656
+ [
657
+ 141,
658
+ 59,
659
+ 1,
660
+ 62,
661
+ 0,
662
+ "VAE"
663
+ ],
664
+ [
665
+ 142,
666
+ 37,
667
+ 0,
668
+ 62,
669
+ 1,
670
+ "IMAGE"
671
+ ],
672
+ [
673
+ 144,
674
+ 59,
675
+ 0,
676
+ 63,
677
+ 0,
678
+ "COGVIDEOMODEL"
679
+ ],
680
+ [
681
+ 145,
682
+ 30,
683
+ 0,
684
+ 63,
685
+ 1,
686
+ "CONDITIONING"
687
+ ],
688
+ [
689
+ 146,
690
+ 31,
691
+ 0,
692
+ 63,
693
+ 2,
694
+ "CONDITIONING"
695
+ ],
696
+ [
697
+ 147,
698
+ 62,
699
+ 0,
700
+ 63,
701
+ 4,
702
+ "LATENT"
703
+ ],
704
+ [
705
+ 148,
706
+ 63,
707
+ 0,
708
+ 60,
709
+ 1,
710
+ "LATENT"
711
+ ],
712
+ [
713
+ 149,
714
+ 30,
715
+ 1,
716
+ 31,
717
+ 0,
718
+ "CLIP"
719
+ ],
720
+ [
721
+ 150,
722
+ 66,
723
+ 0,
724
+ 59,
725
+ 1,
726
+ "COGLORA"
727
+ ]
728
+ ],
729
+ "groups": [],
730
+ "config": {},
731
+ "extra": {
732
+ "ds": {
733
+ "scale": 0.6209213230591554,
734
+ "offset": [
735
+ 114.52379405693017,
736
+ 192.2085761485874
737
+ ]
738
+ }
739
+ },
740
+ "version": 0.4
741
+ }