stablediffusiontutorials commited on
Commit
2872441
·
verified ·
1 Parent(s): c6f3f2d

Upload 2 files

Browse files
Files changed (2) hide show
  1. Hidream_O1_base.json +2925 -0
  2. Hidream_O1_dev.json +2866 -0
Hidream_O1_base.json ADDED
@@ -0,0 +1,2925 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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+ 4600
13
+ ],
14
+ "size": [
15
+ 280,
16
+ 500
17
+ ],
18
+ "flags": {},
19
+ "order": 27,
20
+ "mode": 0,
21
+ "showAdvanced": false,
22
+ "inputs": [
23
+ {
24
+ "name": "model",
25
+ "type": "MODEL",
26
+ "link": 356
27
+ },
28
+ {
29
+ "name": "positive",
30
+ "type": "CONDITIONING",
31
+ "link": 323
32
+ },
33
+ {
34
+ "name": "negative",
35
+ "type": "CONDITIONING",
36
+ "link": 324
37
+ },
38
+ {
39
+ "name": "sampler",
40
+ "type": "SAMPLER",
41
+ "link": 351
42
+ },
43
+ {
44
+ "name": "sigmas",
45
+ "type": "SIGMAS",
46
+ "link": 139
47
+ },
48
+ {
49
+ "name": "latent_image",
50
+ "type": "LATENT",
51
+ "link": 321
52
+ }
53
+ ],
54
+ "outputs": [
55
+ {
56
+ "name": "output",
57
+ "type": "LATENT",
58
+ "links": [
59
+ 322
60
+ ]
61
+ },
62
+ {
63
+ "name": "denoised_output",
64
+ "type": "LATENT",
65
+ "links": []
66
+ }
67
+ ],
68
+ "properties": {
69
+ "Node name for S&R": "SamplerCustom",
70
+ "cnr_id": "comfy-core",
71
+ "ver": "0.21.0",
72
+ "enableTabs": false,
73
+ "tabWidth": 65,
74
+ "tabXOffset": 10,
75
+ "hasSecondTab": false,
76
+ "secondTabText": "Send Back",
77
+ "secondTabOffset": 80,
78
+ "secondTabWidth": 65
79
+ },
80
+ "widgets_values": [
81
+ true,
82
+ 493576922569549,
83
+ "randomize",
84
+ 5
85
+ ]
86
+ },
87
+ {
88
+ "id": 112,
89
+ "type": "BasicScheduler",
90
+ "pos": [
91
+ -1340,
92
+ 5060
93
+ ],
94
+ "size": [
95
+ 280,
96
+ 150
97
+ ],
98
+ "flags": {},
99
+ "order": 14,
100
+ "mode": 0,
101
+ "inputs": [
102
+ {
103
+ "name": "model",
104
+ "type": "MODEL",
105
+ "link": 182
106
+ }
107
+ ],
108
+ "outputs": [
109
+ {
110
+ "name": "SIGMAS",
111
+ "type": "SIGMAS",
112
+ "links": [
113
+ 139
114
+ ]
115
+ }
116
+ ],
117
+ "properties": {
118
+ "Node name for S&R": "BasicScheduler",
119
+ "cnr_id": "comfy-core",
120
+ "ver": "0.21.0",
121
+ "enableTabs": false,
122
+ "tabWidth": 65,
123
+ "tabXOffset": 10,
124
+ "hasSecondTab": false,
125
+ "secondTabText": "Send Back",
126
+ "secondTabOffset": 80,
127
+ "secondTabWidth": 65
128
+ },
129
+ "widgets_values": [
130
+ "normal",
131
+ 40,
132
+ 1
133
+ ]
134
+ },
135
+ {
136
+ "id": 6,
137
+ "type": "CheckpointLoaderSimple",
138
+ "pos": [
139
+ -3240,
140
+ 4620
141
+ ],
142
+ "size": [
143
+ 470,
144
+ 140
145
+ ],
146
+ "flags": {},
147
+ "order": 0,
148
+ "mode": 0,
149
+ "inputs": [],
150
+ "outputs": [
151
+ {
152
+ "name": "MODEL",
153
+ "type": "MODEL",
154
+ "links": [
155
+ 192
156
+ ]
157
+ },
158
+ {
159
+ "name": "CLIP",
160
+ "type": "CLIP",
161
+ "links": [
162
+ 146,
163
+ 274
164
+ ]
165
+ },
166
+ {
167
+ "name": "VAE",
168
+ "type": "VAE",
169
+ "links": [
170
+ 147
171
+ ]
172
+ }
173
+ ],
174
+ "properties": {
175
+ "Node name for S&R": "CheckpointLoaderSimple",
176
+ "cnr_id": "comfy-core",
177
+ "ver": "0.21.0",
178
+ "models": [
179
+ {
180
+ "name": "hidream_o1_image_bf16.safetensors",
181
+ "url": "https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_bf16.safetensors",
182
+ "directory": "checkpoints"
183
+ }
184
+ ],
185
+ "enableTabs": false,
186
+ "tabWidth": 65,
187
+ "tabXOffset": 10,
188
+ "hasSecondTab": false,
189
+ "secondTabText": "Send Back",
190
+ "secondTabOffset": 80,
191
+ "secondTabWidth": 65
192
+ },
193
+ "widgets_values": [
194
+ "hidream_o1_image_bf16.safetensors"
195
+ ]
196
+ },
197
+ {
198
+ "id": 124,
199
+ "type": "ModelNoiseScale",
200
+ "pos": [
201
+ -1700,
202
+ 4880
203
+ ],
204
+ "size": [
205
+ 280,
206
+ 80
207
+ ],
208
+ "flags": {},
209
+ "order": 10,
210
+ "mode": 0,
211
+ "inputs": [
212
+ {
213
+ "name": "model",
214
+ "type": "MODEL",
215
+ "link": 192
216
+ }
217
+ ],
218
+ "outputs": [
219
+ {
220
+ "name": "MODEL",
221
+ "type": "MODEL",
222
+ "links": [
223
+ 182,
224
+ 355
225
+ ]
226
+ }
227
+ ],
228
+ "properties": {
229
+ "Node name for S&R": "ModelNoiseScale",
230
+ "cnr_id": "comfy-core",
231
+ "ver": "0.21.0",
232
+ "enableTabs": false,
233
+ "tabWidth": 65,
234
+ "tabXOffset": 10,
235
+ "hasSecondTab": false,
236
+ "secondTabText": "Send Back",
237
+ "secondTabOffset": 80,
238
+ "secondTabWidth": 65
239
+ },
240
+ "widgets_values": [
241
+ 8
242
+ ]
243
+ },
244
+ {
245
+ "id": 104,
246
+ "type": "HiDreamO1ReferenceImages",
247
+ "pos": [
248
+ -2050,
249
+ 5090
250
+ ],
251
+ "size": [
252
+ 250,
253
+ 120
254
+ ],
255
+ "flags": {},
256
+ "order": 24,
257
+ "mode": 0,
258
+ "inputs": [
259
+ {
260
+ "name": "positive",
261
+ "type": "CONDITIONING",
262
+ "link": 141
263
+ },
264
+ {
265
+ "name": "negative",
266
+ "type": "CONDITIONING",
267
+ "link": 275
268
+ },
269
+ {
270
+ "label": "image_1",
271
+ "name": "images.image_1",
272
+ "type": "IMAGE",
273
+ "link": 362
274
+ },
275
+ {
276
+ "label": "image_2",
277
+ "name": "images.image_2",
278
+ "shape": 7,
279
+ "type": "IMAGE",
280
+ "link": null
281
+ }
282
+ ],
283
+ "outputs": [
284
+ {
285
+ "name": "positive",
286
+ "type": "CONDITIONING",
287
+ "links": [
288
+ 218
289
+ ]
290
+ },
291
+ {
292
+ "name": "negative",
293
+ "type": "CONDITIONING",
294
+ "links": [
295
+ 220
296
+ ]
297
+ }
298
+ ],
299
+ "properties": {
300
+ "Node name for S&R": "HiDreamO1ReferenceImages",
301
+ "cnr_id": "comfy-core",
302
+ "ver": "0.21.0",
303
+ "enableTabs": false,
304
+ "tabWidth": 65,
305
+ "tabXOffset": 10,
306
+ "hasSecondTab": false,
307
+ "secondTabText": "Send Back",
308
+ "secondTabOffset": 80,
309
+ "secondTabWidth": 65
310
+ },
311
+ "widgets_values": [],
312
+ "color": "#322",
313
+ "bgcolor": "#533"
314
+ },
315
+ {
316
+ "id": 110,
317
+ "type": "CLIPTextEncode",
318
+ "pos": [
319
+ -2540,
320
+ 4600
321
+ ],
322
+ "size": [
323
+ 420,
324
+ 480
325
+ ],
326
+ "flags": {},
327
+ "order": 22,
328
+ "mode": 0,
329
+ "inputs": [
330
+ {
331
+ "name": "clip",
332
+ "type": "CLIP",
333
+ "link": 146
334
+ },
335
+ {
336
+ "name": "text",
337
+ "type": "STRING",
338
+ "widget": {
339
+ "name": "text"
340
+ },
341
+ "link": 327
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "name": "CONDITIONING",
347
+ "type": "CONDITIONING",
348
+ "links": [
349
+ 141,
350
+ 217
351
+ ]
352
+ }
353
+ ],
354
+ "properties": {
355
+ "Node name for S&R": "CLIPTextEncode",
356
+ "cnr_id": "comfy-core",
357
+ "ver": "0.21.0",
358
+ "enableTabs": false,
359
+ "tabWidth": 65,
360
+ "tabXOffset": 10,
361
+ "hasSecondTab": false,
362
+ "secondTabText": "Send Back",
363
+ "secondTabOffset": 80,
364
+ "secondTabWidth": 65
365
+ },
366
+ "widgets_values": [
367
+ ""
368
+ ],
369
+ "color": "#232",
370
+ "bgcolor": "#353"
371
+ },
372
+ {
373
+ "id": 105,
374
+ "type": "VAEDecode",
375
+ "pos": [
376
+ -950,
377
+ 5140
378
+ ],
379
+ "size": [
380
+ 230,
381
+ 80
382
+ ],
383
+ "flags": {},
384
+ "order": 28,
385
+ "mode": 0,
386
+ "inputs": [
387
+ {
388
+ "name": "samples",
389
+ "type": "LATENT",
390
+ "link": 322
391
+ },
392
+ {
393
+ "name": "vae",
394
+ "type": "VAE",
395
+ "link": 147
396
+ }
397
+ ],
398
+ "outputs": [
399
+ {
400
+ "name": "IMAGE",
401
+ "type": "IMAGE",
402
+ "links": [
403
+ 347
404
+ ]
405
+ }
406
+ ],
407
+ "properties": {
408
+ "Node name for S&R": "VAEDecode",
409
+ "cnr_id": "comfy-core",
410
+ "ver": "0.21.0",
411
+ "enableTabs": false,
412
+ "tabWidth": 65,
413
+ "tabXOffset": 10,
414
+ "hasSecondTab": false,
415
+ "secondTabText": "Send Back",
416
+ "secondTabOffset": 80,
417
+ "secondTabWidth": 65
418
+ },
419
+ "widgets_values": []
420
+ },
421
+ {
422
+ "id": 152,
423
+ "type": "ComfySwitchNode",
424
+ "pos": [
425
+ -2050,
426
+ 4660
427
+ ],
428
+ "size": [
429
+ 270,
430
+ 130
431
+ ],
432
+ "flags": {},
433
+ "order": 25,
434
+ "mode": 0,
435
+ "inputs": [
436
+ {
437
+ "name": "on_false",
438
+ "type": "CONDITIONING",
439
+ "link": 217
440
+ },
441
+ {
442
+ "name": "on_true",
443
+ "type": "CONDITIONING",
444
+ "link": 218
445
+ },
446
+ {
447
+ "name": "switch",
448
+ "type": "BOOLEAN",
449
+ "widget": {
450
+ "name": "switch"
451
+ },
452
+ "link": 224
453
+ }
454
+ ],
455
+ "outputs": [
456
+ {
457
+ "name": "output",
458
+ "type": "CONDITIONING",
459
+ "links": [
460
+ 323
461
+ ]
462
+ }
463
+ ],
464
+ "properties": {
465
+ "Node name for S&R": "ComfySwitchNode",
466
+ "cnr_id": "comfy-core",
467
+ "ver": "0.21.0",
468
+ "enableTabs": false,
469
+ "tabWidth": 65,
470
+ "tabXOffset": 10,
471
+ "hasSecondTab": false,
472
+ "secondTabText": "Send Back",
473
+ "secondTabOffset": 80,
474
+ "secondTabWidth": 65
475
+ },
476
+ "widgets_values": [
477
+ false
478
+ ]
479
+ },
480
+ {
481
+ "id": 153,
482
+ "type": "ComfySwitchNode",
483
+ "pos": [
484
+ -2050,
485
+ 4840
486
+ ],
487
+ "size": [
488
+ 270,
489
+ 130
490
+ ],
491
+ "flags": {},
492
+ "order": 26,
493
+ "mode": 0,
494
+ "inputs": [
495
+ {
496
+ "name": "on_false",
497
+ "type": "CONDITIONING",
498
+ "link": 276
499
+ },
500
+ {
501
+ "name": "on_true",
502
+ "type": "CONDITIONING",
503
+ "link": 220
504
+ },
505
+ {
506
+ "name": "switch",
507
+ "type": "BOOLEAN",
508
+ "widget": {
509
+ "name": "switch"
510
+ },
511
+ "link": 225
512
+ }
513
+ ],
514
+ "outputs": [
515
+ {
516
+ "name": "output",
517
+ "type": "CONDITIONING",
518
+ "links": [
519
+ 324
520
+ ]
521
+ }
522
+ ],
523
+ "properties": {
524
+ "Node name for S&R": "ComfySwitchNode",
525
+ "cnr_id": "comfy-core",
526
+ "ver": "0.21.0",
527
+ "enableTabs": false,
528
+ "tabWidth": 65,
529
+ "tabXOffset": 10,
530
+ "hasSecondTab": false,
531
+ "secondTabText": "Send Back",
532
+ "secondTabOffset": 80,
533
+ "secondTabWidth": 65
534
+ },
535
+ "widgets_values": [
536
+ false
537
+ ]
538
+ },
539
+ {
540
+ "id": 155,
541
+ "type": "ComfySwitchNode",
542
+ "pos": [
543
+ -1180,
544
+ 5400
545
+ ],
546
+ "size": [
547
+ 230,
548
+ 130
549
+ ],
550
+ "flags": {},
551
+ "order": 23,
552
+ "mode": 0,
553
+ "inputs": [
554
+ {
555
+ "name": "on_false",
556
+ "type": "LATENT",
557
+ "link": 233
558
+ },
559
+ {
560
+ "name": "on_true",
561
+ "type": "LATENT",
562
+ "link": 350
563
+ },
564
+ {
565
+ "name": "switch",
566
+ "type": "BOOLEAN",
567
+ "widget": {
568
+ "name": "switch"
569
+ },
570
+ "link": 235
571
+ }
572
+ ],
573
+ "outputs": [
574
+ {
575
+ "name": "output",
576
+ "type": "LATENT",
577
+ "links": [
578
+ 321
579
+ ]
580
+ }
581
+ ],
582
+ "properties": {
583
+ "Node name for S&R": "ComfySwitchNode",
584
+ "cnr_id": "comfy-core",
585
+ "ver": "0.21.0",
586
+ "enableTabs": false,
587
+ "tabWidth": 65,
588
+ "tabXOffset": 10,
589
+ "hasSecondTab": false,
590
+ "secondTabText": "Send Back",
591
+ "secondTabOffset": 80,
592
+ "secondTabWidth": 65
593
+ },
594
+ "widgets_values": [
595
+ false
596
+ ]
597
+ },
598
+ {
599
+ "id": 157,
600
+ "type": "GetImageSize",
601
+ "pos": [
602
+ -1490,
603
+ 5720
604
+ ],
605
+ "size": [
606
+ 225,
607
+ 66
608
+ ],
609
+ "flags": {
610
+ "collapsed": true
611
+ },
612
+ "order": 16,
613
+ "mode": 0,
614
+ "inputs": [
615
+ {
616
+ "name": "image",
617
+ "type": "IMAGE",
618
+ "link": 318
619
+ }
620
+ ],
621
+ "outputs": [
622
+ {
623
+ "name": "width",
624
+ "type": "INT",
625
+ "links": [
626
+ 319
627
+ ]
628
+ },
629
+ {
630
+ "name": "height",
631
+ "type": "INT",
632
+ "links": [
633
+ 320
634
+ ]
635
+ },
636
+ {
637
+ "name": "batch_size",
638
+ "type": "INT",
639
+ "links": null
640
+ }
641
+ ],
642
+ "properties": {
643
+ "Node name for S&R": "GetImageSize",
644
+ "cnr_id": "comfy-core",
645
+ "ver": "0.21.0",
646
+ "enableTabs": false,
647
+ "tabWidth": 65,
648
+ "tabXOffset": 10,
649
+ "hasSecondTab": false,
650
+ "secondTabText": "Send Back",
651
+ "secondTabOffset": 80,
652
+ "secondTabWidth": 65
653
+ },
654
+ "widgets_values": []
655
+ },
656
+ {
657
+ "id": 154,
658
+ "type": "PrimitiveBoolean",
659
+ "pos": [
660
+ -3420,
661
+ 5630
662
+ ],
663
+ "size": [
664
+ 270,
665
+ 80
666
+ ],
667
+ "flags": {},
668
+ "order": 1,
669
+ "mode": 0,
670
+ "inputs": [],
671
+ "outputs": [
672
+ {
673
+ "name": "BOOLEAN",
674
+ "type": "BOOLEAN",
675
+ "links": [
676
+ 224,
677
+ 225,
678
+ 235
679
+ ]
680
+ }
681
+ ],
682
+ "title": "Switch to Image Edit",
683
+ "properties": {
684
+ "Node name for S&R": "PrimitiveBoolean",
685
+ "cnr_id": "comfy-core",
686
+ "ver": "0.21.0",
687
+ "enableTabs": false,
688
+ "tabWidth": 65,
689
+ "tabXOffset": 10,
690
+ "hasSecondTab": false,
691
+ "secondTabText": "Send Back",
692
+ "secondTabOffset": 80,
693
+ "secondTabWidth": 65
694
+ },
695
+ "widgets_values": [
696
+ false
697
+ ]
698
+ },
699
+ {
700
+ "id": 175,
701
+ "type": "fa7296b5-c974-4466-bfe3-a1f05f43b880",
702
+ "pos": [
703
+ -3060,
704
+ 4890
705
+ ],
706
+ "size": [
707
+ 430,
708
+ 180
709
+ ],
710
+ "flags": {},
711
+ "order": 13,
712
+ "mode": 0,
713
+ "inputs": [
714
+ {
715
+ "label": "user_prompt",
716
+ "name": "replace",
717
+ "type": "STRING",
718
+ "widget": {
719
+ "name": "replace"
720
+ },
721
+ "link": 260
722
+ },
723
+ {
724
+ "name": "image",
725
+ "shape": 7,
726
+ "type": "IMAGE",
727
+ "link": 363
728
+ }
729
+ ],
730
+ "outputs": [
731
+ {
732
+ "name": "output",
733
+ "type": "STRING",
734
+ "links": [
735
+ 266
736
+ ]
737
+ }
738
+ ],
739
+ "properties": {
740
+ "proxyWidgets": [
741
+ [
742
+ "170",
743
+ "replace"
744
+ ],
745
+ [
746
+ "167",
747
+ "clip_name"
748
+ ]
749
+ ],
750
+ "cnr_id": "comfy-core",
751
+ "ver": "0.21.0",
752
+ "enableTabs": false,
753
+ "tabWidth": 65,
754
+ "tabXOffset": 10,
755
+ "hasSecondTab": false,
756
+ "secondTabText": "Send Back",
757
+ "secondTabOffset": 80,
758
+ "secondTabWidth": 65
759
+ },
760
+ "widgets_values": []
761
+ },
762
+ {
763
+ "id": 176,
764
+ "type": "ComfySwitchNode",
765
+ "pos": [
766
+ -3060,
767
+ 5110
768
+ ],
769
+ "size": [
770
+ 225,
771
+ 54
772
+ ],
773
+ "flags": {
774
+ "collapsed": true
775
+ },
776
+ "order": 17,
777
+ "mode": 0,
778
+ "inputs": [
779
+ {
780
+ "name": "on_false",
781
+ "type": "STRING",
782
+ "link": 267
783
+ },
784
+ {
785
+ "name": "on_true",
786
+ "type": "STRING",
787
+ "link": 266
788
+ },
789
+ {
790
+ "name": "switch",
791
+ "type": "BOOLEAN",
792
+ "widget": {
793
+ "name": "switch"
794
+ },
795
+ "link": 265
796
+ }
797
+ ],
798
+ "outputs": [
799
+ {
800
+ "name": "output",
801
+ "type": "STRING",
802
+ "links": [
803
+ 326
804
+ ]
805
+ }
806
+ ],
807
+ "properties": {
808
+ "Node name for S&R": "ComfySwitchNode",
809
+ "cnr_id": "comfy-core",
810
+ "ver": "0.21.0",
811
+ "enableTabs": false,
812
+ "tabWidth": 65,
813
+ "tabXOffset": 10,
814
+ "hasSecondTab": false,
815
+ "secondTabText": "Send Back",
816
+ "secondTabOffset": 80,
817
+ "secondTabWidth": 65
818
+ },
819
+ "widgets_values": [
820
+ false
821
+ ]
822
+ },
823
+ {
824
+ "id": 177,
825
+ "type": "PrimitiveBoolean",
826
+ "pos": [
827
+ -3420,
828
+ 5430
829
+ ],
830
+ "size": [
831
+ 270,
832
+ 80
833
+ ],
834
+ "flags": {},
835
+ "order": 2,
836
+ "mode": 0,
837
+ "inputs": [],
838
+ "outputs": [
839
+ {
840
+ "name": "BOOLEAN",
841
+ "type": "BOOLEAN",
842
+ "links": [
843
+ 265
844
+ ]
845
+ }
846
+ ],
847
+ "title": "Enable Prompt Refine?",
848
+ "properties": {
849
+ "Node name for S&R": "PrimitiveBoolean",
850
+ "cnr_id": "comfy-core",
851
+ "ver": "0.21.0",
852
+ "enableTabs": false,
853
+ "tabWidth": 65,
854
+ "tabXOffset": 10,
855
+ "hasSecondTab": false,
856
+ "secondTabText": "Send Back",
857
+ "secondTabOffset": 80,
858
+ "secondTabWidth": 65
859
+ },
860
+ "widgets_values": [
861
+ false
862
+ ]
863
+ },
864
+ {
865
+ "id": 188,
866
+ "type": "CLIPTextEncode",
867
+ "pos": [
868
+ -2540,
869
+ 5160
870
+ ],
871
+ "size": [
872
+ 234.765625,
873
+ 34
874
+ ],
875
+ "flags": {
876
+ "collapsed": true
877
+ },
878
+ "order": 11,
879
+ "mode": 0,
880
+ "inputs": [
881
+ {
882
+ "name": "clip",
883
+ "type": "CLIP",
884
+ "link": 274
885
+ }
886
+ ],
887
+ "outputs": [
888
+ {
889
+ "name": "CONDITIONING",
890
+ "type": "CONDITIONING",
891
+ "links": [
892
+ 275,
893
+ 276
894
+ ]
895
+ }
896
+ ],
897
+ "properties": {
898
+ "Node name for S&R": "CLIPTextEncode",
899
+ "cnr_id": "comfy-core",
900
+ "ver": "0.21.0",
901
+ "enableTabs": false,
902
+ "tabWidth": 65,
903
+ "tabXOffset": 10,
904
+ "hasSecondTab": false,
905
+ "secondTabText": "Send Back",
906
+ "secondTabOffset": 80,
907
+ "secondTabWidth": 65
908
+ },
909
+ "widgets_values": [
910
+ ""
911
+ ],
912
+ "color": "#223",
913
+ "bgcolor": "#335"
914
+ },
915
+ {
916
+ "id": 195,
917
+ "type": "MarkdownNote",
918
+ "pos": [
919
+ -1890,
920
+ 5960
921
+ ],
922
+ "size": [
923
+ 980,
924
+ 560
925
+ ],
926
+ "flags": {},
927
+ "order": 3,
928
+ "mode": 0,
929
+ "inputs": [],
930
+ "outputs": [],
931
+ "title": "Note: About Image Size",
932
+ "properties": {},
933
+ "widgets_values": [
934
+ "Select and Ctrl-B to enable the `ImageScaleToTotalPixels` node, if your input image is too large\n\nThe O1 model is trained under the following resolutions:\n| Width | Height | Category |\n|-------|--------|------------|\n| 2048 | 2048 | Square |\n| 2304 | 1728 | Landscape |\n| 2304 | 1792 | Landscape |\n| 2496 | 1664 | Landscape |\n| 2560 | 1440 | Landscape |\n| 3104 | 1312 | Landscape |\n| 1728 | 2304 | Portrait |\n| 1792 | 2304 | Portrait |\n| 1664 | 2496 | Portrait |\n| 1440 | 2560 | Portrait |\n| 1312 | 3104 | Portrait |"
935
+ ],
936
+ "color": "#222",
937
+ "bgcolor": "#000"
938
+ },
939
+ {
940
+ "id": 196,
941
+ "type": "ImageScaleToTotalPixels",
942
+ "pos": [
943
+ -1830,
944
+ 5700
945
+ ],
946
+ "size": [
947
+ 320,
948
+ 150
949
+ ],
950
+ "flags": {},
951
+ "order": 12,
952
+ "mode": 4,
953
+ "inputs": [
954
+ {
955
+ "name": "image",
956
+ "type": "IMAGE",
957
+ "link": 364
958
+ }
959
+ ],
960
+ "outputs": [
961
+ {
962
+ "name": "IMAGE",
963
+ "type": "IMAGE",
964
+ "links": [
965
+ 318
966
+ ]
967
+ }
968
+ ],
969
+ "properties": {
970
+ "Node name for S&R": "ImageScaleToTotalPixels",
971
+ "cnr_id": "comfy-core",
972
+ "ver": "0.21.0",
973
+ "enableTabs": false,
974
+ "tabWidth": 65,
975
+ "tabXOffset": 10,
976
+ "hasSecondTab": false,
977
+ "secondTabText": "Send Back",
978
+ "secondTabOffset": 80,
979
+ "secondTabWidth": 65
980
+ },
981
+ "widgets_values": [
982
+ "lanczos",
983
+ 4,
984
+ 1
985
+ ]
986
+ },
987
+ {
988
+ "id": 213,
989
+ "type": "LoadImage",
990
+ "pos": [
991
+ -3030,
992
+ 5410
993
+ ],
994
+ "size": [
995
+ 310,
996
+ 430
997
+ ],
998
+ "flags": {},
999
+ "order": 4,
1000
+ "mode": 0,
1001
+ "inputs": [],
1002
+ "outputs": [
1003
+ {
1004
+ "name": "IMAGE",
1005
+ "type": "IMAGE",
1006
+ "links": [
1007
+ 362,
1008
+ 363,
1009
+ 364
1010
+ ]
1011
+ },
1012
+ {
1013
+ "name": "MASK",
1014
+ "type": "MASK",
1015
+ "links": null
1016
+ }
1017
+ ],
1018
+ "properties": {
1019
+ "Node name for S&R": "LoadImage",
1020
+ "cnr_id": "comfy-core",
1021
+ "ver": "0.21.0",
1022
+ "enableTabs": false,
1023
+ "tabWidth": 65,
1024
+ "tabXOffset": 10,
1025
+ "hasSecondTab": false,
1026
+ "secondTabText": "Send Back",
1027
+ "secondTabOffset": 80,
1028
+ "secondTabWidth": 65
1029
+ },
1030
+ "widgets_values": [
1031
+ "noir_portrait.png",
1032
+ "image"
1033
+ ]
1034
+ },
1035
+ {
1036
+ "id": 218,
1037
+ "type": "ComfyMathExpression",
1038
+ "pos": [
1039
+ -1490,
1040
+ 5770
1041
+ ],
1042
+ "size": [
1043
+ 225,
1044
+ 74
1045
+ ],
1046
+ "flags": {
1047
+ "collapsed": true
1048
+ },
1049
+ "order": 18,
1050
+ "mode": 0,
1051
+ "inputs": [
1052
+ {
1053
+ "label": "a",
1054
+ "name": "values.a",
1055
+ "type": "FLOAT,INT,BOOLEAN",
1056
+ "link": 319
1057
+ },
1058
+ {
1059
+ "label": "b",
1060
+ "name": "values.b",
1061
+ "shape": 7,
1062
+ "type": "FLOAT,INT,BOOLEAN",
1063
+ "link": null
1064
+ }
1065
+ ],
1066
+ "outputs": [
1067
+ {
1068
+ "name": "FLOAT",
1069
+ "type": "FLOAT",
1070
+ "links": null
1071
+ },
1072
+ {
1073
+ "name": "INT",
1074
+ "type": "INT",
1075
+ "links": [
1076
+ 310
1077
+ ]
1078
+ },
1079
+ {
1080
+ "name": "BOOL",
1081
+ "type": "BOOLEAN",
1082
+ "links": null
1083
+ }
1084
+ ],
1085
+ "properties": {
1086
+ "Node name for S&R": "ComfyMathExpression",
1087
+ "cnr_id": "comfy-core",
1088
+ "ver": "0.21.0",
1089
+ "enableTabs": false,
1090
+ "tabWidth": 65,
1091
+ "tabXOffset": 10,
1092
+ "hasSecondTab": false,
1093
+ "secondTabText": "Send Back",
1094
+ "secondTabOffset": 80,
1095
+ "secondTabWidth": 65
1096
+ },
1097
+ "widgets_values": [
1098
+ "floor(a/32)*32"
1099
+ ]
1100
+ },
1101
+ {
1102
+ "id": 219,
1103
+ "type": "ComfyMathExpression",
1104
+ "pos": [
1105
+ -1490,
1106
+ 5820
1107
+ ],
1108
+ "size": [
1109
+ 225,
1110
+ 74
1111
+ ],
1112
+ "flags": {
1113
+ "collapsed": true
1114
+ },
1115
+ "order": 19,
1116
+ "mode": 0,
1117
+ "inputs": [
1118
+ {
1119
+ "label": "a",
1120
+ "name": "values.a",
1121
+ "type": "FLOAT,INT,BOOLEAN",
1122
+ "link": 320
1123
+ },
1124
+ {
1125
+ "label": "b",
1126
+ "name": "values.b",
1127
+ "shape": 7,
1128
+ "type": "FLOAT,INT,BOOLEAN",
1129
+ "link": null
1130
+ }
1131
+ ],
1132
+ "outputs": [
1133
+ {
1134
+ "name": "FLOAT",
1135
+ "type": "FLOAT",
1136
+ "links": null
1137
+ },
1138
+ {
1139
+ "name": "INT",
1140
+ "type": "INT",
1141
+ "links": [
1142
+ 311
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "BOOL",
1147
+ "type": "BOOLEAN",
1148
+ "links": null
1149
+ }
1150
+ ],
1151
+ "properties": {
1152
+ "Node name for S&R": "ComfyMathExpression",
1153
+ "cnr_id": "comfy-core",
1154
+ "ver": "0.21.0",
1155
+ "enableTabs": false,
1156
+ "tabWidth": 65,
1157
+ "tabXOffset": 10,
1158
+ "hasSecondTab": false,
1159
+ "secondTabText": "Send Back",
1160
+ "secondTabOffset": 80,
1161
+ "secondTabWidth": 65
1162
+ },
1163
+ "widgets_values": [
1164
+ "floor(a/32)*32"
1165
+ ]
1166
+ },
1167
+ {
1168
+ "id": 221,
1169
+ "type": "PreviewAny",
1170
+ "pos": [
1171
+ -2830,
1172
+ 5100
1173
+ ],
1174
+ "size": [
1175
+ 230,
1176
+ 160
1177
+ ],
1178
+ "flags": {
1179
+ "collapsed": false
1180
+ },
1181
+ "order": 20,
1182
+ "mode": 0,
1183
+ "inputs": [
1184
+ {
1185
+ "name": "source",
1186
+ "type": "*",
1187
+ "link": 326
1188
+ }
1189
+ ],
1190
+ "outputs": [
1191
+ {
1192
+ "name": "STRING",
1193
+ "type": "STRING",
1194
+ "links": [
1195
+ 327
1196
+ ]
1197
+ }
1198
+ ],
1199
+ "properties": {
1200
+ "Node name for S&R": "PreviewAny",
1201
+ "cnr_id": "comfy-core",
1202
+ "ver": "0.21.0",
1203
+ "enableTabs": false,
1204
+ "tabWidth": 65,
1205
+ "tabXOffset": 10,
1206
+ "hasSecondTab": false,
1207
+ "secondTabText": "Send Back",
1208
+ "secondTabOffset": 80,
1209
+ "secondTabWidth": 65
1210
+ },
1211
+ "widgets_values": [
1212
+ null,
1213
+ null,
1214
+ null
1215
+ ]
1216
+ },
1217
+ {
1218
+ "id": 156,
1219
+ "type": "EmptyHiDreamO1LatentImage",
1220
+ "pos": [
1221
+ -1850,
1222
+ 5420
1223
+ ],
1224
+ "size": [
1225
+ 280,
1226
+ 150
1227
+ ],
1228
+ "flags": {},
1229
+ "order": 5,
1230
+ "mode": 0,
1231
+ "inputs": [],
1232
+ "outputs": [
1233
+ {
1234
+ "name": "LATENT",
1235
+ "type": "LATENT",
1236
+ "links": [
1237
+ 233
1238
+ ]
1239
+ }
1240
+ ],
1241
+ "properties": {
1242
+ "Node name for S&R": "EmptyHiDreamO1LatentImage",
1243
+ "cnr_id": "comfy-core",
1244
+ "ver": "0.21.0",
1245
+ "enableTabs": false,
1246
+ "tabWidth": 65,
1247
+ "tabXOffset": 10,
1248
+ "hasSecondTab": false,
1249
+ "secondTabText": "Send Back",
1250
+ "secondTabOffset": 80,
1251
+ "secondTabWidth": 65
1252
+ },
1253
+ "widgets_values": [
1254
+ 2048,
1255
+ 2048,
1256
+ 1
1257
+ ]
1258
+ },
1259
+ {
1260
+ "id": 172,
1261
+ "type": "EmptyHiDreamO1LatentImage",
1262
+ "pos": [
1263
+ -1220,
1264
+ 5690
1265
+ ],
1266
+ "size": [
1267
+ 280,
1268
+ 150
1269
+ ],
1270
+ "flags": {},
1271
+ "order": 21,
1272
+ "mode": 0,
1273
+ "inputs": [
1274
+ {
1275
+ "name": "width",
1276
+ "type": "INT",
1277
+ "widget": {
1278
+ "name": "width"
1279
+ },
1280
+ "link": 310
1281
+ },
1282
+ {
1283
+ "name": "height",
1284
+ "type": "INT",
1285
+ "widget": {
1286
+ "name": "height"
1287
+ },
1288
+ "link": 311
1289
+ }
1290
+ ],
1291
+ "outputs": [
1292
+ {
1293
+ "name": "LATENT",
1294
+ "type": "LATENT",
1295
+ "links": [
1296
+ 350
1297
+ ]
1298
+ }
1299
+ ],
1300
+ "properties": {
1301
+ "Node name for S&R": "EmptyHiDreamO1LatentImage",
1302
+ "cnr_id": "comfy-core",
1303
+ "ver": "0.21.0",
1304
+ "enableTabs": false,
1305
+ "tabWidth": 65,
1306
+ "tabXOffset": 10,
1307
+ "hasSecondTab": false,
1308
+ "secondTabText": "Send Back",
1309
+ "secondTabOffset": 80,
1310
+ "secondTabWidth": 65
1311
+ },
1312
+ "widgets_values": [
1313
+ 2048,
1314
+ 2048,
1315
+ 1
1316
+ ]
1317
+ },
1318
+ {
1319
+ "id": 226,
1320
+ "type": "MarkdownNote",
1321
+ "pos": [
1322
+ -2560,
1323
+ 5430
1324
+ ],
1325
+ "size": [
1326
+ 360,
1327
+ 240
1328
+ ],
1329
+ "flags": {},
1330
+ "order": 6,
1331
+ "mode": 0,
1332
+ "inputs": [],
1333
+ "outputs": [],
1334
+ "title": "Note: Reference Images",
1335
+ "properties": {},
1336
+ "widgets_values": [
1337
+ "The HiDream O1 supports up to 10 reference images. You can add more Load Image nodes, then link them to the HiDream-O1 Reference Images node."
1338
+ ],
1339
+ "color": "#222",
1340
+ "bgcolor": "#000"
1341
+ },
1342
+ {
1343
+ "id": 171,
1344
+ "type": "PrimitiveStringMultiline",
1345
+ "pos": [
1346
+ -3440,
1347
+ 4890
1348
+ ],
1349
+ "size": [
1350
+ 310,
1351
+ 320
1352
+ ],
1353
+ "flags": {},
1354
+ "order": 7,
1355
+ "mode": 0,
1356
+ "inputs": [],
1357
+ "outputs": [
1358
+ {
1359
+ "name": "STRING",
1360
+ "type": "STRING",
1361
+ "links": [
1362
+ 260,
1363
+ 267
1364
+ ]
1365
+ }
1366
+ ],
1367
+ "title": "User Prompt",
1368
+ "properties": {
1369
+ "Node name for S&R": "PrimitiveStringMultiline",
1370
+ "cnr_id": "comfy-core",
1371
+ "ver": "0.21.0",
1372
+ "enableTabs": false,
1373
+ "tabWidth": 65,
1374
+ "tabXOffset": 10,
1375
+ "hasSecondTab": false,
1376
+ "secondTabText": "Send Back",
1377
+ "secondTabOffset": 80,
1378
+ "secondTabWidth": 65
1379
+ },
1380
+ "widgets_values": [
1381
+ "Graceful female skincare shot, light nude makeup, holding essence bottle, warm ivory backdrop, soft diffused light"
1382
+ ]
1383
+ },
1384
+ {
1385
+ "id": 227,
1386
+ "type": "SaveImage",
1387
+ "pos": [
1388
+ -630,
1389
+ 4560
1390
+ ],
1391
+ "size": [
1392
+ 1260,
1393
+ 1330
1394
+ ],
1395
+ "flags": {},
1396
+ "order": 29,
1397
+ "mode": 0,
1398
+ "inputs": [
1399
+ {
1400
+ "name": "images",
1401
+ "type": "IMAGE",
1402
+ "link": 347
1403
+ }
1404
+ ],
1405
+ "outputs": [],
1406
+ "properties": {
1407
+ "Node name for S&R": "SaveImage",
1408
+ "cnr_id": "comfy-core",
1409
+ "ver": "0.21.1",
1410
+ "enableTabs": false,
1411
+ "tabWidth": 65,
1412
+ "tabXOffset": 10,
1413
+ "hasSecondTab": false,
1414
+ "secondTabText": "Send Back",
1415
+ "secondTabOffset": 80,
1416
+ "secondTabWidth": 65
1417
+ },
1418
+ "widgets_values": [
1419
+ "hidream_o1"
1420
+ ]
1421
+ },
1422
+ {
1423
+ "id": 230,
1424
+ "type": "KSamplerSelect",
1425
+ "pos": [
1426
+ -1340,
1427
+ 4920
1428
+ ],
1429
+ "size": [
1430
+ 270,
1431
+ 90
1432
+ ],
1433
+ "flags": {},
1434
+ "order": 8,
1435
+ "mode": 0,
1436
+ "inputs": [],
1437
+ "outputs": [
1438
+ {
1439
+ "name": "SAMPLER",
1440
+ "type": "SAMPLER",
1441
+ "links": [
1442
+ 351
1443
+ ]
1444
+ }
1445
+ ],
1446
+ "properties": {
1447
+ "Node name for S&R": "KSamplerSelect",
1448
+ "cnr_id": "comfy-core",
1449
+ "ver": "0.21.1",
1450
+ "enableTabs": false,
1451
+ "tabWidth": 65,
1452
+ "tabXOffset": 10,
1453
+ "hasSecondTab": false,
1454
+ "secondTabText": "Send Back",
1455
+ "secondTabOffset": 80,
1456
+ "secondTabWidth": 65
1457
+ },
1458
+ "widgets_values": [
1459
+ "dpmpp_2m_sde_gpu"
1460
+ ]
1461
+ },
1462
+ {
1463
+ "id": 232,
1464
+ "type": "HiDreamO1PatchSeamSmoothing",
1465
+ "pos": [
1466
+ -1370,
1467
+ 4600
1468
+ ],
1469
+ "size": [
1470
+ 340,
1471
+ 280
1472
+ ],
1473
+ "flags": {},
1474
+ "order": 15,
1475
+ "mode": 0,
1476
+ "inputs": [
1477
+ {
1478
+ "name": "model",
1479
+ "type": "MODEL",
1480
+ "link": 355
1481
+ }
1482
+ ],
1483
+ "outputs": [
1484
+ {
1485
+ "name": "MODEL",
1486
+ "type": "MODEL",
1487
+ "links": [
1488
+ 356
1489
+ ]
1490
+ }
1491
+ ],
1492
+ "properties": {
1493
+ "Node name for S&R": "HiDreamO1PatchSeamSmoothing",
1494
+ "cnr_id": "comfy-core",
1495
+ "ver": "0.21.1",
1496
+ "enableTabs": false,
1497
+ "tabWidth": 65,
1498
+ "tabXOffset": 10,
1499
+ "hasSecondTab": false,
1500
+ "secondTabText": "Send Back",
1501
+ "secondTabOffset": 80,
1502
+ "secondTabWidth": 65
1503
+ },
1504
+ "widgets_values": [
1505
+ 0.8,
1506
+ 1,
1507
+ "single_shift",
1508
+ "ramp_2_4",
1509
+ "median",
1510
+ 1
1511
+ ]
1512
+ },
1513
+ {
1514
+ "id": 205,
1515
+ "type": "MarkdownNote",
1516
+ "pos": [
1517
+ -4330,
1518
+ 4560
1519
+ ],
1520
+ "size": [
1521
+ 820,
1522
+ 810.359375
1523
+ ],
1524
+ "flags": {},
1525
+ "order": 9,
1526
+ "mode": 0,
1527
+ "inputs": [],
1528
+ "outputs": [],
1529
+ "properties": {},
1530
+ "widgets_values": [
1531
+ "Related PR: [#13817](https://github.com/Comfy-Org/ComfyUI/pull/13817)\n\n## Hidream O1 Tutorial\n[HidreamO1 tutorial](https://www.stablediffusiontutorials.com/2026/05/hidream-o1-image.html)\n\n## Model Links (for Local Users)\n\n**checkpoints**\n\n- [hidream_o1_image_bf16.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_bf16.safetensors)\n- [hidream_o1_image_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_fp8_scaled.safetensors)\n- [hidream_o1_image_mxfp8.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_mxfp8.safetensors)\n\n**text_encoders**\n\n- [gemma4_e4b_it_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 checkpoints/\n│ │ ├── hidream_o1_image_mxfp8.safetensors\n│ │ ├── hidream_o1_image_bf16.safetensors\n│ │ └── hidream_o1_image_fp8_scaled.safetensors\n│ └── 📂 text_encoders/\n│ └── gemma4_e4b_it_fp8_scaled.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
1532
+ ],
1533
+ "color": "#222",
1534
+ "bgcolor": "#000"
1535
+ }
1536
+ ],
1537
+ "links": [
1538
+ [
1539
+ 139,
1540
+ 112,
1541
+ 0,
1542
+ 108,
1543
+ 4,
1544
+ "SIGMAS"
1545
+ ],
1546
+ [
1547
+ 141,
1548
+ 110,
1549
+ 0,
1550
+ 104,
1551
+ 0,
1552
+ "CONDITIONING"
1553
+ ],
1554
+ [
1555
+ 146,
1556
+ 6,
1557
+ 1,
1558
+ 110,
1559
+ 0,
1560
+ "CLIP"
1561
+ ],
1562
+ [
1563
+ 147,
1564
+ 6,
1565
+ 2,
1566
+ 105,
1567
+ 1,
1568
+ "VAE"
1569
+ ],
1570
+ [
1571
+ 182,
1572
+ 124,
1573
+ 0,
1574
+ 112,
1575
+ 0,
1576
+ "MODEL"
1577
+ ],
1578
+ [
1579
+ 192,
1580
+ 6,
1581
+ 0,
1582
+ 124,
1583
+ 0,
1584
+ "MODEL"
1585
+ ],
1586
+ [
1587
+ 217,
1588
+ 110,
1589
+ 0,
1590
+ 152,
1591
+ 0,
1592
+ "CONDITIONING"
1593
+ ],
1594
+ [
1595
+ 218,
1596
+ 104,
1597
+ 0,
1598
+ 152,
1599
+ 1,
1600
+ "CONDITIONING"
1601
+ ],
1602
+ [
1603
+ 220,
1604
+ 104,
1605
+ 1,
1606
+ 153,
1607
+ 1,
1608
+ "CONDITIONING"
1609
+ ],
1610
+ [
1611
+ 224,
1612
+ 154,
1613
+ 0,
1614
+ 152,
1615
+ 2,
1616
+ "BOOLEAN"
1617
+ ],
1618
+ [
1619
+ 225,
1620
+ 154,
1621
+ 0,
1622
+ 153,
1623
+ 2,
1624
+ "BOOLEAN"
1625
+ ],
1626
+ [
1627
+ 233,
1628
+ 156,
1629
+ 0,
1630
+ 155,
1631
+ 0,
1632
+ "LATENT"
1633
+ ],
1634
+ [
1635
+ 235,
1636
+ 154,
1637
+ 0,
1638
+ 155,
1639
+ 2,
1640
+ "BOOLEAN"
1641
+ ],
1642
+ [
1643
+ 260,
1644
+ 171,
1645
+ 0,
1646
+ 175,
1647
+ 0,
1648
+ "STRING"
1649
+ ],
1650
+ [
1651
+ 265,
1652
+ 177,
1653
+ 0,
1654
+ 176,
1655
+ 2,
1656
+ "BOOLEAN"
1657
+ ],
1658
+ [
1659
+ 266,
1660
+ 175,
1661
+ 0,
1662
+ 176,
1663
+ 1,
1664
+ "STRING"
1665
+ ],
1666
+ [
1667
+ 267,
1668
+ 171,
1669
+ 0,
1670
+ 176,
1671
+ 0,
1672
+ "STRING"
1673
+ ],
1674
+ [
1675
+ 274,
1676
+ 6,
1677
+ 1,
1678
+ 188,
1679
+ 0,
1680
+ "CLIP"
1681
+ ],
1682
+ [
1683
+ 275,
1684
+ 188,
1685
+ 0,
1686
+ 104,
1687
+ 1,
1688
+ "CONDITIONING"
1689
+ ],
1690
+ [
1691
+ 276,
1692
+ 188,
1693
+ 0,
1694
+ 153,
1695
+ 0,
1696
+ "CONDITIONING"
1697
+ ],
1698
+ [
1699
+ 310,
1700
+ 218,
1701
+ 1,
1702
+ 172,
1703
+ 0,
1704
+ "INT"
1705
+ ],
1706
+ [
1707
+ 311,
1708
+ 219,
1709
+ 1,
1710
+ 172,
1711
+ 1,
1712
+ "INT"
1713
+ ],
1714
+ [
1715
+ 318,
1716
+ 196,
1717
+ 0,
1718
+ 157,
1719
+ 0,
1720
+ "IMAGE"
1721
+ ],
1722
+ [
1723
+ 319,
1724
+ 157,
1725
+ 0,
1726
+ 218,
1727
+ 0,
1728
+ "INT"
1729
+ ],
1730
+ [
1731
+ 320,
1732
+ 157,
1733
+ 1,
1734
+ 219,
1735
+ 0,
1736
+ "INT"
1737
+ ],
1738
+ [
1739
+ 321,
1740
+ 155,
1741
+ 0,
1742
+ 108,
1743
+ 5,
1744
+ "LATENT"
1745
+ ],
1746
+ [
1747
+ 322,
1748
+ 108,
1749
+ 0,
1750
+ 105,
1751
+ 0,
1752
+ "LATENT"
1753
+ ],
1754
+ [
1755
+ 323,
1756
+ 152,
1757
+ 0,
1758
+ 108,
1759
+ 1,
1760
+ "CONDITIONING"
1761
+ ],
1762
+ [
1763
+ 324,
1764
+ 153,
1765
+ 0,
1766
+ 108,
1767
+ 2,
1768
+ "CONDITIONING"
1769
+ ],
1770
+ [
1771
+ 326,
1772
+ 176,
1773
+ 0,
1774
+ 221,
1775
+ 0,
1776
+ "STRING"
1777
+ ],
1778
+ [
1779
+ 327,
1780
+ 221,
1781
+ 0,
1782
+ 110,
1783
+ 1,
1784
+ "STRING"
1785
+ ],
1786
+ [
1787
+ 347,
1788
+ 105,
1789
+ 0,
1790
+ 227,
1791
+ 0,
1792
+ "IMAGE"
1793
+ ],
1794
+ [
1795
+ 350,
1796
+ 172,
1797
+ 0,
1798
+ 155,
1799
+ 1,
1800
+ "LATENT"
1801
+ ],
1802
+ [
1803
+ 351,
1804
+ 230,
1805
+ 0,
1806
+ 108,
1807
+ 3,
1808
+ "SAMPLER"
1809
+ ],
1810
+ [
1811
+ 355,
1812
+ 124,
1813
+ 0,
1814
+ 232,
1815
+ 0,
1816
+ "MODEL"
1817
+ ],
1818
+ [
1819
+ 356,
1820
+ 232,
1821
+ 0,
1822
+ 108,
1823
+ 0,
1824
+ "MODEL"
1825
+ ],
1826
+ [
1827
+ 362,
1828
+ 213,
1829
+ 0,
1830
+ 104,
1831
+ 2,
1832
+ "IMAGE"
1833
+ ],
1834
+ [
1835
+ 363,
1836
+ 213,
1837
+ 0,
1838
+ 175,
1839
+ 1,
1840
+ "IMAGE"
1841
+ ],
1842
+ [
1843
+ 364,
1844
+ 213,
1845
+ 0,
1846
+ 196,
1847
+ 0,
1848
+ "IMAGE"
1849
+ ]
1850
+ ],
1851
+ "groups": [
1852
+ {
1853
+ "id": 2,
1854
+ "title": "Sampling",
1855
+ "bounding": [
1856
+ -1730,
1857
+ 4530,
1858
+ 1050,
1859
+ 720
1860
+ ],
1861
+ "color": "#3f789e",
1862
+ "flags": {}
1863
+ },
1864
+ {
1865
+ "id": 3,
1866
+ "title": "Prompt",
1867
+ "bounding": [
1868
+ -2560,
1869
+ 4530,
1870
+ 450,
1871
+ 720
1872
+ ],
1873
+ "color": "#3f789e",
1874
+ "flags": {}
1875
+ },
1876
+ {
1877
+ "id": 4,
1878
+ "title": "Model",
1879
+ "bounding": [
1880
+ -3450,
1881
+ 4530,
1882
+ 860,
1883
+ 260
1884
+ ],
1885
+ "color": "#3f789e",
1886
+ "flags": {}
1887
+ },
1888
+ {
1889
+ "id": 6,
1890
+ "title": "Image Size",
1891
+ "bounding": [
1892
+ -2080,
1893
+ 5280,
1894
+ 1400,
1895
+ 620
1896
+ ],
1897
+ "color": "#3f789e",
1898
+ "flags": {}
1899
+ },
1900
+ {
1901
+ "id": 7,
1902
+ "title": "I2V or Image Edit Switch",
1903
+ "bounding": [
1904
+ -2080,
1905
+ 4530,
1906
+ 320,
1907
+ 460
1908
+ ],
1909
+ "color": "#3f789e",
1910
+ "flags": {}
1911
+ },
1912
+ {
1913
+ "id": 8,
1914
+ "title": "Image Input for Image Edit",
1915
+ "bounding": [
1916
+ -3080,
1917
+ 5280,
1918
+ 970,
1919
+ 620
1920
+ ],
1921
+ "color": "#3f789e",
1922
+ "flags": {}
1923
+ },
1924
+ {
1925
+ "id": 9,
1926
+ "title": "Prompt Enhancement",
1927
+ "bounding": [
1928
+ -3080,
1929
+ 4820,
1930
+ 490,
1931
+ 430
1932
+ ],
1933
+ "color": "#3f789e",
1934
+ "flags": {}
1935
+ },
1936
+ {
1937
+ "id": 10,
1938
+ "title": "Feature Switch",
1939
+ "bounding": [
1940
+ -3450,
1941
+ 5280,
1942
+ 340,
1943
+ 620
1944
+ ],
1945
+ "color": "#A88",
1946
+ "flags": {}
1947
+ },
1948
+ {
1949
+ "id": 11,
1950
+ "title": "User Prompt",
1951
+ "bounding": [
1952
+ -3450,
1953
+ 4820,
1954
+ 340,
1955
+ 430
1956
+ ],
1957
+ "color": "#A88",
1958
+ "flags": {}
1959
+ },
1960
+ {
1961
+ "id": 12,
1962
+ "title": "Size: Image Edit",
1963
+ "bounding": [
1964
+ -1850,
1965
+ 5630,
1966
+ 920,
1967
+ 242.65625
1968
+ ],
1969
+ "color": "#3f789e",
1970
+ "flags": {}
1971
+ },
1972
+ {
1973
+ "id": 13,
1974
+ "title": "Size: Text to Image",
1975
+ "bounding": [
1976
+ -1860,
1977
+ 5350,
1978
+ 300,
1979
+ 230
1980
+ ],
1981
+ "color": "#3f789e",
1982
+ "flags": {}
1983
+ },
1984
+ {
1985
+ "id": 14,
1986
+ "title": "Group",
1987
+ "bounding": [
1988
+ -2080,
1989
+ 5000,
1990
+ 320,
1991
+ 250
1992
+ ],
1993
+ "color": "#3f789e",
1994
+ "flags": {}
1995
+ }
1996
+ ],
1997
+ "definitions": {
1998
+ "subgraphs": [
1999
+ {
2000
+ "id": "fa7296b5-c974-4466-bfe3-a1f05f43b880",
2001
+ "version": 1,
2002
+ "state": {
2003
+ "lastGroupId": 14,
2004
+ "lastNodeId": 234,
2005
+ "lastLinkId": 364,
2006
+ "lastRerouteId": 0
2007
+ },
2008
+ "revision": 0,
2009
+ "config": {},
2010
+ "name": "Prompt Enhancement",
2011
+ "inputNode": {
2012
+ "id": -10,
2013
+ "bounding": [
2014
+ -4280,
2015
+ 5580,
2016
+ 128,
2017
+ 108
2018
+ ]
2019
+ },
2020
+ "outputNode": {
2021
+ "id": -20,
2022
+ "bounding": [
2023
+ -130,
2024
+ 5680,
2025
+ 128,
2026
+ 68
2027
+ ]
2028
+ },
2029
+ "inputs": [
2030
+ {
2031
+ "id": "8e257a84-6ce5-4e50-b571-2118cc7a0b8f",
2032
+ "name": "replace",
2033
+ "type": "STRING",
2034
+ "linkIds": [
2035
+ 248
2036
+ ],
2037
+ "localized_name": "replace",
2038
+ "label": "user_prompt",
2039
+ "pos": [
2040
+ -4176,
2041
+ 5604
2042
+ ]
2043
+ },
2044
+ {
2045
+ "id": "eae67611-94a9-4fb3-abd7-a29bc95db936",
2046
+ "name": "clip_name",
2047
+ "type": "COMBO",
2048
+ "linkIds": [
2049
+ 263
2050
+ ],
2051
+ "pos": [
2052
+ -4176,
2053
+ 5624
2054
+ ]
2055
+ },
2056
+ {
2057
+ "id": "46f381cb-503d-4a53-b419-f510752553e6",
2058
+ "name": "image",
2059
+ "type": "IMAGE",
2060
+ "linkIds": [
2061
+ 269
2062
+ ],
2063
+ "pos": [
2064
+ -4176,
2065
+ 5644
2066
+ ]
2067
+ }
2068
+ ],
2069
+ "outputs": [
2070
+ {
2071
+ "id": "54294308-5a73-4d61-a8dd-ff5b58aa91e8",
2072
+ "name": "output",
2073
+ "type": "STRING",
2074
+ "linkIds": [
2075
+ 292
2076
+ ],
2077
+ "localized_name": "output",
2078
+ "pos": [
2079
+ -106,
2080
+ 5704
2081
+ ]
2082
+ }
2083
+ ],
2084
+ "widgets": [],
2085
+ "nodes": [
2086
+ {
2087
+ "id": 165,
2088
+ "type": "PrimitiveStringMultiline",
2089
+ "pos": [
2090
+ -3930,
2091
+ 5440
2092
+ ],
2093
+ "size": [
2094
+ 510,
2095
+ 440
2096
+ ],
2097
+ "flags": {
2098
+ "collapsed": false
2099
+ },
2100
+ "order": 0,
2101
+ "mode": 0,
2102
+ "inputs": [],
2103
+ "outputs": [
2104
+ {
2105
+ "localized_name": "STRING",
2106
+ "name": "STRING",
2107
+ "type": "STRING",
2108
+ "links": [
2109
+ 243
2110
+ ]
2111
+ }
2112
+ ],
2113
+ "title": "REWRITE_SYSTEM_PROMPT",
2114
+ "properties": {
2115
+ "Node name for S&R": "PrimitiveStringMultiline",
2116
+ "cnr_id": "comfy-core",
2117
+ "ver": "0.21.0",
2118
+ "enableTabs": false,
2119
+ "tabWidth": 65,
2120
+ "tabXOffset": 10,
2121
+ "hasSecondTab": false,
2122
+ "secondTabText": "Send Back",
2123
+ "secondTabOffset": 80,
2124
+ "secondTabWidth": 65
2125
+ },
2126
+ "widgets_values": [
2127
+ "<|turn>system\n你是专业的AI图像生成Prompt工程师的Prompt Engineering Engine,也是一名拥有百科知识和视觉导演能力的创意总监.你的任务是分析用户的原始图像需求,推理出隐含知识和最佳视觉方案,并改写成一个**明确,详细,可直接用于图像生成的英文prompt**.\n\n## 核心目标\n\n图像生成模型只能执行直接的视觉描述,不能自行补全背景知识,逻辑关系或文字内容.因此,你必须提前完成知识解析,空间规划和视觉导演,把结果显式写入prompt中.\n\n使用 SCALIST 框架扩写每个画面:\n- **Subject**: 主体的身份,外观,颜色,材质,纹理,动作,表情,服饰.\n- **Composition**: 镜头景别,视角,主体位置,前景/中景/背景层次,留白和视觉焦点.\n- **Action**: 主体正在做什么,动作方向,姿态,互动关系.\n- **Location**: 场景地点,室内/室外,时代,天气,时间段,环境细节.\n- **Image style**: photorealistic, cinematic, oil painting, watercolor, anime, 3D render 等,并匹配合适的光线和色彩氛围.\n- **Specs**: 摄影/渲染参数,如 85mm lens, low-angle shot, shallow depth of field, soft diffused light, dramatic backlighting, matte texture, sharp focus.\n- **Text rendering**: 如果用户要求文字,必须把准确文字放在英文双引号中,并说明字体风格,颜色,大小,材质和精确位置.\n\n1. **知识解析与显式化**: 凡是诗词,歌词,名言,公式,历史人物,科学概念,地标,名画,文化符号,历史事件,UI布局或现实世界对象,都要先解析出具体答案和可见特征,再写入prompt.不要只写 \"Mona Lisa\",\"Dunkirk evacuation\",\"freedom\" 这类需要模型自行理解的词.\n2. **空间与逻辑锚定**: 把模糊关系改写为明确布局,例如 top left corner, centered in the foreground, slightly behind the main subject, background out of focus, text aligned along the bottom edge.不要使用\"旁边\"\"一些\"\"好看\"等含糊表达.\n3. **文字排版精度**: 中文,英文,公式,多语言文本都必须逐字保留在引号中,例如 \"床前明月光,疑是地上霜.举头望明月,低头思故乡.\" 或 \"E = mc²\";同时指定字体(calligraphy, serif, sans-serif, handwritten),颜色,材质和位置.\n4. **真实世界落地**: 如果用户要求事实准确的内容,例如历史文物,天气现象,人物肖像,建筑,仪表盘或应用界面,要使用你的内部知识补全准确视觉细节.\n5. **抽象概念具象化**: 把\"自由,孤独,��来感,治愈\"等抽象词转成可见场景,符号和氛围,例如飞鸟,断裂锁链,辽阔天空,冷色霓虹,柔和晨光等.\n\n## 示例与学习\n\n- 用户说\"李白的静夜思写在墙上\",prompt 应写出完整中文诗句,并指定它以优雅中国书法写在古旧石墙的哪个位置.\n- 用户说\"三大力学的奠基人\"或\"爱因斯坦写质能方程\",prompt 应解析出 Isaac Newton 或 Albert Einstein,并描述人物外貌,时代服饰,黑板,公式 \"E = mc²\" 等可见内容.\n- 用户说\"蒙娜丽莎\"\"比萨斜塔\"\"福字\"\"敦刻尔克大撤退\",prompt 应描述对应画面特征: 神秘微笑与交叠双手,倾斜白色大理石钟楼与拱廊,红底金色/黑色书法 \"福\",1940年海滩上等待撤离的士兵和海面船只.\n\n## 输出prompt要求\n\n- prompt 必须是一个英文的,连贯自然的单段落,像 Creative Director's Brief,而不是关键词堆砌或 tag soup.\n- 长度通常为 80-220 词;简单需求可以更短,复杂画面可以更长.\n- 最重要的主体和画面意图放在开头,然后自然展开构图,动作,地点,风格,技术参数和文字渲染.\n- 使用完整句子,丰富但准确的形容词,摄影/绘画/设计术语.\n- 不要包含任何需要图像模型继续推理才能理解的表达.\n- prompt 必须自包含,仅凭prompt本身就能准确生成图片.\n\n## 执行步骤\n\n1. **Analyze**: 识别核心主体,用户意图,文字要求,参考限制和需要解析的隐含知识.\n2. **Reason**: 选择最适宜画面的光线,镜头,角度,纹理,风格,空间布局和事实细节.\n3. **Rewrite**: 输出最终增强后的英文单段落prompt.\n\n只输出JSON,不加任何其他文字:\n{\"prompt\": \"英文单段落prompt\", \"reasoning\": \"你的推理和知识解析过程(需要用用户输入的提示词语言来生成)\", \"resolved_knowledge\": \"你解析了哪些隐含知识(根据输入用户语言简述,如果没有隐含知识用对应语言写'无')\"} \n<|turn|>"
2128
+ ]
2129
+ },
2130
+ {
2131
+ "id": 170,
2132
+ "type": "StringReplace",
2133
+ "pos": [
2134
+ -3930,
2135
+ 5930
2136
+ ],
2137
+ "size": [
2138
+ 510,
2139
+ 260
2140
+ ],
2141
+ "flags": {
2142
+ "collapsed": false
2143
+ },
2144
+ "order": 4,
2145
+ "mode": 0,
2146
+ "inputs": [
2147
+ {
2148
+ "localized_name": "replace",
2149
+ "name": "replace",
2150
+ "type": "STRING",
2151
+ "widget": {
2152
+ "name": "replace"
2153
+ },
2154
+ "link": 248
2155
+ }
2156
+ ],
2157
+ "outputs": [
2158
+ {
2159
+ "localized_name": "STRING",
2160
+ "name": "STRING",
2161
+ "type": "STRING",
2162
+ "links": [
2163
+ 244
2164
+ ]
2165
+ }
2166
+ ],
2167
+ "properties": {
2168
+ "Node name for S&R": "StringReplace",
2169
+ "cnr_id": "comfy-core",
2170
+ "ver": "0.21.0",
2171
+ "enableTabs": false,
2172
+ "tabWidth": 65,
2173
+ "tabXOffset": 10,
2174
+ "hasSecondTab": false,
2175
+ "secondTabText": "Send Back",
2176
+ "secondTabOffset": 80,
2177
+ "secondTabWidth": 65
2178
+ },
2179
+ "widgets_values": [
2180
+ "<|turn>user\n{user_prompt}<|turn|>\n<|turn>model\n",
2181
+ "{user_prompt}",
2182
+ ""
2183
+ ]
2184
+ },
2185
+ {
2186
+ "id": 166,
2187
+ "type": "StringConcatenate",
2188
+ "pos": [
2189
+ -3350,
2190
+ 5440
2191
+ ],
2192
+ "size": [
2193
+ 230,
2194
+ 220
2195
+ ],
2196
+ "flags": {
2197
+ "collapsed": false
2198
+ },
2199
+ "order": 2,
2200
+ "mode": 0,
2201
+ "inputs": [
2202
+ {
2203
+ "localized_name": "string_a",
2204
+ "name": "string_a",
2205
+ "type": "STRING",
2206
+ "widget": {
2207
+ "name": "string_a"
2208
+ },
2209
+ "link": 243
2210
+ },
2211
+ {
2212
+ "localized_name": "string_b",
2213
+ "name": "string_b",
2214
+ "type": "STRING",
2215
+ "widget": {
2216
+ "name": "string_b"
2217
+ },
2218
+ "link": 244
2219
+ }
2220
+ ],
2221
+ "outputs": [
2222
+ {
2223
+ "localized_name": "STRING",
2224
+ "name": "STRING",
2225
+ "type": "STRING",
2226
+ "links": [
2227
+ 251
2228
+ ]
2229
+ }
2230
+ ],
2231
+ "properties": {
2232
+ "Node name for S&R": "StringConcatenate",
2233
+ "cnr_id": "comfy-core",
2234
+ "ver": "0.21.0",
2235
+ "enableTabs": false,
2236
+ "tabWidth": 65,
2237
+ "tabXOffset": 10,
2238
+ "hasSecondTab": false,
2239
+ "secondTabText": "Send Back",
2240
+ "secondTabOffset": 80,
2241
+ "secondTabWidth": 65
2242
+ },
2243
+ "widgets_values": [
2244
+ "",
2245
+ "",
2246
+ ""
2247
+ ]
2248
+ },
2249
+ {
2250
+ "id": 164,
2251
+ "type": "TextGenerate",
2252
+ "pos": [
2253
+ -3070,
2254
+ 5220
2255
+ ],
2256
+ "size": [
2257
+ 400,
2258
+ 412
2259
+ ],
2260
+ "flags": {},
2261
+ "order": 1,
2262
+ "mode": 0,
2263
+ "showAdvanced": true,
2264
+ "inputs": [
2265
+ {
2266
+ "localized_name": "clip",
2267
+ "name": "clip",
2268
+ "type": "CLIP",
2269
+ "link": 241
2270
+ },
2271
+ {
2272
+ "localized_name": "image",
2273
+ "name": "image",
2274
+ "shape": 7,
2275
+ "type": "IMAGE",
2276
+ "link": 269
2277
+ },
2278
+ {
2279
+ "localized_name": "video",
2280
+ "name": "video",
2281
+ "shape": 7,
2282
+ "type": "IMAGE",
2283
+ "link": null
2284
+ },
2285
+ {
2286
+ "localized_name": "audio",
2287
+ "name": "audio",
2288
+ "shape": 7,
2289
+ "type": "AUDIO",
2290
+ "link": null
2291
+ },
2292
+ {
2293
+ "localized_name": "prompt",
2294
+ "name": "prompt",
2295
+ "type": "STRING",
2296
+ "widget": {
2297
+ "name": "prompt"
2298
+ },
2299
+ "link": 251
2300
+ }
2301
+ ],
2302
+ "outputs": [
2303
+ {
2304
+ "localized_name": "generated_text",
2305
+ "name": "generated_text",
2306
+ "type": "STRING",
2307
+ "links": [
2308
+ 281
2309
+ ]
2310
+ }
2311
+ ],
2312
+ "properties": {
2313
+ "Node name for S&R": "TextGenerate",
2314
+ "cnr_id": "comfy-core",
2315
+ "ver": "0.21.0",
2316
+ "enableTabs": false,
2317
+ "tabWidth": 65,
2318
+ "tabXOffset": 10,
2319
+ "hasSecondTab": false,
2320
+ "secondTabText": "Send Back",
2321
+ "secondTabOffset": 80,
2322
+ "secondTabWidth": 65
2323
+ },
2324
+ "widgets_values": [
2325
+ "",
2326
+ 2048,
2327
+ "on",
2328
+ 0.7,
2329
+ 64,
2330
+ 0.95,
2331
+ 0.05,
2332
+ 1.05,
2333
+ 0,
2334
+ 0,
2335
+ false,
2336
+ false
2337
+ ]
2338
+ },
2339
+ {
2340
+ "id": 167,
2341
+ "type": "CLIPLoader",
2342
+ "pos": [
2343
+ -3930,
2344
+ 5220
2345
+ ],
2346
+ "size": [
2347
+ 510,
2348
+ 160
2349
+ ],
2350
+ "flags": {},
2351
+ "order": 3,
2352
+ "mode": 0,
2353
+ "inputs": [
2354
+ {
2355
+ "localized_name": "clip_name",
2356
+ "name": "clip_name",
2357
+ "type": "COMBO",
2358
+ "widget": {
2359
+ "name": "clip_name"
2360
+ },
2361
+ "link": 263
2362
+ }
2363
+ ],
2364
+ "outputs": [
2365
+ {
2366
+ "localized_name": "CLIP",
2367
+ "name": "CLIP",
2368
+ "type": "CLIP",
2369
+ "links": [
2370
+ 241
2371
+ ]
2372
+ }
2373
+ ],
2374
+ "properties": {
2375
+ "Node name for S&R": "CLIPLoader",
2376
+ "cnr_id": "comfy-core",
2377
+ "ver": "0.21.0",
2378
+ "models": [
2379
+ {
2380
+ "name": "gemma4_e4b_it_fp8_scaled.safetensors",
2381
+ "url": "https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors",
2382
+ "directory": "text_encoders"
2383
+ }
2384
+ ],
2385
+ "enableTabs": false,
2386
+ "tabWidth": 65,
2387
+ "tabXOffset": 10,
2388
+ "hasSecondTab": false,
2389
+ "secondTabText": "Send Back",
2390
+ "secondTabOffset": 80,
2391
+ "secondTabWidth": 65
2392
+ },
2393
+ "widgets_values": [
2394
+ "gemma4_e4b_it_fp8_scaled.safetensors",
2395
+ "stable_diffusion",
2396
+ "default"
2397
+ ]
2398
+ },
2399
+ {
2400
+ "id": 198,
2401
+ "type": "JsonExtractString",
2402
+ "pos": [
2403
+ -1360,
2404
+ 5710
2405
+ ],
2406
+ "size": [
2407
+ 400,
2408
+ 200
2409
+ ],
2410
+ "flags": {},
2411
+ "order": 5,
2412
+ "mode": 0,
2413
+ "inputs": [
2414
+ {
2415
+ "localized_name": "json_string",
2416
+ "name": "json_string",
2417
+ "type": "STRING",
2418
+ "widget": {
2419
+ "name": "json_string"
2420
+ },
2421
+ "link": 288
2422
+ }
2423
+ ],
2424
+ "outputs": [
2425
+ {
2426
+ "localized_name": "STRING",
2427
+ "name": "STRING",
2428
+ "type": "STRING",
2429
+ "links": [
2430
+ 291,
2431
+ 292
2432
+ ]
2433
+ }
2434
+ ],
2435
+ "properties": {
2436
+ "Node name for S&R": "JsonExtractString",
2437
+ "cnr_id": "comfy-core",
2438
+ "ver": "0.21.0",
2439
+ "enableTabs": false,
2440
+ "tabWidth": 65,
2441
+ "tabXOffset": 10,
2442
+ "hasSecondTab": false,
2443
+ "secondTabText": "Send Back",
2444
+ "secondTabOffset": 80,
2445
+ "secondTabWidth": 65
2446
+ },
2447
+ "widgets_values": [
2448
+ "",
2449
+ "prompt"
2450
+ ]
2451
+ },
2452
+ {
2453
+ "id": 199,
2454
+ "type": "PreviewAny",
2455
+ "pos": [
2456
+ -2590,
2457
+ 5220
2458
+ ],
2459
+ "size": [
2460
+ 460,
2461
+ 980
2462
+ ],
2463
+ "flags": {},
2464
+ "order": 6,
2465
+ "mode": 4,
2466
+ "inputs": [
2467
+ {
2468
+ "localized_name": "source",
2469
+ "name": "source",
2470
+ "type": "*",
2471
+ "link": 281
2472
+ }
2473
+ ],
2474
+ "outputs": [
2475
+ {
2476
+ "localized_name": "STRING",
2477
+ "name": "STRING",
2478
+ "type": "STRING",
2479
+ "links": [
2480
+ 285
2481
+ ]
2482
+ }
2483
+ ],
2484
+ "properties": {
2485
+ "Node name for S&R": "PreviewAny",
2486
+ "cnr_id": "comfy-core",
2487
+ "ver": "0.21.0",
2488
+ "enableTabs": false,
2489
+ "tabWidth": 65,
2490
+ "tabXOffset": 10,
2491
+ "hasSecondTab": false,
2492
+ "secondTabText": "Send Back",
2493
+ "secondTabOffset": 80,
2494
+ "secondTabWidth": 65
2495
+ },
2496
+ "widgets_values": [
2497
+ null,
2498
+ null,
2499
+ null
2500
+ ]
2501
+ },
2502
+ {
2503
+ "id": 200,
2504
+ "type": "PreviewAny",
2505
+ "pos": [
2506
+ -1640,
2507
+ 5240
2508
+ ],
2509
+ "size": [
2510
+ 250,
2511
+ 220
2512
+ ],
2513
+ "flags": {},
2514
+ "order": 7,
2515
+ "mode": 4,
2516
+ "inputs": [
2517
+ {
2518
+ "localized_name": "source",
2519
+ "name": "source",
2520
+ "type": "*",
2521
+ "link": 286
2522
+ }
2523
+ ],
2524
+ "outputs": [
2525
+ {
2526
+ "localized_name": "STRING",
2527
+ "name": "STRING",
2528
+ "type": "STRING",
2529
+ "links": []
2530
+ }
2531
+ ],
2532
+ "properties": {
2533
+ "Node name for S&R": "PreviewAny",
2534
+ "cnr_id": "comfy-core",
2535
+ "ver": "0.21.0",
2536
+ "enableTabs": false,
2537
+ "tabWidth": 65,
2538
+ "tabXOffset": 10,
2539
+ "hasSecondTab": false,
2540
+ "secondTabText": "Send Back",
2541
+ "secondTabOffset": 80,
2542
+ "secondTabWidth": 65
2543
+ },
2544
+ "widgets_values": [
2545
+ null,
2546
+ null,
2547
+ null
2548
+ ]
2549
+ },
2550
+ {
2551
+ "id": 201,
2552
+ "type": "RegexReplace",
2553
+ "pos": [
2554
+ -2080,
2555
+ 5230
2556
+ ],
2557
+ "size": [
2558
+ 400,
2559
+ 400
2560
+ ],
2561
+ "flags": {},
2562
+ "order": 8,
2563
+ "mode": 0,
2564
+ "showAdvanced": true,
2565
+ "inputs": [
2566
+ {
2567
+ "localized_name": "string",
2568
+ "name": "string",
2569
+ "type": "STRING",
2570
+ "widget": {
2571
+ "name": "string"
2572
+ },
2573
+ "link": 285
2574
+ }
2575
+ ],
2576
+ "outputs": [
2577
+ {
2578
+ "localized_name": "STRING",
2579
+ "name": "STRING",
2580
+ "type": "STRING",
2581
+ "links": [
2582
+ 286,
2583
+ 287
2584
+ ]
2585
+ }
2586
+ ],
2587
+ "properties": {
2588
+ "Node name for S&R": "RegexReplace",
2589
+ "cnr_id": "comfy-core",
2590
+ "ver": "0.21.0",
2591
+ "enableTabs": false,
2592
+ "tabWidth": 65,
2593
+ "tabXOffset": 10,
2594
+ "hasSecondTab": false,
2595
+ "secondTabText": "Send Back",
2596
+ "secondTabOffset": 80,
2597
+ "secondTabWidth": 65
2598
+ },
2599
+ "widgets_values": [
2600
+ "",
2601
+ "^```(?:json)?\\s*\\n?",
2602
+ "",
2603
+ false,
2604
+ false,
2605
+ false,
2606
+ 1
2607
+ ]
2608
+ },
2609
+ {
2610
+ "id": 202,
2611
+ "type": "RegexReplace",
2612
+ "pos": [
2613
+ -2080,
2614
+ 5710
2615
+ ],
2616
+ "size": [
2617
+ 400,
2618
+ 400
2619
+ ],
2620
+ "flags": {},
2621
+ "order": 9,
2622
+ "mode": 0,
2623
+ "showAdvanced": false,
2624
+ "inputs": [
2625
+ {
2626
+ "localized_name": "string",
2627
+ "name": "string",
2628
+ "type": "STRING",
2629
+ "widget": {
2630
+ "name": "string"
2631
+ },
2632
+ "link": 287
2633
+ }
2634
+ ],
2635
+ "outputs": [
2636
+ {
2637
+ "localized_name": "STRING",
2638
+ "name": "STRING",
2639
+ "type": "STRING",
2640
+ "links": [
2641
+ 288,
2642
+ 290
2643
+ ]
2644
+ }
2645
+ ],
2646
+ "properties": {
2647
+ "Node name for S&R": "RegexReplace",
2648
+ "cnr_id": "comfy-core",
2649
+ "ver": "0.21.0",
2650
+ "enableTabs": false,
2651
+ "tabWidth": 65,
2652
+ "tabXOffset": 10,
2653
+ "hasSecondTab": false,
2654
+ "secondTabText": "Send Back",
2655
+ "secondTabOffset": 80,
2656
+ "secondTabWidth": 65
2657
+ },
2658
+ "widgets_values": [
2659
+ "",
2660
+ "\\n?```\\s*$",
2661
+ "",
2662
+ false,
2663
+ false,
2664
+ false,
2665
+ 1
2666
+ ]
2667
+ },
2668
+ {
2669
+ "id": 203,
2670
+ "type": "PreviewAny",
2671
+ "pos": [
2672
+ -1630,
2673
+ 5710
2674
+ ],
2675
+ "size": [
2676
+ 230,
2677
+ 170
2678
+ ],
2679
+ "flags": {},
2680
+ "order": 10,
2681
+ "mode": 4,
2682
+ "inputs": [
2683
+ {
2684
+ "localized_name": "source",
2685
+ "name": "source",
2686
+ "type": "*",
2687
+ "link": 290
2688
+ }
2689
+ ],
2690
+ "outputs": [
2691
+ {
2692
+ "localized_name": "STRING",
2693
+ "name": "STRING",
2694
+ "type": "STRING",
2695
+ "links": []
2696
+ }
2697
+ ],
2698
+ "properties": {
2699
+ "Node name for S&R": "PreviewAny",
2700
+ "cnr_id": "comfy-core",
2701
+ "ver": "0.21.0",
2702
+ "enableTabs": false,
2703
+ "tabWidth": 65,
2704
+ "tabXOffset": 10,
2705
+ "hasSecondTab": false,
2706
+ "secondTabText": "Send Back",
2707
+ "secondTabOffset": 80,
2708
+ "secondTabWidth": 65
2709
+ },
2710
+ "widgets_values": [
2711
+ null,
2712
+ null,
2713
+ null
2714
+ ]
2715
+ },
2716
+ {
2717
+ "id": 204,
2718
+ "type": "PreviewAny",
2719
+ "pos": [
2720
+ -900,
2721
+ 5710
2722
+ ],
2723
+ "size": [
2724
+ 300,
2725
+ 400
2726
+ ],
2727
+ "flags": {},
2728
+ "order": 11,
2729
+ "mode": 4,
2730
+ "inputs": [
2731
+ {
2732
+ "localized_name": "source",
2733
+ "name": "source",
2734
+ "type": "*",
2735
+ "link": 291
2736
+ }
2737
+ ],
2738
+ "outputs": [
2739
+ {
2740
+ "localized_name": "STRING",
2741
+ "name": "STRING",
2742
+ "type": "STRING",
2743
+ "links": []
2744
+ }
2745
+ ],
2746
+ "properties": {
2747
+ "Node name for S&R": "PreviewAny",
2748
+ "cnr_id": "comfy-core",
2749
+ "ver": "0.21.0",
2750
+ "enableTabs": false,
2751
+ "tabWidth": 65,
2752
+ "tabXOffset": 10,
2753
+ "hasSecondTab": false,
2754
+ "secondTabText": "Send Back",
2755
+ "secondTabOffset": 80,
2756
+ "secondTabWidth": 65
2757
+ },
2758
+ "widgets_values": [
2759
+ null,
2760
+ null,
2761
+ null
2762
+ ]
2763
+ }
2764
+ ],
2765
+ "groups": [
2766
+ {
2767
+ "id": 5,
2768
+ "title": "Prompt Enhancement",
2769
+ "bounding": [
2770
+ -3960,
2771
+ 5130,
2772
+ 1350,
2773
+ 1070
2774
+ ],
2775
+ "color": "#3f789e",
2776
+ "flags": {}
2777
+ }
2778
+ ],
2779
+ "links": [
2780
+ {
2781
+ "id": 243,
2782
+ "origin_id": 165,
2783
+ "origin_slot": 0,
2784
+ "target_id": 166,
2785
+ "target_slot": 0,
2786
+ "type": "STRING"
2787
+ },
2788
+ {
2789
+ "id": 244,
2790
+ "origin_id": 170,
2791
+ "origin_slot": 0,
2792
+ "target_id": 166,
2793
+ "target_slot": 1,
2794
+ "type": "STRING"
2795
+ },
2796
+ {
2797
+ "id": 241,
2798
+ "origin_id": 167,
2799
+ "origin_slot": 0,
2800
+ "target_id": 164,
2801
+ "target_slot": 0,
2802
+ "type": "CLIP"
2803
+ },
2804
+ {
2805
+ "id": 251,
2806
+ "origin_id": 166,
2807
+ "origin_slot": 0,
2808
+ "target_id": 164,
2809
+ "target_slot": 4,
2810
+ "type": "STRING"
2811
+ },
2812
+ {
2813
+ "id": 248,
2814
+ "origin_id": -10,
2815
+ "origin_slot": 0,
2816
+ "target_id": 170,
2817
+ "target_slot": 0,
2818
+ "type": "STRING"
2819
+ },
2820
+ {
2821
+ "id": 263,
2822
+ "origin_id": -10,
2823
+ "origin_slot": 1,
2824
+ "target_id": 167,
2825
+ "target_slot": 0,
2826
+ "type": "COMBO"
2827
+ },
2828
+ {
2829
+ "id": 269,
2830
+ "origin_id": -10,
2831
+ "origin_slot": 2,
2832
+ "target_id": 164,
2833
+ "target_slot": 1,
2834
+ "type": "IMAGE"
2835
+ },
2836
+ {
2837
+ "id": 281,
2838
+ "origin_id": 164,
2839
+ "origin_slot": 0,
2840
+ "target_id": 199,
2841
+ "target_slot": 0,
2842
+ "type": "STRING"
2843
+ },
2844
+ {
2845
+ "id": 285,
2846
+ "origin_id": 199,
2847
+ "origin_slot": 0,
2848
+ "target_id": 201,
2849
+ "target_slot": 0,
2850
+ "type": "STRING"
2851
+ },
2852
+ {
2853
+ "id": 286,
2854
+ "origin_id": 201,
2855
+ "origin_slot": 0,
2856
+ "target_id": 200,
2857
+ "target_slot": 0,
2858
+ "type": "STRING"
2859
+ },
2860
+ {
2861
+ "id": 287,
2862
+ "origin_id": 201,
2863
+ "origin_slot": 0,
2864
+ "target_id": 202,
2865
+ "target_slot": 0,
2866
+ "type": "STRING"
2867
+ },
2868
+ {
2869
+ "id": 288,
2870
+ "origin_id": 202,
2871
+ "origin_slot": 0,
2872
+ "target_id": 198,
2873
+ "target_slot": 0,
2874
+ "type": "STRING"
2875
+ },
2876
+ {
2877
+ "id": 290,
2878
+ "origin_id": 202,
2879
+ "origin_slot": 0,
2880
+ "target_id": 203,
2881
+ "target_slot": 0,
2882
+ "type": "STRING"
2883
+ },
2884
+ {
2885
+ "id": 291,
2886
+ "origin_id": 198,
2887
+ "origin_slot": 0,
2888
+ "target_id": 204,
2889
+ "target_slot": 0,
2890
+ "type": "STRING"
2891
+ },
2892
+ {
2893
+ "id": 292,
2894
+ "origin_id": 198,
2895
+ "origin_slot": 0,
2896
+ "target_id": -20,
2897
+ "target_slot": 0,
2898
+ "type": "STRING"
2899
+ }
2900
+ ],
2901
+ "extra": {}
2902
+ }
2903
+ ]
2904
+ },
2905
+ "config": {},
2906
+ "extra": {
2907
+ "ds": {
2908
+ "scale": 1.0352529499383143,
2909
+ "offset": [
2910
+ 4580.741937713375,
2911
+ -4473.691092928935
2912
+ ]
2913
+ },
2914
+ "frontendVersion": "1.43.16",
2915
+ "linearData": {
2916
+ "inputs": [],
2917
+ "outputs": []
2918
+ },
2919
+ "VHS_latentpreview": false,
2920
+ "VHS_latentpreviewrate": 0,
2921
+ "VHS_MetadataImage": true,
2922
+ "VHS_KeepIntermediate": true
2923
+ },
2924
+ "version": 0.4
2925
+ }
Hidream_O1_dev.json ADDED
@@ -0,0 +1,2866 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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
+ "type": "SamplerCustom",
10
+ "pos": [
11
+ -1350,
12
+ 4620
13
+ ],
14
+ "size": [
15
+ 280,
16
+ 500
17
+ ],
18
+ "flags": {},
19
+ "order": 26,
20
+ "mode": 0,
21
+ "showAdvanced": false,
22
+ "inputs": [
23
+ {
24
+ "name": "model",
25
+ "type": "MODEL",
26
+ "link": 213
27
+ },
28
+ {
29
+ "name": "positive",
30
+ "type": "CONDITIONING",
31
+ "link": 323
32
+ },
33
+ {
34
+ "name": "negative",
35
+ "type": "CONDITIONING",
36
+ "link": 324
37
+ },
38
+ {
39
+ "name": "sampler",
40
+ "type": "SAMPLER",
41
+ "link": 185
42
+ },
43
+ {
44
+ "name": "sigmas",
45
+ "type": "SIGMAS",
46
+ "link": 139
47
+ },
48
+ {
49
+ "name": "latent_image",
50
+ "type": "LATENT",
51
+ "link": 321
52
+ }
53
+ ],
54
+ "outputs": [
55
+ {
56
+ "name": "output",
57
+ "type": "LATENT",
58
+ "links": [
59
+ 322
60
+ ]
61
+ },
62
+ {
63
+ "name": "denoised_output",
64
+ "type": "LATENT",
65
+ "links": []
66
+ }
67
+ ],
68
+ "properties": {
69
+ "Node name for S&R": "SamplerCustom",
70
+ "enableTabs": false,
71
+ "tabWidth": 65,
72
+ "tabXOffset": 10,
73
+ "hasSecondTab": false,
74
+ "secondTabText": "Send Back",
75
+ "secondTabOffset": 80,
76
+ "secondTabWidth": 65,
77
+ "cnr_id": "comfy-core",
78
+ "ver": "0.21.0"
79
+ },
80
+ "widgets_values": [
81
+ true,
82
+ 270186383729385,
83
+ "randomize",
84
+ 1
85
+ ]
86
+ },
87
+ {
88
+ "id": 112,
89
+ "type": "BasicScheduler",
90
+ "pos": [
91
+ -1700,
92
+ 4990
93
+ ],
94
+ "size": [
95
+ 280,
96
+ 150
97
+ ],
98
+ "flags": {},
99
+ "order": 14,
100
+ "mode": 0,
101
+ "inputs": [
102
+ {
103
+ "name": "model",
104
+ "type": "MODEL",
105
+ "link": 182
106
+ }
107
+ ],
108
+ "outputs": [
109
+ {
110
+ "name": "SIGMAS",
111
+ "type": "SIGMAS",
112
+ "links": [
113
+ 139
114
+ ]
115
+ }
116
+ ],
117
+ "properties": {
118
+ "Node name for S&R": "BasicScheduler",
119
+ "enableTabs": false,
120
+ "tabWidth": 65,
121
+ "tabXOffset": 10,
122
+ "hasSecondTab": false,
123
+ "secondTabText": "Send Back",
124
+ "secondTabOffset": 80,
125
+ "secondTabWidth": 65,
126
+ "cnr_id": "comfy-core",
127
+ "ver": "0.21.0"
128
+ },
129
+ "widgets_values": [
130
+ "normal",
131
+ 28,
132
+ 1
133
+ ]
134
+ },
135
+ {
136
+ "id": 6,
137
+ "type": "CheckpointLoaderSimple",
138
+ "pos": [
139
+ -3240,
140
+ 4620
141
+ ],
142
+ "size": [
143
+ 470,
144
+ 140
145
+ ],
146
+ "flags": {},
147
+ "order": 0,
148
+ "mode": 0,
149
+ "inputs": [],
150
+ "outputs": [
151
+ {
152
+ "name": "MODEL",
153
+ "type": "MODEL",
154
+ "links": [
155
+ 192
156
+ ]
157
+ },
158
+ {
159
+ "name": "CLIP",
160
+ "type": "CLIP",
161
+ "links": [
162
+ 146,
163
+ 274
164
+ ]
165
+ },
166
+ {
167
+ "name": "VAE",
168
+ "type": "VAE",
169
+ "links": [
170
+ 147
171
+ ]
172
+ }
173
+ ],
174
+ "properties": {
175
+ "Node name for S&R": "CheckpointLoaderSimple",
176
+ "enableTabs": false,
177
+ "tabWidth": 65,
178
+ "tabXOffset": 10,
179
+ "hasSecondTab": false,
180
+ "secondTabText": "Send Back",
181
+ "secondTabOffset": 80,
182
+ "secondTabWidth": 65,
183
+ "cnr_id": "comfy-core",
184
+ "ver": "0.21.0",
185
+ "models": [
186
+ {
187
+ "name": "hidream_o1_image_dev_fp8_scaled.safetensors",
188
+ "url": "https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_dev_fp8_scaled.safetensors",
189
+ "directory": "checkpoints"
190
+ }
191
+ ]
192
+ },
193
+ "widgets_values": [
194
+ "hidream_o1_image_dev_fp8_scaled.safetensors"
195
+ ]
196
+ },
197
+ {
198
+ "id": 124,
199
+ "type": "ModelNoiseScale",
200
+ "pos": [
201
+ -1700,
202
+ 4620
203
+ ],
204
+ "size": [
205
+ 280,
206
+ 80
207
+ ],
208
+ "flags": {},
209
+ "order": 10,
210
+ "mode": 0,
211
+ "inputs": [
212
+ {
213
+ "name": "model",
214
+ "type": "MODEL",
215
+ "link": 192
216
+ }
217
+ ],
218
+ "outputs": [
219
+ {
220
+ "name": "MODEL",
221
+ "type": "MODEL",
222
+ "links": [
223
+ 182,
224
+ 213
225
+ ]
226
+ }
227
+ ],
228
+ "properties": {
229
+ "Node name for S&R": "ModelNoiseScale",
230
+ "enableTabs": false,
231
+ "tabWidth": 65,
232
+ "tabXOffset": 10,
233
+ "hasSecondTab": false,
234
+ "secondTabText": "Send Back",
235
+ "secondTabOffset": 80,
236
+ "secondTabWidth": 65,
237
+ "cnr_id": "comfy-core",
238
+ "ver": "0.21.0"
239
+ },
240
+ "widgets_values": [
241
+ 7.6
242
+ ]
243
+ },
244
+ {
245
+ "id": 104,
246
+ "type": "HiDreamO1ReferenceImages",
247
+ "pos": [
248
+ -2050,
249
+ 5090
250
+ ],
251
+ "size": [
252
+ 250,
253
+ 120
254
+ ],
255
+ "flags": {},
256
+ "order": 23,
257
+ "mode": 0,
258
+ "inputs": [
259
+ {
260
+ "name": "positive",
261
+ "type": "CONDITIONING",
262
+ "link": 141
263
+ },
264
+ {
265
+ "name": "negative",
266
+ "type": "CONDITIONING",
267
+ "link": 275
268
+ },
269
+ {
270
+ "label": "image_1",
271
+ "name": "images.image_1",
272
+ "type": "IMAGE",
273
+ "link": 300
274
+ },
275
+ {
276
+ "label": "image_2",
277
+ "name": "images.image_2",
278
+ "shape": 7,
279
+ "type": "IMAGE",
280
+ "link": null
281
+ }
282
+ ],
283
+ "outputs": [
284
+ {
285
+ "name": "positive",
286
+ "type": "CONDITIONING",
287
+ "links": [
288
+ 218
289
+ ]
290
+ },
291
+ {
292
+ "name": "negative",
293
+ "type": "CONDITIONING",
294
+ "links": [
295
+ 220
296
+ ]
297
+ }
298
+ ],
299
+ "properties": {
300
+ "Node name for S&R": "HiDreamO1ReferenceImages",
301
+ "enableTabs": false,
302
+ "tabWidth": 65,
303
+ "tabXOffset": 10,
304
+ "hasSecondTab": false,
305
+ "secondTabText": "Send Back",
306
+ "secondTabOffset": 80,
307
+ "secondTabWidth": 65,
308
+ "cnr_id": "comfy-core",
309
+ "ver": "0.21.0"
310
+ },
311
+ "widgets_values": [],
312
+ "color": "#322",
313
+ "bgcolor": "#533"
314
+ },
315
+ {
316
+ "id": 110,
317
+ "type": "CLIPTextEncode",
318
+ "pos": [
319
+ -2540,
320
+ 4600
321
+ ],
322
+ "size": [
323
+ 420,
324
+ 480
325
+ ],
326
+ "flags": {},
327
+ "order": 21,
328
+ "mode": 0,
329
+ "inputs": [
330
+ {
331
+ "name": "clip",
332
+ "type": "CLIP",
333
+ "link": 146
334
+ },
335
+ {
336
+ "name": "text",
337
+ "type": "STRING",
338
+ "widget": {
339
+ "name": "text"
340
+ },
341
+ "link": 327
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "name": "CONDITIONING",
347
+ "type": "CONDITIONING",
348
+ "links": [
349
+ 141,
350
+ 217
351
+ ]
352
+ }
353
+ ],
354
+ "properties": {
355
+ "Node name for S&R": "CLIPTextEncode",
356
+ "enableTabs": false,
357
+ "tabWidth": 65,
358
+ "tabXOffset": 10,
359
+ "hasSecondTab": false,
360
+ "secondTabText": "Send Back",
361
+ "secondTabOffset": 80,
362
+ "secondTabWidth": 65,
363
+ "cnr_id": "comfy-core",
364
+ "ver": "0.21.0"
365
+ },
366
+ "widgets_values": [
367
+ ""
368
+ ],
369
+ "color": "#232",
370
+ "bgcolor": "#353"
371
+ },
372
+ {
373
+ "id": 105,
374
+ "type": "VAEDecode",
375
+ "pos": [
376
+ -1320,
377
+ 5160
378
+ ],
379
+ "size": [
380
+ 230,
381
+ 80
382
+ ],
383
+ "flags": {},
384
+ "order": 27,
385
+ "mode": 0,
386
+ "inputs": [
387
+ {
388
+ "name": "samples",
389
+ "type": "LATENT",
390
+ "link": 322
391
+ },
392
+ {
393
+ "name": "vae",
394
+ "type": "VAE",
395
+ "link": 147
396
+ }
397
+ ],
398
+ "outputs": [
399
+ {
400
+ "name": "IMAGE",
401
+ "type": "IMAGE",
402
+ "links": [
403
+ 347
404
+ ]
405
+ }
406
+ ],
407
+ "properties": {
408
+ "Node name for S&R": "VAEDecode",
409
+ "enableTabs": false,
410
+ "tabWidth": 65,
411
+ "tabXOffset": 10,
412
+ "hasSecondTab": false,
413
+ "secondTabText": "Send Back",
414
+ "secondTabOffset": 80,
415
+ "secondTabWidth": 65,
416
+ "cnr_id": "comfy-core",
417
+ "ver": "0.21.0"
418
+ },
419
+ "widgets_values": []
420
+ },
421
+ {
422
+ "id": 125,
423
+ "type": "SamplerLCM",
424
+ "pos": [
425
+ -1700,
426
+ 4760
427
+ ],
428
+ "size": [
429
+ 280,
430
+ 160
431
+ ],
432
+ "flags": {},
433
+ "order": 1,
434
+ "mode": 0,
435
+ "inputs": [],
436
+ "outputs": [
437
+ {
438
+ "name": "SAMPLER",
439
+ "type": "SAMPLER",
440
+ "links": [
441
+ 185
442
+ ]
443
+ }
444
+ ],
445
+ "properties": {
446
+ "Node name for S&R": "SamplerLCM",
447
+ "enableTabs": false,
448
+ "tabWidth": 65,
449
+ "tabXOffset": 10,
450
+ "hasSecondTab": false,
451
+ "secondTabText": "Send Back",
452
+ "secondTabOffset": 80,
453
+ "secondTabWidth": 65,
454
+ "cnr_id": "comfy-core",
455
+ "ver": "0.21.0"
456
+ },
457
+ "widgets_values": [
458
+ 1,
459
+ 1,
460
+ 2.5
461
+ ]
462
+ },
463
+ {
464
+ "id": 152,
465
+ "type": "ComfySwitchNode",
466
+ "pos": [
467
+ -2050,
468
+ 4660
469
+ ],
470
+ "size": [
471
+ 270,
472
+ 130
473
+ ],
474
+ "flags": {},
475
+ "order": 24,
476
+ "mode": 0,
477
+ "inputs": [
478
+ {
479
+ "name": "on_false",
480
+ "type": "CONDITIONING",
481
+ "link": 217
482
+ },
483
+ {
484
+ "name": "on_true",
485
+ "type": "CONDITIONING",
486
+ "link": 218
487
+ },
488
+ {
489
+ "name": "switch",
490
+ "type": "BOOLEAN",
491
+ "widget": {
492
+ "name": "switch"
493
+ },
494
+ "link": 224
495
+ }
496
+ ],
497
+ "outputs": [
498
+ {
499
+ "name": "output",
500
+ "type": "CONDITIONING",
501
+ "links": [
502
+ 323
503
+ ]
504
+ }
505
+ ],
506
+ "properties": {
507
+ "Node name for S&R": "ComfySwitchNode",
508
+ "enableTabs": false,
509
+ "tabWidth": 65,
510
+ "tabXOffset": 10,
511
+ "hasSecondTab": false,
512
+ "secondTabText": "Send Back",
513
+ "secondTabOffset": 80,
514
+ "secondTabWidth": 65,
515
+ "cnr_id": "comfy-core",
516
+ "ver": "0.21.0"
517
+ },
518
+ "widgets_values": [
519
+ false
520
+ ]
521
+ },
522
+ {
523
+ "id": 153,
524
+ "type": "ComfySwitchNode",
525
+ "pos": [
526
+ -2050,
527
+ 4840
528
+ ],
529
+ "size": [
530
+ 270,
531
+ 130
532
+ ],
533
+ "flags": {},
534
+ "order": 25,
535
+ "mode": 0,
536
+ "inputs": [
537
+ {
538
+ "name": "on_false",
539
+ "type": "CONDITIONING",
540
+ "link": 276
541
+ },
542
+ {
543
+ "name": "on_true",
544
+ "type": "CONDITIONING",
545
+ "link": 220
546
+ },
547
+ {
548
+ "name": "switch",
549
+ "type": "BOOLEAN",
550
+ "widget": {
551
+ "name": "switch"
552
+ },
553
+ "link": 225
554
+ }
555
+ ],
556
+ "outputs": [
557
+ {
558
+ "name": "output",
559
+ "type": "CONDITIONING",
560
+ "links": [
561
+ 324
562
+ ]
563
+ }
564
+ ],
565
+ "properties": {
566
+ "Node name for S&R": "ComfySwitchNode",
567
+ "enableTabs": false,
568
+ "tabWidth": 65,
569
+ "tabXOffset": 10,
570
+ "hasSecondTab": false,
571
+ "secondTabText": "Send Back",
572
+ "secondTabOffset": 80,
573
+ "secondTabWidth": 65,
574
+ "cnr_id": "comfy-core",
575
+ "ver": "0.21.0"
576
+ },
577
+ "widgets_values": [
578
+ false
579
+ ]
580
+ },
581
+ {
582
+ "id": 155,
583
+ "type": "ComfySwitchNode",
584
+ "pos": [
585
+ -1340,
586
+ 5360
587
+ ],
588
+ "size": [
589
+ 230,
590
+ 130
591
+ ],
592
+ "flags": {},
593
+ "order": 22,
594
+ "mode": 0,
595
+ "inputs": [
596
+ {
597
+ "name": "on_false",
598
+ "type": "LATENT",
599
+ "link": 233
600
+ },
601
+ {
602
+ "name": "on_true",
603
+ "type": "LATENT",
604
+ "link": 350
605
+ },
606
+ {
607
+ "name": "switch",
608
+ "type": "BOOLEAN",
609
+ "widget": {
610
+ "name": "switch"
611
+ },
612
+ "link": 235
613
+ }
614
+ ],
615
+ "outputs": [
616
+ {
617
+ "name": "output",
618
+ "type": "LATENT",
619
+ "links": [
620
+ 321
621
+ ]
622
+ }
623
+ ],
624
+ "properties": {
625
+ "Node name for S&R": "ComfySwitchNode",
626
+ "enableTabs": false,
627
+ "tabWidth": 65,
628
+ "tabXOffset": 10,
629
+ "hasSecondTab": false,
630
+ "secondTabText": "Send Back",
631
+ "secondTabOffset": 80,
632
+ "secondTabWidth": 65,
633
+ "cnr_id": "comfy-core",
634
+ "ver": "0.21.0"
635
+ },
636
+ "widgets_values": [
637
+ false
638
+ ]
639
+ },
640
+ {
641
+ "id": 157,
642
+ "type": "GetImageSize",
643
+ "pos": [
644
+ -1680,
645
+ 5730
646
+ ],
647
+ "size": [
648
+ 225,
649
+ 66
650
+ ],
651
+ "flags": {
652
+ "collapsed": true
653
+ },
654
+ "order": 15,
655
+ "mode": 0,
656
+ "inputs": [
657
+ {
658
+ "name": "image",
659
+ "type": "IMAGE",
660
+ "link": 318
661
+ }
662
+ ],
663
+ "outputs": [
664
+ {
665
+ "name": "width",
666
+ "type": "INT",
667
+ "links": [
668
+ 319
669
+ ]
670
+ },
671
+ {
672
+ "name": "height",
673
+ "type": "INT",
674
+ "links": [
675
+ 320
676
+ ]
677
+ },
678
+ {
679
+ "name": "batch_size",
680
+ "type": "INT",
681
+ "links": null
682
+ }
683
+ ],
684
+ "properties": {
685
+ "Node name for S&R": "GetImageSize",
686
+ "enableTabs": false,
687
+ "tabWidth": 65,
688
+ "tabXOffset": 10,
689
+ "hasSecondTab": false,
690
+ "secondTabText": "Send Back",
691
+ "secondTabOffset": 80,
692
+ "secondTabWidth": 65,
693
+ "cnr_id": "comfy-core",
694
+ "ver": "0.21.0"
695
+ },
696
+ "widgets_values": []
697
+ },
698
+ {
699
+ "id": 154,
700
+ "type": "PrimitiveBoolean",
701
+ "pos": [
702
+ -3420,
703
+ 5630
704
+ ],
705
+ "size": [
706
+ 270,
707
+ 80
708
+ ],
709
+ "flags": {},
710
+ "order": 2,
711
+ "mode": 0,
712
+ "inputs": [],
713
+ "outputs": [
714
+ {
715
+ "name": "BOOLEAN",
716
+ "type": "BOOLEAN",
717
+ "links": [
718
+ 224,
719
+ 225,
720
+ 235
721
+ ]
722
+ }
723
+ ],
724
+ "title": "Switch to Image Edit",
725
+ "properties": {
726
+ "Node name for S&R": "PrimitiveBoolean",
727
+ "enableTabs": false,
728
+ "tabWidth": 65,
729
+ "tabXOffset": 10,
730
+ "hasSecondTab": false,
731
+ "secondTabText": "Send Back",
732
+ "secondTabOffset": 80,
733
+ "secondTabWidth": 65,
734
+ "cnr_id": "comfy-core",
735
+ "ver": "0.21.0"
736
+ },
737
+ "widgets_values": [
738
+ true
739
+ ]
740
+ },
741
+ {
742
+ "id": 175,
743
+ "type": "fa7296b5-c974-4466-bfe3-a1f05f43b880",
744
+ "pos": [
745
+ -3060,
746
+ 4890
747
+ ],
748
+ "size": [
749
+ 430,
750
+ 180
751
+ ],
752
+ "flags": {},
753
+ "order": 13,
754
+ "mode": 0,
755
+ "inputs": [
756
+ {
757
+ "label": "user_prompt",
758
+ "name": "replace",
759
+ "type": "STRING",
760
+ "widget": {
761
+ "name": "replace"
762
+ },
763
+ "link": 260
764
+ },
765
+ {
766
+ "name": "image",
767
+ "shape": 7,
768
+ "type": "IMAGE",
769
+ "link": 301
770
+ }
771
+ ],
772
+ "outputs": [
773
+ {
774
+ "name": "output",
775
+ "type": "STRING",
776
+ "links": [
777
+ 266
778
+ ]
779
+ }
780
+ ],
781
+ "properties": {
782
+ "proxyWidgets": [
783
+ [
784
+ "170",
785
+ "replace"
786
+ ],
787
+ [
788
+ "167",
789
+ "clip_name"
790
+ ]
791
+ ],
792
+ "enableTabs": false,
793
+ "tabWidth": 65,
794
+ "tabXOffset": 10,
795
+ "hasSecondTab": false,
796
+ "secondTabText": "Send Back",
797
+ "secondTabOffset": 80,
798
+ "secondTabWidth": 65,
799
+ "cnr_id": "comfy-core",
800
+ "ver": "0.21.0"
801
+ },
802
+ "widgets_values": []
803
+ },
804
+ {
805
+ "id": 176,
806
+ "type": "ComfySwitchNode",
807
+ "pos": [
808
+ -3060,
809
+ 5110
810
+ ],
811
+ "size": [
812
+ 225,
813
+ 54
814
+ ],
815
+ "flags": {
816
+ "collapsed": true
817
+ },
818
+ "order": 16,
819
+ "mode": 0,
820
+ "inputs": [
821
+ {
822
+ "name": "on_false",
823
+ "type": "STRING",
824
+ "link": 267
825
+ },
826
+ {
827
+ "name": "on_true",
828
+ "type": "STRING",
829
+ "link": 266
830
+ },
831
+ {
832
+ "name": "switch",
833
+ "type": "BOOLEAN",
834
+ "widget": {
835
+ "name": "switch"
836
+ },
837
+ "link": 265
838
+ }
839
+ ],
840
+ "outputs": [
841
+ {
842
+ "name": "output",
843
+ "type": "STRING",
844
+ "links": [
845
+ 326
846
+ ]
847
+ }
848
+ ],
849
+ "properties": {
850
+ "Node name for S&R": "ComfySwitchNode",
851
+ "enableTabs": false,
852
+ "tabWidth": 65,
853
+ "tabXOffset": 10,
854
+ "hasSecondTab": false,
855
+ "secondTabText": "Send Back",
856
+ "secondTabOffset": 80,
857
+ "secondTabWidth": 65,
858
+ "cnr_id": "comfy-core",
859
+ "ver": "0.21.0"
860
+ },
861
+ "widgets_values": [
862
+ false
863
+ ]
864
+ },
865
+ {
866
+ "id": 177,
867
+ "type": "PrimitiveBoolean",
868
+ "pos": [
869
+ -3420,
870
+ 5430
871
+ ],
872
+ "size": [
873
+ 270,
874
+ 80
875
+ ],
876
+ "flags": {},
877
+ "order": 3,
878
+ "mode": 0,
879
+ "inputs": [],
880
+ "outputs": [
881
+ {
882
+ "name": "BOOLEAN",
883
+ "type": "BOOLEAN",
884
+ "links": [
885
+ 265
886
+ ]
887
+ }
888
+ ],
889
+ "title": "Enable Prompt Refine?",
890
+ "properties": {
891
+ "Node name for S&R": "PrimitiveBoolean",
892
+ "enableTabs": false,
893
+ "tabWidth": 65,
894
+ "tabXOffset": 10,
895
+ "hasSecondTab": false,
896
+ "secondTabText": "Send Back",
897
+ "secondTabOffset": 80,
898
+ "secondTabWidth": 65,
899
+ "cnr_id": "comfy-core",
900
+ "ver": "0.21.0"
901
+ },
902
+ "widgets_values": [
903
+ false
904
+ ]
905
+ },
906
+ {
907
+ "id": 188,
908
+ "type": "CLIPTextEncode",
909
+ "pos": [
910
+ -2540,
911
+ 5120
912
+ ],
913
+ "size": [
914
+ 420,
915
+ 120
916
+ ],
917
+ "flags": {},
918
+ "order": 11,
919
+ "mode": 0,
920
+ "inputs": [
921
+ {
922
+ "name": "clip",
923
+ "type": "CLIP",
924
+ "link": 274
925
+ }
926
+ ],
927
+ "outputs": [
928
+ {
929
+ "name": "CONDITIONING",
930
+ "type": "CONDITIONING",
931
+ "links": [
932
+ 275,
933
+ 276
934
+ ]
935
+ }
936
+ ],
937
+ "properties": {
938
+ "Node name for S&R": "CLIPTextEncode",
939
+ "enableTabs": false,
940
+ "tabWidth": 65,
941
+ "tabXOffset": 10,
942
+ "hasSecondTab": false,
943
+ "secondTabText": "Send Back",
944
+ "secondTabOffset": 80,
945
+ "secondTabWidth": 65,
946
+ "cnr_id": "comfy-core",
947
+ "ver": "0.21.0"
948
+ },
949
+ "widgets_values": [
950
+ ""
951
+ ],
952
+ "color": "#223",
953
+ "bgcolor": "#335"
954
+ },
955
+ {
956
+ "id": 195,
957
+ "type": "MarkdownNote",
958
+ "pos": [
959
+ -2020,
960
+ 5960
961
+ ],
962
+ "size": [
963
+ 980,
964
+ 560
965
+ ],
966
+ "flags": {},
967
+ "order": 4,
968
+ "mode": 0,
969
+ "inputs": [],
970
+ "outputs": [],
971
+ "title": "Note: About Image Size",
972
+ "properties": {},
973
+ "widgets_values": [
974
+ "Select and Ctrl-B to enable the `ImageScaleToTotalPixels` node, if your input image is too large\n\nThe O1 model is trained under the following resolutions:\n| Width | Height | Category |\n|-------|--------|------------|\n| 2048 | 2048 | Square |\n| 2304 | 1728 | Landscape |\n| 2304 | 1792 | Landscape |\n| 2496 | 1664 | Landscape |\n| 2560 | 1440 | Landscape |\n| 3104 | 1312 | Landscape |\n| 1728 | 2304 | Portrait |\n| 1792 | 2304 | Portrait |\n| 1664 | 2496 | Portrait |\n| 1440 | 2560 | Portrait |\n| 1312 | 3104 | Portrait |"
975
+ ],
976
+ "color": "#222",
977
+ "bgcolor": "#000"
978
+ },
979
+ {
980
+ "id": 196,
981
+ "type": "ImageScaleToTotalPixels",
982
+ "pos": [
983
+ -2020,
984
+ 5710
985
+ ],
986
+ "size": [
987
+ 320,
988
+ 150
989
+ ],
990
+ "flags": {},
991
+ "order": 12,
992
+ "mode": 4,
993
+ "inputs": [
994
+ {
995
+ "name": "image",
996
+ "type": "IMAGE",
997
+ "link": 302
998
+ }
999
+ ],
1000
+ "outputs": [
1001
+ {
1002
+ "name": "IMAGE",
1003
+ "type": "IMAGE",
1004
+ "links": [
1005
+ 318
1006
+ ]
1007
+ }
1008
+ ],
1009
+ "properties": {
1010
+ "Node name for S&R": "ImageScaleToTotalPixels",
1011
+ "enableTabs": false,
1012
+ "tabWidth": 65,
1013
+ "tabXOffset": 10,
1014
+ "hasSecondTab": false,
1015
+ "secondTabText": "Send Back",
1016
+ "secondTabOffset": 80,
1017
+ "secondTabWidth": 65,
1018
+ "cnr_id": "comfy-core",
1019
+ "ver": "0.21.0"
1020
+ },
1021
+ "widgets_values": [
1022
+ "lanczos",
1023
+ 4,
1024
+ 1
1025
+ ]
1026
+ },
1027
+ {
1028
+ "id": 213,
1029
+ "type": "LoadImage",
1030
+ "pos": [
1031
+ -3000,
1032
+ 5420
1033
+ ],
1034
+ "size": [
1035
+ 310,
1036
+ 430
1037
+ ],
1038
+ "flags": {},
1039
+ "order": 5,
1040
+ "mode": 0,
1041
+ "inputs": [],
1042
+ "outputs": [
1043
+ {
1044
+ "name": "IMAGE",
1045
+ "type": "IMAGE",
1046
+ "links": [
1047
+ 300,
1048
+ 301,
1049
+ 302
1050
+ ]
1051
+ },
1052
+ {
1053
+ "name": "MASK",
1054
+ "type": "MASK",
1055
+ "links": null
1056
+ }
1057
+ ],
1058
+ "properties": {
1059
+ "Node name for S&R": "LoadImage",
1060
+ "enableTabs": false,
1061
+ "tabWidth": 65,
1062
+ "tabXOffset": 10,
1063
+ "hasSecondTab": false,
1064
+ "secondTabText": "Send Back",
1065
+ "secondTabOffset": 80,
1066
+ "secondTabWidth": 65,
1067
+ "cnr_id": "comfy-core",
1068
+ "ver": "0.21.0"
1069
+ },
1070
+ "widgets_values": [
1071
+ "noir_portrait.png",
1072
+ "image"
1073
+ ]
1074
+ },
1075
+ {
1076
+ "id": 218,
1077
+ "type": "ComfyMathExpression",
1078
+ "pos": [
1079
+ -1680,
1080
+ 5780
1081
+ ],
1082
+ "size": [
1083
+ 225,
1084
+ 74
1085
+ ],
1086
+ "flags": {
1087
+ "collapsed": true
1088
+ },
1089
+ "order": 17,
1090
+ "mode": 0,
1091
+ "inputs": [
1092
+ {
1093
+ "label": "a",
1094
+ "name": "values.a",
1095
+ "type": "FLOAT,INT,BOOLEAN",
1096
+ "link": 319
1097
+ },
1098
+ {
1099
+ "label": "b",
1100
+ "name": "values.b",
1101
+ "shape": 7,
1102
+ "type": "FLOAT,INT,BOOLEAN",
1103
+ "link": null
1104
+ }
1105
+ ],
1106
+ "outputs": [
1107
+ {
1108
+ "name": "FLOAT",
1109
+ "type": "FLOAT",
1110
+ "links": null
1111
+ },
1112
+ {
1113
+ "name": "INT",
1114
+ "type": "INT",
1115
+ "links": [
1116
+ 310
1117
+ ]
1118
+ },
1119
+ {
1120
+ "name": "BOOL",
1121
+ "type": "BOOLEAN",
1122
+ "links": null
1123
+ }
1124
+ ],
1125
+ "properties": {
1126
+ "Node name for S&R": "ComfyMathExpression",
1127
+ "enableTabs": false,
1128
+ "tabWidth": 65,
1129
+ "tabXOffset": 10,
1130
+ "hasSecondTab": false,
1131
+ "secondTabText": "Send Back",
1132
+ "secondTabOffset": 80,
1133
+ "secondTabWidth": 65,
1134
+ "cnr_id": "comfy-core",
1135
+ "ver": "0.21.0"
1136
+ },
1137
+ "widgets_values": [
1138
+ "floor(a/32)*32"
1139
+ ]
1140
+ },
1141
+ {
1142
+ "id": 219,
1143
+ "type": "ComfyMathExpression",
1144
+ "pos": [
1145
+ -1680,
1146
+ 5830
1147
+ ],
1148
+ "size": [
1149
+ 225,
1150
+ 74
1151
+ ],
1152
+ "flags": {
1153
+ "collapsed": true
1154
+ },
1155
+ "order": 18,
1156
+ "mode": 0,
1157
+ "inputs": [
1158
+ {
1159
+ "label": "a",
1160
+ "name": "values.a",
1161
+ "type": "FLOAT,INT,BOOLEAN",
1162
+ "link": 320
1163
+ },
1164
+ {
1165
+ "label": "b",
1166
+ "name": "values.b",
1167
+ "shape": 7,
1168
+ "type": "FLOAT,INT,BOOLEAN",
1169
+ "link": null
1170
+ }
1171
+ ],
1172
+ "outputs": [
1173
+ {
1174
+ "name": "FLOAT",
1175
+ "type": "FLOAT",
1176
+ "links": null
1177
+ },
1178
+ {
1179
+ "name": "INT",
1180
+ "type": "INT",
1181
+ "links": [
1182
+ 311
1183
+ ]
1184
+ },
1185
+ {
1186
+ "name": "BOOL",
1187
+ "type": "BOOLEAN",
1188
+ "links": null
1189
+ }
1190
+ ],
1191
+ "properties": {
1192
+ "Node name for S&R": "ComfyMathExpression",
1193
+ "enableTabs": false,
1194
+ "tabWidth": 65,
1195
+ "tabXOffset": 10,
1196
+ "hasSecondTab": false,
1197
+ "secondTabText": "Send Back",
1198
+ "secondTabOffset": 80,
1199
+ "secondTabWidth": 65,
1200
+ "cnr_id": "comfy-core",
1201
+ "ver": "0.21.0"
1202
+ },
1203
+ "widgets_values": [
1204
+ "floor(a/32)*32"
1205
+ ]
1206
+ },
1207
+ {
1208
+ "id": 221,
1209
+ "type": "PreviewAny",
1210
+ "pos": [
1211
+ -2830,
1212
+ 5100
1213
+ ],
1214
+ "size": [
1215
+ 230,
1216
+ 160
1217
+ ],
1218
+ "flags": {
1219
+ "collapsed": false
1220
+ },
1221
+ "order": 19,
1222
+ "mode": 0,
1223
+ "inputs": [
1224
+ {
1225
+ "name": "source",
1226
+ "type": "*",
1227
+ "link": 326
1228
+ }
1229
+ ],
1230
+ "outputs": [
1231
+ {
1232
+ "name": "STRING",
1233
+ "type": "STRING",
1234
+ "links": [
1235
+ 327
1236
+ ]
1237
+ }
1238
+ ],
1239
+ "properties": {
1240
+ "Node name for S&R": "PreviewAny",
1241
+ "enableTabs": false,
1242
+ "tabWidth": 65,
1243
+ "tabXOffset": 10,
1244
+ "hasSecondTab": false,
1245
+ "secondTabText": "Send Back",
1246
+ "secondTabOffset": 80,
1247
+ "secondTabWidth": 65,
1248
+ "cnr_id": "comfy-core",
1249
+ "ver": "0.21.0"
1250
+ },
1251
+ "widgets_values": [
1252
+ null,
1253
+ null,
1254
+ null
1255
+ ]
1256
+ },
1257
+ {
1258
+ "id": 156,
1259
+ "type": "EmptyHiDreamO1LatentImage",
1260
+ "pos": [
1261
+ -2030,
1262
+ 5420
1263
+ ],
1264
+ "size": [
1265
+ 280,
1266
+ 150
1267
+ ],
1268
+ "flags": {},
1269
+ "order": 6,
1270
+ "mode": 0,
1271
+ "inputs": [],
1272
+ "outputs": [
1273
+ {
1274
+ "name": "LATENT",
1275
+ "type": "LATENT",
1276
+ "links": [
1277
+ 233
1278
+ ]
1279
+ }
1280
+ ],
1281
+ "properties": {
1282
+ "Node name for S&R": "EmptyHiDreamO1LatentImage",
1283
+ "enableTabs": false,
1284
+ "tabWidth": 65,
1285
+ "tabXOffset": 10,
1286
+ "hasSecondTab": false,
1287
+ "secondTabText": "Send Back",
1288
+ "secondTabOffset": 80,
1289
+ "secondTabWidth": 65,
1290
+ "cnr_id": "comfy-core",
1291
+ "ver": "0.21.0"
1292
+ },
1293
+ "widgets_values": [
1294
+ 2048,
1295
+ 2048,
1296
+ 1
1297
+ ]
1298
+ },
1299
+ {
1300
+ "id": 172,
1301
+ "type": "EmptyHiDreamO1LatentImage",
1302
+ "pos": [
1303
+ -1410,
1304
+ 5700
1305
+ ],
1306
+ "size": [
1307
+ 280,
1308
+ 150
1309
+ ],
1310
+ "flags": {},
1311
+ "order": 20,
1312
+ "mode": 0,
1313
+ "inputs": [
1314
+ {
1315
+ "name": "width",
1316
+ "type": "INT",
1317
+ "widget": {
1318
+ "name": "width"
1319
+ },
1320
+ "link": 310
1321
+ },
1322
+ {
1323
+ "name": "height",
1324
+ "type": "INT",
1325
+ "widget": {
1326
+ "name": "height"
1327
+ },
1328
+ "link": 311
1329
+ }
1330
+ ],
1331
+ "outputs": [
1332
+ {
1333
+ "name": "LATENT",
1334
+ "type": "LATENT",
1335
+ "links": [
1336
+ 350
1337
+ ]
1338
+ }
1339
+ ],
1340
+ "properties": {
1341
+ "Node name for S&R": "EmptyHiDreamO1LatentImage",
1342
+ "enableTabs": false,
1343
+ "tabWidth": 65,
1344
+ "tabXOffset": 10,
1345
+ "hasSecondTab": false,
1346
+ "secondTabText": "Send Back",
1347
+ "secondTabOffset": 80,
1348
+ "secondTabWidth": 65,
1349
+ "cnr_id": "comfy-core",
1350
+ "ver": "0.21.0"
1351
+ },
1352
+ "widgets_values": [
1353
+ 2048,
1354
+ 2048,
1355
+ 1
1356
+ ]
1357
+ },
1358
+ {
1359
+ "id": 226,
1360
+ "type": "MarkdownNote",
1361
+ "pos": [
1362
+ -2540,
1363
+ 5430
1364
+ ],
1365
+ "size": [
1366
+ 360,
1367
+ 240
1368
+ ],
1369
+ "flags": {},
1370
+ "order": 7,
1371
+ "mode": 0,
1372
+ "inputs": [],
1373
+ "outputs": [],
1374
+ "title": "Note: Reference Images",
1375
+ "properties": {},
1376
+ "widgets_values": [
1377
+ "The HiDream O1 supports up to 10 reference images. You can add more Load Image nodes, then link them to the HiDream-O1 Reference Images node."
1378
+ ],
1379
+ "color": "#222",
1380
+ "bgcolor": "#000"
1381
+ },
1382
+ {
1383
+ "id": 171,
1384
+ "type": "PrimitiveStringMultiline",
1385
+ "pos": [
1386
+ -3440,
1387
+ 4890
1388
+ ],
1389
+ "size": [
1390
+ 310,
1391
+ 320
1392
+ ],
1393
+ "flags": {},
1394
+ "order": 8,
1395
+ "mode": 0,
1396
+ "inputs": [],
1397
+ "outputs": [
1398
+ {
1399
+ "name": "STRING",
1400
+ "type": "STRING",
1401
+ "links": [
1402
+ 260,
1403
+ 267
1404
+ ]
1405
+ }
1406
+ ],
1407
+ "title": "User Prompt",
1408
+ "properties": {
1409
+ "Node name for S&R": "PrimitiveStringMultiline",
1410
+ "enableTabs": false,
1411
+ "tabWidth": 65,
1412
+ "tabXOffset": 10,
1413
+ "hasSecondTab": false,
1414
+ "secondTabText": "Send Back",
1415
+ "secondTabOffset": 80,
1416
+ "secondTabWidth": 65,
1417
+ "cnr_id": "comfy-core",
1418
+ "ver": "0.21.0"
1419
+ },
1420
+ "widgets_values": [
1421
+ "Transform the background into a rainy neon city street at night, with wet asphalt reflections, blurred neon signs"
1422
+ ]
1423
+ },
1424
+ {
1425
+ "id": 227,
1426
+ "type": "SaveImage",
1427
+ "pos": [
1428
+ -1010,
1429
+ 4560
1430
+ ],
1431
+ "size": [
1432
+ 1260,
1433
+ 1330
1434
+ ],
1435
+ "flags": {},
1436
+ "order": 28,
1437
+ "mode": 0,
1438
+ "inputs": [
1439
+ {
1440
+ "name": "images",
1441
+ "type": "IMAGE",
1442
+ "link": 347
1443
+ }
1444
+ ],
1445
+ "outputs": [],
1446
+ "properties": {
1447
+ "enableTabs": false,
1448
+ "tabWidth": 65,
1449
+ "tabXOffset": 10,
1450
+ "hasSecondTab": false,
1451
+ "secondTabText": "Send Back",
1452
+ "secondTabOffset": 80,
1453
+ "secondTabWidth": 65,
1454
+ "cnr_id": "comfy-core",
1455
+ "ver": "0.21.1",
1456
+ "Node name for S&R": "SaveImage"
1457
+ },
1458
+ "widgets_values": [
1459
+ "hidream_o1"
1460
+ ]
1461
+ },
1462
+ {
1463
+ "id": 205,
1464
+ "type": "MarkdownNote",
1465
+ "pos": [
1466
+ -4330,
1467
+ 4560
1468
+ ],
1469
+ "size": [
1470
+ 820,
1471
+ 760
1472
+ ],
1473
+ "flags": {},
1474
+ "order": 9,
1475
+ "mode": 0,
1476
+ "inputs": [],
1477
+ "outputs": [],
1478
+ "properties": {},
1479
+ "widgets_values": [
1480
+ "Related PR: [#13817](https://github.com/Comfy-Org/ComfyUI/pull/13817)\n\n## Hidream O1 Tutorial\n[HidreamO1 tutorial](https://www.stablediffusiontutorials.com/2026/05/hidream-o1-image.html)\n\n## Model Links (for Local Users)\n\n**checkpoints**\n\n- [hidream_o1_image_dev_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_dev_fp8_scaled.safetensors)\n\n**text_encoders**\n\n- [gemma4_e4b_it_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 checkpoints/\n│ │ └── hidream_o1_image_dev_fp8_scaled.safetensors\n│ └── 📂 text_encoders/\n│ └── gemma4_e4b_it_fp8_scaled.safetensors\n```\n\n## Report Issue\n\nNote: Please install and update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
1481
+ ],
1482
+ "color": "#222",
1483
+ "bgcolor": "#000"
1484
+ }
1485
+ ],
1486
+ "links": [
1487
+ [
1488
+ 139,
1489
+ 112,
1490
+ 0,
1491
+ 108,
1492
+ 4,
1493
+ "SIGMAS"
1494
+ ],
1495
+ [
1496
+ 141,
1497
+ 110,
1498
+ 0,
1499
+ 104,
1500
+ 0,
1501
+ "CONDITIONING"
1502
+ ],
1503
+ [
1504
+ 146,
1505
+ 6,
1506
+ 1,
1507
+ 110,
1508
+ 0,
1509
+ "CLIP"
1510
+ ],
1511
+ [
1512
+ 147,
1513
+ 6,
1514
+ 2,
1515
+ 105,
1516
+ 1,
1517
+ "VAE"
1518
+ ],
1519
+ [
1520
+ 182,
1521
+ 124,
1522
+ 0,
1523
+ 112,
1524
+ 0,
1525
+ "MODEL"
1526
+ ],
1527
+ [
1528
+ 185,
1529
+ 125,
1530
+ 0,
1531
+ 108,
1532
+ 3,
1533
+ "SAMPLER"
1534
+ ],
1535
+ [
1536
+ 192,
1537
+ 6,
1538
+ 0,
1539
+ 124,
1540
+ 0,
1541
+ "MODEL"
1542
+ ],
1543
+ [
1544
+ 213,
1545
+ 124,
1546
+ 0,
1547
+ 108,
1548
+ 0,
1549
+ "MODEL"
1550
+ ],
1551
+ [
1552
+ 217,
1553
+ 110,
1554
+ 0,
1555
+ 152,
1556
+ 0,
1557
+ "CONDITIONING"
1558
+ ],
1559
+ [
1560
+ 218,
1561
+ 104,
1562
+ 0,
1563
+ 152,
1564
+ 1,
1565
+ "CONDITIONING"
1566
+ ],
1567
+ [
1568
+ 220,
1569
+ 104,
1570
+ 1,
1571
+ 153,
1572
+ 1,
1573
+ "CONDITIONING"
1574
+ ],
1575
+ [
1576
+ 224,
1577
+ 154,
1578
+ 0,
1579
+ 152,
1580
+ 2,
1581
+ "BOOLEAN"
1582
+ ],
1583
+ [
1584
+ 225,
1585
+ 154,
1586
+ 0,
1587
+ 153,
1588
+ 2,
1589
+ "BOOLEAN"
1590
+ ],
1591
+ [
1592
+ 233,
1593
+ 156,
1594
+ 0,
1595
+ 155,
1596
+ 0,
1597
+ "LATENT"
1598
+ ],
1599
+ [
1600
+ 235,
1601
+ 154,
1602
+ 0,
1603
+ 155,
1604
+ 2,
1605
+ "BOOLEAN"
1606
+ ],
1607
+ [
1608
+ 260,
1609
+ 171,
1610
+ 0,
1611
+ 175,
1612
+ 0,
1613
+ "STRING"
1614
+ ],
1615
+ [
1616
+ 265,
1617
+ 177,
1618
+ 0,
1619
+ 176,
1620
+ 2,
1621
+ "BOOLEAN"
1622
+ ],
1623
+ [
1624
+ 266,
1625
+ 175,
1626
+ 0,
1627
+ 176,
1628
+ 1,
1629
+ "STRING"
1630
+ ],
1631
+ [
1632
+ 267,
1633
+ 171,
1634
+ 0,
1635
+ 176,
1636
+ 0,
1637
+ "STRING"
1638
+ ],
1639
+ [
1640
+ 274,
1641
+ 6,
1642
+ 1,
1643
+ 188,
1644
+ 0,
1645
+ "CLIP"
1646
+ ],
1647
+ [
1648
+ 275,
1649
+ 188,
1650
+ 0,
1651
+ 104,
1652
+ 1,
1653
+ "CONDITIONING"
1654
+ ],
1655
+ [
1656
+ 276,
1657
+ 188,
1658
+ 0,
1659
+ 153,
1660
+ 0,
1661
+ "CONDITIONING"
1662
+ ],
1663
+ [
1664
+ 300,
1665
+ 213,
1666
+ 0,
1667
+ 104,
1668
+ 2,
1669
+ "IMAGE"
1670
+ ],
1671
+ [
1672
+ 301,
1673
+ 213,
1674
+ 0,
1675
+ 175,
1676
+ 1,
1677
+ "IMAGE"
1678
+ ],
1679
+ [
1680
+ 302,
1681
+ 213,
1682
+ 0,
1683
+ 196,
1684
+ 0,
1685
+ "IMAGE"
1686
+ ],
1687
+ [
1688
+ 310,
1689
+ 218,
1690
+ 1,
1691
+ 172,
1692
+ 0,
1693
+ "INT"
1694
+ ],
1695
+ [
1696
+ 311,
1697
+ 219,
1698
+ 1,
1699
+ 172,
1700
+ 1,
1701
+ "INT"
1702
+ ],
1703
+ [
1704
+ 318,
1705
+ 196,
1706
+ 0,
1707
+ 157,
1708
+ 0,
1709
+ "IMAGE"
1710
+ ],
1711
+ [
1712
+ 319,
1713
+ 157,
1714
+ 0,
1715
+ 218,
1716
+ 0,
1717
+ "INT"
1718
+ ],
1719
+ [
1720
+ 320,
1721
+ 157,
1722
+ 1,
1723
+ 219,
1724
+ 0,
1725
+ "INT"
1726
+ ],
1727
+ [
1728
+ 321,
1729
+ 155,
1730
+ 0,
1731
+ 108,
1732
+ 5,
1733
+ "LATENT"
1734
+ ],
1735
+ [
1736
+ 322,
1737
+ 108,
1738
+ 0,
1739
+ 105,
1740
+ 0,
1741
+ "LATENT"
1742
+ ],
1743
+ [
1744
+ 323,
1745
+ 152,
1746
+ 0,
1747
+ 108,
1748
+ 1,
1749
+ "CONDITIONING"
1750
+ ],
1751
+ [
1752
+ 324,
1753
+ 153,
1754
+ 0,
1755
+ 108,
1756
+ 2,
1757
+ "CONDITIONING"
1758
+ ],
1759
+ [
1760
+ 326,
1761
+ 176,
1762
+ 0,
1763
+ 221,
1764
+ 0,
1765
+ "STRING"
1766
+ ],
1767
+ [
1768
+ 327,
1769
+ 221,
1770
+ 0,
1771
+ 110,
1772
+ 1,
1773
+ "STRING"
1774
+ ],
1775
+ [
1776
+ 347,
1777
+ 105,
1778
+ 0,
1779
+ 227,
1780
+ 0,
1781
+ "IMAGE"
1782
+ ],
1783
+ [
1784
+ 350,
1785
+ 172,
1786
+ 0,
1787
+ 155,
1788
+ 1,
1789
+ "LATENT"
1790
+ ]
1791
+ ],
1792
+ "groups": [
1793
+ {
1794
+ "id": 2,
1795
+ "title": "Sampling",
1796
+ "bounding": [
1797
+ -1730,
1798
+ 4530,
1799
+ 690,
1800
+ 720
1801
+ ],
1802
+ "color": "#3f789e",
1803
+ "flags": {}
1804
+ },
1805
+ {
1806
+ "id": 3,
1807
+ "title": "Prompt",
1808
+ "bounding": [
1809
+ -2560,
1810
+ 4530,
1811
+ 450,
1812
+ 720
1813
+ ],
1814
+ "color": "#3f789e",
1815
+ "flags": {}
1816
+ },
1817
+ {
1818
+ "id": 4,
1819
+ "title": "Model",
1820
+ "bounding": [
1821
+ -3450,
1822
+ 4530,
1823
+ 860,
1824
+ 260
1825
+ ],
1826
+ "color": "#3f789e",
1827
+ "flags": {}
1828
+ },
1829
+ {
1830
+ "id": 6,
1831
+ "title": "Image Size",
1832
+ "bounding": [
1833
+ -2080,
1834
+ 5280,
1835
+ 1040,
1836
+ 620
1837
+ ],
1838
+ "color": "#3f789e",
1839
+ "flags": {}
1840
+ },
1841
+ {
1842
+ "id": 7,
1843
+ "title": "I2V or Image Edit Switch",
1844
+ "bounding": [
1845
+ -2080,
1846
+ 4530,
1847
+ 320,
1848
+ 460
1849
+ ],
1850
+ "color": "#3f789e",
1851
+ "flags": {}
1852
+ },
1853
+ {
1854
+ "id": 8,
1855
+ "title": "Image Input for Image Edit",
1856
+ "bounding": [
1857
+ -3080,
1858
+ 5280,
1859
+ 970,
1860
+ 620
1861
+ ],
1862
+ "color": "#3f789e",
1863
+ "flags": {}
1864
+ },
1865
+ {
1866
+ "id": 9,
1867
+ "title": "Prompt Enhancement",
1868
+ "bounding": [
1869
+ -3080,
1870
+ 4820,
1871
+ 490,
1872
+ 430
1873
+ ],
1874
+ "color": "#3f789e",
1875
+ "flags": {}
1876
+ },
1877
+ {
1878
+ "id": 10,
1879
+ "title": "Feature Switch",
1880
+ "bounding": [
1881
+ -3450,
1882
+ 5280,
1883
+ 340,
1884
+ 620
1885
+ ],
1886
+ "color": "#A88",
1887
+ "flags": {}
1888
+ },
1889
+ {
1890
+ "id": 11,
1891
+ "title": "User Prompt",
1892
+ "bounding": [
1893
+ -3450,
1894
+ 4820,
1895
+ 340,
1896
+ 430
1897
+ ],
1898
+ "color": "#A88",
1899
+ "flags": {}
1900
+ },
1901
+ {
1902
+ "id": 12,
1903
+ "title": "Size: Image Edit",
1904
+ "bounding": [
1905
+ -2040,
1906
+ 5630,
1907
+ 920,
1908
+ 242.65625
1909
+ ],
1910
+ "color": "#3f789e",
1911
+ "flags": {}
1912
+ },
1913
+ {
1914
+ "id": 13,
1915
+ "title": "Size: Text to Image",
1916
+ "bounding": [
1917
+ -2040,
1918
+ 5350,
1919
+ 300,
1920
+ 230
1921
+ ],
1922
+ "color": "#3f789e",
1923
+ "flags": {}
1924
+ },
1925
+ {
1926
+ "id": 14,
1927
+ "title": "Group",
1928
+ "bounding": [
1929
+ -2080,
1930
+ 5000,
1931
+ 320,
1932
+ 250
1933
+ ],
1934
+ "color": "#3f789e",
1935
+ "flags": {}
1936
+ }
1937
+ ],
1938
+ "definitions": {
1939
+ "subgraphs": [
1940
+ {
1941
+ "id": "fa7296b5-c974-4466-bfe3-a1f05f43b880",
1942
+ "version": 1,
1943
+ "state": {
1944
+ "lastGroupId": 14,
1945
+ "lastNodeId": 228,
1946
+ "lastLinkId": 350,
1947
+ "lastRerouteId": 0
1948
+ },
1949
+ "revision": 0,
1950
+ "config": {},
1951
+ "name": "Prompt Enhancement",
1952
+ "inputNode": {
1953
+ "id": -10,
1954
+ "bounding": [
1955
+ -4280,
1956
+ 5580,
1957
+ 128,
1958
+ 108
1959
+ ]
1960
+ },
1961
+ "outputNode": {
1962
+ "id": -20,
1963
+ "bounding": [
1964
+ -130,
1965
+ 5680,
1966
+ 128,
1967
+ 68
1968
+ ]
1969
+ },
1970
+ "inputs": [
1971
+ {
1972
+ "id": "8e257a84-6ce5-4e50-b571-2118cc7a0b8f",
1973
+ "name": "replace",
1974
+ "type": "STRING",
1975
+ "linkIds": [
1976
+ 248
1977
+ ],
1978
+ "localized_name": "replace",
1979
+ "label": "user_prompt",
1980
+ "pos": [
1981
+ -4176,
1982
+ 5604
1983
+ ]
1984
+ },
1985
+ {
1986
+ "id": "eae67611-94a9-4fb3-abd7-a29bc95db936",
1987
+ "name": "clip_name",
1988
+ "type": "COMBO",
1989
+ "linkIds": [
1990
+ 263
1991
+ ],
1992
+ "pos": [
1993
+ -4176,
1994
+ 5624
1995
+ ]
1996
+ },
1997
+ {
1998
+ "id": "46f381cb-503d-4a53-b419-f510752553e6",
1999
+ "name": "image",
2000
+ "type": "IMAGE",
2001
+ "linkIds": [
2002
+ 269
2003
+ ],
2004
+ "pos": [
2005
+ -4176,
2006
+ 5644
2007
+ ]
2008
+ }
2009
+ ],
2010
+ "outputs": [
2011
+ {
2012
+ "id": "54294308-5a73-4d61-a8dd-ff5b58aa91e8",
2013
+ "name": "output",
2014
+ "type": "STRING",
2015
+ "linkIds": [
2016
+ 292
2017
+ ],
2018
+ "localized_name": "output",
2019
+ "pos": [
2020
+ -106,
2021
+ 5704
2022
+ ]
2023
+ }
2024
+ ],
2025
+ "widgets": [],
2026
+ "nodes": [
2027
+ {
2028
+ "id": 165,
2029
+ "type": "PrimitiveStringMultiline",
2030
+ "pos": [
2031
+ -3930,
2032
+ 5440
2033
+ ],
2034
+ "size": [
2035
+ 510,
2036
+ 440
2037
+ ],
2038
+ "flags": {
2039
+ "collapsed": false
2040
+ },
2041
+ "order": 0,
2042
+ "mode": 0,
2043
+ "inputs": [],
2044
+ "outputs": [
2045
+ {
2046
+ "localized_name": "STRING",
2047
+ "name": "STRING",
2048
+ "type": "STRING",
2049
+ "links": [
2050
+ 243
2051
+ ]
2052
+ }
2053
+ ],
2054
+ "title": "REWRITE_SYSTEM_PROMPT",
2055
+ "properties": {
2056
+ "Node name for S&R": "PrimitiveStringMultiline",
2057
+ "enableTabs": false,
2058
+ "tabWidth": 65,
2059
+ "tabXOffset": 10,
2060
+ "hasSecondTab": false,
2061
+ "secondTabText": "Send Back",
2062
+ "secondTabOffset": 80,
2063
+ "secondTabWidth": 65,
2064
+ "cnr_id": "comfy-core",
2065
+ "ver": "0.21.0"
2066
+ },
2067
+ "widgets_values": [
2068
+ "<|turn>system\n你是专业的AI图像生成Prompt工程师的Prompt Engineering Engine,也是一名拥有百科知识和视觉导演能力的创意总监.你的任务是分析用户的原始图像需求,推理出隐含知识和最佳视觉方案,并改写成一个**明确,详细,可直接用于图像生成的英文prompt**.\n\n## 核心目标\n\n图像生成模型只能执行直接的视觉描述,不能自行补全背景知识,逻辑关系或文字内容.因此,你必须提前完成知识解析,空间规划和视觉导演,把结果显式写入prompt中.\n\n使用 SCALIST 框架扩写每个画面:\n- **Subject**: 主体的身份,外观,颜色,材质,纹理,动作,表情,服饰.\n- **Composition**: 镜头景别,视角,主体位置,前景/中景/背景层次,留白和视觉焦点.\n- **Action**: 主体正在做什么,动作方向,姿态,互动关系.\n- **Location**: 场景地点,室内/室外,时代,天气,时间段,环境细节.\n- **Image style**: photorealistic, cinematic, oil painting, watercolor, anime, 3D render 等,并匹配合适的光线和色彩氛围.\n- **Specs**: 摄影/渲染参数,如 85mm lens, low-angle shot, shallow depth of field, soft diffused light, dramatic backlighting, matte texture, sharp focus.\n- **Text rendering**: 如果用户要求文字,必须把准确文字放在英文双引号中,并说明字体风格,颜色,大小,材质和精确位置.\n\n1. **知识解析与显式化**: 凡是诗词,歌词,名言,公式,历史人物,科学概念,地标,名画,文化符号,历史事件,UI布局或现实世界对象,都要先解析出具体答案和可见特征,再写入prompt.不要只写 \"Mona Lisa\",\"Dunkirk evacuation\",\"freedom\" 这类需要模型自行理解的词.\n2. **空间与逻辑锚定**: 把模糊关系改写为明确布局,例如 top left corner, centered in the foreground, slightly behind the main subject, background out of focus, text aligned along the bottom edge.不要使用\"旁边\"\"一些\"\"好看\"等含糊表达.\n3. **文字排版精度**: 中文,英文,公式,多语言文本都必须逐字保留在引号中,例如 \"床前明月光,疑是地上霜.举头望明月,低头思故乡.\" 或 \"E = mc²\";同时指定字体(calligraphy, serif, sans-serif, handwritten),颜色,材质和位置.\n4. **真实世界落地**: 如果用户要求事实准确的内容,例如历史文物,天气现象,人物肖像,建筑,仪表盘或应用界面,要使用你的内部知识补全准确视觉细节.\n5. **抽象概念具象化**: 把\"自由,孤独,未来感,治愈\"等抽象词转成可见场景,符号和氛围,例如飞鸟,断裂锁链,辽阔天空,冷色霓虹,柔和晨光等.\n\n## 示例与学习\n\n- 用户说\"李白的静夜思写在墙上\",prompt 应写出完整中文诗句,并指定它以优雅中国书法写在古旧石墙的哪个位置.\n- 用户说\"三大力学的奠基人\"或\"爱因斯坦写质能方程\",prompt 应解析出 Isaac Newton 或 Albert Einstein,并描述人物外貌,时代服饰,黑板,公式 \"E = mc²\" 等可见内容.\n- 用户说\"蒙娜丽莎\"\"比萨斜塔\"\"福字\"\"敦刻尔克大撤退\",prompt 应描述对应画面特征: 神秘微笑与交叠双手,倾斜白色大理石钟楼与拱廊,红底金色/黑色书法 \"福\",1940年海滩上等待撤离的士兵和海面船只.\n\n## 输出prompt要求\n\n- prompt 必须是一个英文的,连贯自然的单段落,像 Creative Director's Brief,而不是关键词堆砌或 tag soup.\n- 长度通常为 80-220 词;简单需求可以更短,复杂画面可以更长.\n- 最重要的主体和画面意图放在开头,然后自然展开构图,动作,地点,风格,技术参数和文字渲染.\n- 使用完整句子,丰富但准确的形容词,摄影/绘画/设计术语.\n- 不要包含任何需要图像模型继续推理才能理解的表达.\n- prompt 必须自包含,仅凭prompt本身就能准确生成图片.\n\n## 执行步骤\n\n1. **Analyze**: 识别核心主体,用户意图,文字要求,参考限制和需要解析的隐含知识.\n2. **Reason**: 选择最适宜画面的光线,镜头,角度,纹理,风格,空间布局和事实细节.\n3. **Rewrite**: 输出最终增强后的英文单段落prompt.\n\n只输出JSON,不加任何其他文字:\n{\"prompt\": \"英文单段落prompt\", \"reasoning\": \"你的推理和知识解析过程(需要用用户输入的提示词语言来生成)\", \"resolved_knowledge\": \"你解析了哪些隐含知识(根据输入用户语言简述,如果没有隐含知识用对应语言写'无')\"} \n<|turn|>"
2069
+ ]
2070
+ },
2071
+ {
2072
+ "id": 170,
2073
+ "type": "StringReplace",
2074
+ "pos": [
2075
+ -3930,
2076
+ 5930
2077
+ ],
2078
+ "size": [
2079
+ 510,
2080
+ 260
2081
+ ],
2082
+ "flags": {
2083
+ "collapsed": false
2084
+ },
2085
+ "order": 4,
2086
+ "mode": 0,
2087
+ "inputs": [
2088
+ {
2089
+ "localized_name": "replace",
2090
+ "name": "replace",
2091
+ "type": "STRING",
2092
+ "widget": {
2093
+ "name": "replace"
2094
+ },
2095
+ "link": 248
2096
+ }
2097
+ ],
2098
+ "outputs": [
2099
+ {
2100
+ "localized_name": "STRING",
2101
+ "name": "STRING",
2102
+ "type": "STRING",
2103
+ "links": [
2104
+ 244
2105
+ ]
2106
+ }
2107
+ ],
2108
+ "properties": {
2109
+ "Node name for S&R": "StringReplace",
2110
+ "enableTabs": false,
2111
+ "tabWidth": 65,
2112
+ "tabXOffset": 10,
2113
+ "hasSecondTab": false,
2114
+ "secondTabText": "Send Back",
2115
+ "secondTabOffset": 80,
2116
+ "secondTabWidth": 65,
2117
+ "cnr_id": "comfy-core",
2118
+ "ver": "0.21.0"
2119
+ },
2120
+ "widgets_values": [
2121
+ "<|turn>user\n{user_prompt}<|turn|>\n<|turn>model\n",
2122
+ "{user_prompt}",
2123
+ ""
2124
+ ]
2125
+ },
2126
+ {
2127
+ "id": 166,
2128
+ "type": "StringConcatenate",
2129
+ "pos": [
2130
+ -3350,
2131
+ 5440
2132
+ ],
2133
+ "size": [
2134
+ 230,
2135
+ 220
2136
+ ],
2137
+ "flags": {
2138
+ "collapsed": false
2139
+ },
2140
+ "order": 2,
2141
+ "mode": 0,
2142
+ "inputs": [
2143
+ {
2144
+ "localized_name": "string_a",
2145
+ "name": "string_a",
2146
+ "type": "STRING",
2147
+ "widget": {
2148
+ "name": "string_a"
2149
+ },
2150
+ "link": 243
2151
+ },
2152
+ {
2153
+ "localized_name": "string_b",
2154
+ "name": "string_b",
2155
+ "type": "STRING",
2156
+ "widget": {
2157
+ "name": "string_b"
2158
+ },
2159
+ "link": 244
2160
+ }
2161
+ ],
2162
+ "outputs": [
2163
+ {
2164
+ "localized_name": "STRING",
2165
+ "name": "STRING",
2166
+ "type": "STRING",
2167
+ "links": [
2168
+ 251
2169
+ ]
2170
+ }
2171
+ ],
2172
+ "properties": {
2173
+ "Node name for S&R": "StringConcatenate",
2174
+ "enableTabs": false,
2175
+ "tabWidth": 65,
2176
+ "tabXOffset": 10,
2177
+ "hasSecondTab": false,
2178
+ "secondTabText": "Send Back",
2179
+ "secondTabOffset": 80,
2180
+ "secondTabWidth": 65,
2181
+ "cnr_id": "comfy-core",
2182
+ "ver": "0.21.0"
2183
+ },
2184
+ "widgets_values": [
2185
+ "",
2186
+ "",
2187
+ ""
2188
+ ]
2189
+ },
2190
+ {
2191
+ "id": 164,
2192
+ "type": "TextGenerate",
2193
+ "pos": [
2194
+ -3070,
2195
+ 5220
2196
+ ],
2197
+ "size": [
2198
+ 400,
2199
+ 412
2200
+ ],
2201
+ "flags": {},
2202
+ "order": 1,
2203
+ "mode": 0,
2204
+ "showAdvanced": true,
2205
+ "inputs": [
2206
+ {
2207
+ "localized_name": "clip",
2208
+ "name": "clip",
2209
+ "type": "CLIP",
2210
+ "link": 241
2211
+ },
2212
+ {
2213
+ "localized_name": "image",
2214
+ "name": "image",
2215
+ "shape": 7,
2216
+ "type": "IMAGE",
2217
+ "link": 269
2218
+ },
2219
+ {
2220
+ "localized_name": "video",
2221
+ "name": "video",
2222
+ "shape": 7,
2223
+ "type": "IMAGE",
2224
+ "link": null
2225
+ },
2226
+ {
2227
+ "localized_name": "audio",
2228
+ "name": "audio",
2229
+ "shape": 7,
2230
+ "type": "AUDIO",
2231
+ "link": null
2232
+ },
2233
+ {
2234
+ "localized_name": "prompt",
2235
+ "name": "prompt",
2236
+ "type": "STRING",
2237
+ "widget": {
2238
+ "name": "prompt"
2239
+ },
2240
+ "link": 251
2241
+ }
2242
+ ],
2243
+ "outputs": [
2244
+ {
2245
+ "localized_name": "generated_text",
2246
+ "name": "generated_text",
2247
+ "type": "STRING",
2248
+ "links": [
2249
+ 281
2250
+ ]
2251
+ }
2252
+ ],
2253
+ "properties": {
2254
+ "Node name for S&R": "TextGenerate",
2255
+ "enableTabs": false,
2256
+ "tabWidth": 65,
2257
+ "tabXOffset": 10,
2258
+ "hasSecondTab": false,
2259
+ "secondTabText": "Send Back",
2260
+ "secondTabOffset": 80,
2261
+ "secondTabWidth": 65,
2262
+ "cnr_id": "comfy-core",
2263
+ "ver": "0.21.0"
2264
+ },
2265
+ "widgets_values": [
2266
+ "",
2267
+ 2048,
2268
+ "on",
2269
+ 0.7,
2270
+ 64,
2271
+ 0.95,
2272
+ 0.05,
2273
+ 1.05,
2274
+ 0,
2275
+ 0,
2276
+ false,
2277
+ false
2278
+ ]
2279
+ },
2280
+ {
2281
+ "id": 167,
2282
+ "type": "CLIPLoader",
2283
+ "pos": [
2284
+ -3930,
2285
+ 5220
2286
+ ],
2287
+ "size": [
2288
+ 510,
2289
+ 160
2290
+ ],
2291
+ "flags": {},
2292
+ "order": 3,
2293
+ "mode": 0,
2294
+ "inputs": [
2295
+ {
2296
+ "localized_name": "clip_name",
2297
+ "name": "clip_name",
2298
+ "type": "COMBO",
2299
+ "widget": {
2300
+ "name": "clip_name"
2301
+ },
2302
+ "link": 263
2303
+ }
2304
+ ],
2305
+ "outputs": [
2306
+ {
2307
+ "localized_name": "CLIP",
2308
+ "name": "CLIP",
2309
+ "type": "CLIP",
2310
+ "links": [
2311
+ 241
2312
+ ]
2313
+ }
2314
+ ],
2315
+ "properties": {
2316
+ "Node name for S&R": "CLIPLoader",
2317
+ "enableTabs": false,
2318
+ "tabWidth": 65,
2319
+ "tabXOffset": 10,
2320
+ "hasSecondTab": false,
2321
+ "secondTabText": "Send Back",
2322
+ "secondTabOffset": 80,
2323
+ "secondTabWidth": 65,
2324
+ "cnr_id": "comfy-core",
2325
+ "ver": "0.21.0",
2326
+ "models": [
2327
+ {
2328
+ "name": "gemma4_e4b_it_fp8_scaled.safetensors",
2329
+ "url": "https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors",
2330
+ "directory": "text_encoders"
2331
+ }
2332
+ ]
2333
+ },
2334
+ "widgets_values": [
2335
+ "gemma4_e4b_it_fp8_scaled.safetensors",
2336
+ "stable_diffusion",
2337
+ "default"
2338
+ ]
2339
+ },
2340
+ {
2341
+ "id": 198,
2342
+ "type": "JsonExtractString",
2343
+ "pos": [
2344
+ -1360,
2345
+ 5710
2346
+ ],
2347
+ "size": [
2348
+ 400,
2349
+ 200
2350
+ ],
2351
+ "flags": {},
2352
+ "order": 5,
2353
+ "mode": 0,
2354
+ "inputs": [
2355
+ {
2356
+ "localized_name": "json_string",
2357
+ "name": "json_string",
2358
+ "type": "STRING",
2359
+ "widget": {
2360
+ "name": "json_string"
2361
+ },
2362
+ "link": 288
2363
+ }
2364
+ ],
2365
+ "outputs": [
2366
+ {
2367
+ "localized_name": "STRING",
2368
+ "name": "STRING",
2369
+ "type": "STRING",
2370
+ "links": [
2371
+ 291,
2372
+ 292
2373
+ ]
2374
+ }
2375
+ ],
2376
+ "properties": {
2377
+ "Node name for S&R": "JsonExtractString",
2378
+ "enableTabs": false,
2379
+ "tabWidth": 65,
2380
+ "tabXOffset": 10,
2381
+ "hasSecondTab": false,
2382
+ "secondTabText": "Send Back",
2383
+ "secondTabOffset": 80,
2384
+ "secondTabWidth": 65,
2385
+ "cnr_id": "comfy-core",
2386
+ "ver": "0.21.0"
2387
+ },
2388
+ "widgets_values": [
2389
+ "",
2390
+ "prompt"
2391
+ ]
2392
+ },
2393
+ {
2394
+ "id": 199,
2395
+ "type": "PreviewAny",
2396
+ "pos": [
2397
+ -2590,
2398
+ 5220
2399
+ ],
2400
+ "size": [
2401
+ 460,
2402
+ 980
2403
+ ],
2404
+ "flags": {},
2405
+ "order": 6,
2406
+ "mode": 4,
2407
+ "inputs": [
2408
+ {
2409
+ "localized_name": "source",
2410
+ "name": "source",
2411
+ "type": "*",
2412
+ "link": 281
2413
+ }
2414
+ ],
2415
+ "outputs": [
2416
+ {
2417
+ "localized_name": "STRING",
2418
+ "name": "STRING",
2419
+ "type": "STRING",
2420
+ "links": [
2421
+ 285
2422
+ ]
2423
+ }
2424
+ ],
2425
+ "properties": {
2426
+ "Node name for S&R": "PreviewAny",
2427
+ "enableTabs": false,
2428
+ "tabWidth": 65,
2429
+ "tabXOffset": 10,
2430
+ "hasSecondTab": false,
2431
+ "secondTabText": "Send Back",
2432
+ "secondTabOffset": 80,
2433
+ "secondTabWidth": 65,
2434
+ "cnr_id": "comfy-core",
2435
+ "ver": "0.21.0"
2436
+ },
2437
+ "widgets_values": [
2438
+ null,
2439
+ null,
2440
+ null
2441
+ ]
2442
+ },
2443
+ {
2444
+ "id": 200,
2445
+ "type": "PreviewAny",
2446
+ "pos": [
2447
+ -1640,
2448
+ 5240
2449
+ ],
2450
+ "size": [
2451
+ 250,
2452
+ 220
2453
+ ],
2454
+ "flags": {},
2455
+ "order": 7,
2456
+ "mode": 4,
2457
+ "inputs": [
2458
+ {
2459
+ "localized_name": "source",
2460
+ "name": "source",
2461
+ "type": "*",
2462
+ "link": 286
2463
+ }
2464
+ ],
2465
+ "outputs": [
2466
+ {
2467
+ "localized_name": "STRING",
2468
+ "name": "STRING",
2469
+ "type": "STRING",
2470
+ "links": []
2471
+ }
2472
+ ],
2473
+ "properties": {
2474
+ "Node name for S&R": "PreviewAny",
2475
+ "enableTabs": false,
2476
+ "tabWidth": 65,
2477
+ "tabXOffset": 10,
2478
+ "hasSecondTab": false,
2479
+ "secondTabText": "Send Back",
2480
+ "secondTabOffset": 80,
2481
+ "secondTabWidth": 65,
2482
+ "cnr_id": "comfy-core",
2483
+ "ver": "0.21.0"
2484
+ },
2485
+ "widgets_values": [
2486
+ null,
2487
+ null,
2488
+ null
2489
+ ]
2490
+ },
2491
+ {
2492
+ "id": 201,
2493
+ "type": "RegexReplace",
2494
+ "pos": [
2495
+ -2080,
2496
+ 5230
2497
+ ],
2498
+ "size": [
2499
+ 400,
2500
+ 400
2501
+ ],
2502
+ "flags": {},
2503
+ "order": 8,
2504
+ "mode": 0,
2505
+ "showAdvanced": true,
2506
+ "inputs": [
2507
+ {
2508
+ "localized_name": "string",
2509
+ "name": "string",
2510
+ "type": "STRING",
2511
+ "widget": {
2512
+ "name": "string"
2513
+ },
2514
+ "link": 285
2515
+ }
2516
+ ],
2517
+ "outputs": [
2518
+ {
2519
+ "localized_name": "STRING",
2520
+ "name": "STRING",
2521
+ "type": "STRING",
2522
+ "links": [
2523
+ 286,
2524
+ 287
2525
+ ]
2526
+ }
2527
+ ],
2528
+ "properties": {
2529
+ "Node name for S&R": "RegexReplace",
2530
+ "enableTabs": false,
2531
+ "tabWidth": 65,
2532
+ "tabXOffset": 10,
2533
+ "hasSecondTab": false,
2534
+ "secondTabText": "Send Back",
2535
+ "secondTabOffset": 80,
2536
+ "secondTabWidth": 65,
2537
+ "cnr_id": "comfy-core",
2538
+ "ver": "0.21.0"
2539
+ },
2540
+ "widgets_values": [
2541
+ "",
2542
+ "^```(?:json)?\\s*\\n?",
2543
+ "",
2544
+ false,
2545
+ false,
2546
+ false,
2547
+ 1
2548
+ ]
2549
+ },
2550
+ {
2551
+ "id": 202,
2552
+ "type": "RegexReplace",
2553
+ "pos": [
2554
+ -2080,
2555
+ 5710
2556
+ ],
2557
+ "size": [
2558
+ 400,
2559
+ 400
2560
+ ],
2561
+ "flags": {},
2562
+ "order": 9,
2563
+ "mode": 0,
2564
+ "showAdvanced": false,
2565
+ "inputs": [
2566
+ {
2567
+ "localized_name": "string",
2568
+ "name": "string",
2569
+ "type": "STRING",
2570
+ "widget": {
2571
+ "name": "string"
2572
+ },
2573
+ "link": 287
2574
+ }
2575
+ ],
2576
+ "outputs": [
2577
+ {
2578
+ "localized_name": "STRING",
2579
+ "name": "STRING",
2580
+ "type": "STRING",
2581
+ "links": [
2582
+ 288,
2583
+ 290
2584
+ ]
2585
+ }
2586
+ ],
2587
+ "properties": {
2588
+ "Node name for S&R": "RegexReplace",
2589
+ "enableTabs": false,
2590
+ "tabWidth": 65,
2591
+ "tabXOffset": 10,
2592
+ "hasSecondTab": false,
2593
+ "secondTabText": "Send Back",
2594
+ "secondTabOffset": 80,
2595
+ "secondTabWidth": 65,
2596
+ "cnr_id": "comfy-core",
2597
+ "ver": "0.21.0"
2598
+ },
2599
+ "widgets_values": [
2600
+ "",
2601
+ "\\n?```\\s*$",
2602
+ "",
2603
+ false,
2604
+ false,
2605
+ false,
2606
+ 1
2607
+ ]
2608
+ },
2609
+ {
2610
+ "id": 203,
2611
+ "type": "PreviewAny",
2612
+ "pos": [
2613
+ -1630,
2614
+ 5710
2615
+ ],
2616
+ "size": [
2617
+ 230,
2618
+ 170
2619
+ ],
2620
+ "flags": {},
2621
+ "order": 10,
2622
+ "mode": 4,
2623
+ "inputs": [
2624
+ {
2625
+ "localized_name": "source",
2626
+ "name": "source",
2627
+ "type": "*",
2628
+ "link": 290
2629
+ }
2630
+ ],
2631
+ "outputs": [
2632
+ {
2633
+ "localized_name": "STRING",
2634
+ "name": "STRING",
2635
+ "type": "STRING",
2636
+ "links": []
2637
+ }
2638
+ ],
2639
+ "properties": {
2640
+ "Node name for S&R": "PreviewAny",
2641
+ "enableTabs": false,
2642
+ "tabWidth": 65,
2643
+ "tabXOffset": 10,
2644
+ "hasSecondTab": false,
2645
+ "secondTabText": "Send Back",
2646
+ "secondTabOffset": 80,
2647
+ "secondTabWidth": 65,
2648
+ "cnr_id": "comfy-core",
2649
+ "ver": "0.21.0"
2650
+ },
2651
+ "widgets_values": [
2652
+ null,
2653
+ null,
2654
+ null
2655
+ ]
2656
+ },
2657
+ {
2658
+ "id": 204,
2659
+ "type": "PreviewAny",
2660
+ "pos": [
2661
+ -900,
2662
+ 5710
2663
+ ],
2664
+ "size": [
2665
+ 300,
2666
+ 400
2667
+ ],
2668
+ "flags": {},
2669
+ "order": 11,
2670
+ "mode": 4,
2671
+ "inputs": [
2672
+ {
2673
+ "localized_name": "source",
2674
+ "name": "source",
2675
+ "type": "*",
2676
+ "link": 291
2677
+ }
2678
+ ],
2679
+ "outputs": [
2680
+ {
2681
+ "localized_name": "STRING",
2682
+ "name": "STRING",
2683
+ "type": "STRING",
2684
+ "links": []
2685
+ }
2686
+ ],
2687
+ "properties": {
2688
+ "Node name for S&R": "PreviewAny",
2689
+ "enableTabs": false,
2690
+ "tabWidth": 65,
2691
+ "tabXOffset": 10,
2692
+ "hasSecondTab": false,
2693
+ "secondTabText": "Send Back",
2694
+ "secondTabOffset": 80,
2695
+ "secondTabWidth": 65,
2696
+ "cnr_id": "comfy-core",
2697
+ "ver": "0.21.0"
2698
+ },
2699
+ "widgets_values": [
2700
+ null,
2701
+ null,
2702
+ null
2703
+ ]
2704
+ }
2705
+ ],
2706
+ "groups": [
2707
+ {
2708
+ "id": 5,
2709
+ "title": "Prompt Enhancement",
2710
+ "bounding": [
2711
+ -3960,
2712
+ 5130,
2713
+ 1350,
2714
+ 1070
2715
+ ],
2716
+ "color": "#3f789e",
2717
+ "flags": {}
2718
+ }
2719
+ ],
2720
+ "links": [
2721
+ {
2722
+ "id": 243,
2723
+ "origin_id": 165,
2724
+ "origin_slot": 0,
2725
+ "target_id": 166,
2726
+ "target_slot": 0,
2727
+ "type": "STRING"
2728
+ },
2729
+ {
2730
+ "id": 244,
2731
+ "origin_id": 170,
2732
+ "origin_slot": 0,
2733
+ "target_id": 166,
2734
+ "target_slot": 1,
2735
+ "type": "STRING"
2736
+ },
2737
+ {
2738
+ "id": 241,
2739
+ "origin_id": 167,
2740
+ "origin_slot": 0,
2741
+ "target_id": 164,
2742
+ "target_slot": 0,
2743
+ "type": "CLIP"
2744
+ },
2745
+ {
2746
+ "id": 251,
2747
+ "origin_id": 166,
2748
+ "origin_slot": 0,
2749
+ "target_id": 164,
2750
+ "target_slot": 4,
2751
+ "type": "STRING"
2752
+ },
2753
+ {
2754
+ "id": 248,
2755
+ "origin_id": -10,
2756
+ "origin_slot": 0,
2757
+ "target_id": 170,
2758
+ "target_slot": 0,
2759
+ "type": "STRING"
2760
+ },
2761
+ {
2762
+ "id": 263,
2763
+ "origin_id": -10,
2764
+ "origin_slot": 1,
2765
+ "target_id": 167,
2766
+ "target_slot": 0,
2767
+ "type": "COMBO"
2768
+ },
2769
+ {
2770
+ "id": 269,
2771
+ "origin_id": -10,
2772
+ "origin_slot": 2,
2773
+ "target_id": 164,
2774
+ "target_slot": 1,
2775
+ "type": "IMAGE"
2776
+ },
2777
+ {
2778
+ "id": 281,
2779
+ "origin_id": 164,
2780
+ "origin_slot": 0,
2781
+ "target_id": 199,
2782
+ "target_slot": 0,
2783
+ "type": "STRING"
2784
+ },
2785
+ {
2786
+ "id": 285,
2787
+ "origin_id": 199,
2788
+ "origin_slot": 0,
2789
+ "target_id": 201,
2790
+ "target_slot": 0,
2791
+ "type": "STRING"
2792
+ },
2793
+ {
2794
+ "id": 286,
2795
+ "origin_id": 201,
2796
+ "origin_slot": 0,
2797
+ "target_id": 200,
2798
+ "target_slot": 0,
2799
+ "type": "STRING"
2800
+ },
2801
+ {
2802
+ "id": 287,
2803
+ "origin_id": 201,
2804
+ "origin_slot": 0,
2805
+ "target_id": 202,
2806
+ "target_slot": 0,
2807
+ "type": "STRING"
2808
+ },
2809
+ {
2810
+ "id": 288,
2811
+ "origin_id": 202,
2812
+ "origin_slot": 0,
2813
+ "target_id": 198,
2814
+ "target_slot": 0,
2815
+ "type": "STRING"
2816
+ },
2817
+ {
2818
+ "id": 290,
2819
+ "origin_id": 202,
2820
+ "origin_slot": 0,
2821
+ "target_id": 203,
2822
+ "target_slot": 0,
2823
+ "type": "STRING"
2824
+ },
2825
+ {
2826
+ "id": 291,
2827
+ "origin_id": 198,
2828
+ "origin_slot": 0,
2829
+ "target_id": 204,
2830
+ "target_slot": 0,
2831
+ "type": "STRING"
2832
+ },
2833
+ {
2834
+ "id": 292,
2835
+ "origin_id": 198,
2836
+ "origin_slot": 0,
2837
+ "target_id": -20,
2838
+ "target_slot": 0,
2839
+ "type": "STRING"
2840
+ }
2841
+ ],
2842
+ "extra": {}
2843
+ }
2844
+ ]
2845
+ },
2846
+ "config": {},
2847
+ "extra": {
2848
+ "ds": {
2849
+ "scale": 0.7655036171045577,
2850
+ "offset": [
2851
+ 4594.019740543663,
2852
+ -4363.432867073958
2853
+ ]
2854
+ },
2855
+ "frontendVersion": "1.43.16",
2856
+ "linearData": {
2857
+ "inputs": [],
2858
+ "outputs": []
2859
+ },
2860
+ "VHS_latentpreview": false,
2861
+ "VHS_latentpreviewrate": 0,
2862
+ "VHS_MetadataImage": true,
2863
+ "VHS_KeepIntermediate": true
2864
+ },
2865
+ "version": 0.4
2866
+ }