workflows/p-h3-image_edit.json
37.2 KB · 1905 lines · json Raw
1 {
2 "id": "69d8656c-2ba3-4178-990f-1ff7029e5c2e",
3 "revision": 0,
4 "last_node_id": 31,
5 "last_link_id": 46,
6 "nodes": [
7 {
8 "id": 4,
9 "type": "LoadImage",
10 "pos": [
11 0,
12 834
13 ],
14 "size": [
15 320,
16 360
17 ],
18 "flags": {},
19 "order": 0,
20 "mode": 0,
21 "inputs": [
22 {
23 "localized_name": "image",
24 "name": "image",
25 "type": "COMBO",
26 "widget": {
27 "name": "image"
28 },
29 "link": null
30 },
31 {
32 "localized_name": "choose file to upload",
33 "name": "upload",
34 "type": "IMAGEUPLOAD",
35 "widget": {
36 "name": "upload"
37 },
38 "link": null
39 }
40 ],
41 "outputs": [
42 {
43 "localized_name": "IMAGE",
44 "name": "IMAGE",
45 "type": "IMAGE",
46 "links": [
47 21,
48 42
49 ]
50 },
51 {
52 "localized_name": "MASK",
53 "name": "MASK",
54 "type": "MASK",
55 "links": null
56 }
57 ],
58 "title": "image_1 (edited)",
59 "properties": {
60 "Node name for S&R": "LoadImage",
61 "cnr_id": "comfy-core",
62 "ver": "0.43.0"
63 },
64 "widgets_values": [
65 "example.png",
66 "image"
67 ],
68 "widgets_values_named": {
69 "image": "example.png",
70 "upload": "image"
71 }
72 },
73 {
74 "id": 5,
75 "type": "LoadImage",
76 "pos": [
77 0,
78 1254
79 ],
80 "size": [
81 320,
82 360
83 ],
84 "flags": {},
85 "order": 1,
86 "mode": 0,
87 "inputs": [
88 {
89 "localized_name": "image",
90 "name": "image",
91 "type": "COMBO",
92 "widget": {
93 "name": "image"
94 },
95 "link": null
96 },
97 {
98 "localized_name": "choose file to upload",
99 "name": "upload",
100 "type": "IMAGEUPLOAD",
101 "widget": {
102 "name": "upload"
103 },
104 "link": null
105 }
106 ],
107 "outputs": [
108 {
109 "localized_name": "IMAGE",
110 "name": "IMAGE",
111 "type": "IMAGE",
112 "links": [
113 23,
114 44
115 ]
116 },
117 {
118 "localized_name": "MASK",
119 "name": "MASK",
120 "type": "MASK",
121 "links": null
122 }
123 ],
124 "title": "image_2 (reference)",
125 "properties": {
126 "Node name for S&R": "LoadImage",
127 "cnr_id": "comfy-core",
128 "ver": "0.43.0"
129 },
130 "widgets_values": [
131 "example.png",
132 "image"
133 ],
134 "widgets_values_named": {
135 "image": "example.png",
136 "upload": "image"
137 }
138 },
139 {
140 "id": 7,
141 "type": "ManualSigmas",
142 "pos": [
143 1340,
144 560
145 ],
146 "size": [
147 320,
148 82
149 ],
150 "flags": {},
151 "order": 2,
152 "mode": 0,
153 "inputs": [
154 {
155 "localized_name": "sigmas",
156 "name": "sigmas",
157 "type": "STRING",
158 "widget": {
159 "name": "sigmas"
160 },
161 "link": null
162 }
163 ],
164 "outputs": [
165 {
166 "localized_name": "SIGMAS",
167 "name": "SIGMAS",
168 "type": "SIGMAS",
169 "links": [
170 10
171 ]
172 }
173 ],
174 "properties": {
175 "Node name for S&R": "ManualSigmas",
176 "cnr_id": "comfy-core",
177 "ver": "0.43.0"
178 },
179 "widgets_values": [
180 "1.0, 0.984753, 0.967905, 0.951688, 0.925372, 0.881923, 0.810083, 0.528718, 0.0"
181 ],
182 "widgets_values_named": {
183 "sigmas": "1.0, 0.984753, 0.967905, 0.951688, 0.925372, 0.881923, 0.810083, 0.528718, 0.0"
184 }
185 },
186 {
187 "id": 8,
188 "type": "BasicGuider",
189 "pos": [
190 1340,
191 100
192 ],
193 "size": [
194 240,
195 46
196 ],
197 "flags": {},
198 "order": 22,
199 "mode": 0,
200 "inputs": [
201 {
202 "localized_name": "model",
203 "name": "model",
204 "type": "MODEL",
205 "link": 36
206 },
207 {
208 "localized_name": "conditioning",
209 "name": "conditioning",
210 "type": "CONDITIONING",
211 "link": 45
212 }
213 ],
214 "outputs": [
215 {
216 "localized_name": "GUIDER",
217 "name": "GUIDER",
218 "type": "GUIDER",
219 "links": [
220 8
221 ]
222 }
223 ],
224 "properties": {
225 "Node name for S&R": "BasicGuider",
226 "cnr_id": "comfy-core",
227 "ver": "0.43.0"
228 }
229 },
230 {
231 "id": 9,
232 "type": "KSamplerSelect",
233 "pos": [
234 1340,
235 220
236 ],
237 "size": [
238 270,
239 58
240 ],
241 "flags": {},
242 "order": 3,
243 "mode": 0,
244 "inputs": [
245 {
246 "localized_name": "sampler_name",
247 "name": "sampler_name",
248 "type": "COMBO",
249 "widget": {
250 "name": "sampler_name"
251 },
252 "link": null
253 }
254 ],
255 "outputs": [
256 {
257 "localized_name": "SAMPLER",
258 "name": "SAMPLER",
259 "type": "SAMPLER",
260 "links": [
261 9
262 ]
263 }
264 ],
265 "properties": {
266 "Node name for S&R": "KSamplerSelect",
267 "cnr_id": "comfy-core",
268 "ver": "0.43.0"
269 },
270 "widgets_values": [
271 "euler"
272 ],
273 "widgets_values_named": {
274 "sampler_name": "euler"
275 }
276 },
277 {
278 "id": 10,
279 "type": "RandomNoise",
280 "pos": [
281 1340,
282 340
283 ],
284 "size": [
285 270,
286 82
287 ],
288 "flags": {},
289 "order": 4,
290 "mode": 0,
291 "inputs": [
292 {
293 "localized_name": "noise_seed",
294 "name": "noise_seed",
295 "type": "INT",
296 "widget": {
297 "name": "noise_seed"
298 },
299 "link": null
300 }
301 ],
302 "outputs": [
303 {
304 "localized_name": "NOISE",
305 "name": "NOISE",
306 "type": "NOISE",
307 "links": [
308 7
309 ]
310 }
311 ],
312 "properties": {
313 "Node name for S&R": "RandomNoise",
314 "cnr_id": "comfy-core",
315 "ver": "0.43.0"
316 },
317 "widgets_values": [
318 0,
319 "randomize"
320 ],
321 "widgets_values_named": {
322 "noise_seed": 0,
323 "control_after_generate": "randomize"
324 }
325 },
326 {
327 "id": 11,
328 "type": "SamplerCustomAdvanced",
329 "pos": [
330 1700,
331 100
332 ],
333 "size": [
334 270,
335 330
336 ],
337 "flags": {},
338 "order": 23,
339 "mode": 0,
340 "inputs": [
341 {
342 "localized_name": "noise",
343 "name": "noise",
344 "type": "NOISE",
345 "link": 7
346 },
347 {
348 "localized_name": "guider",
349 "name": "guider",
350 "type": "GUIDER",
351 "link": 8
352 },
353 {
354 "localized_name": "sampler",
355 "name": "sampler",
356 "type": "SAMPLER",
357 "link": 9
358 },
359 {
360 "localized_name": "sigmas",
361 "name": "sigmas",
362 "type": "SIGMAS",
363 "link": 10
364 },
365 {
366 "localized_name": "latent_image",
367 "name": "latent_image",
368 "type": "LATENT",
369 "link": 46
370 }
371 ],
372 "outputs": [
373 {
374 "localized_name": "output",
375 "name": "output",
376 "type": "LATENT",
377 "links": [
378 12
379 ]
380 },
381 {
382 "localized_name": "denoised_output",
383 "name": "denoised_output",
384 "type": "LATENT",
385 "links": []
386 }
387 ],
388 "properties": {
389 "Node name for S&R": "SamplerCustomAdvanced",
390 "cnr_id": "comfy-core",
391 "ver": "0.43.0"
392 }
393 },
394 {
395 "id": 12,
396 "type": "VAEDecode",
397 "pos": [
398 2020,
399 100
400 ],
401 "size": [
402 210,
403 46
404 ],
405 "flags": {},
406 "order": 24,
407 "mode": 0,
408 "inputs": [
409 {
410 "localized_name": "samples",
411 "name": "samples",
412 "type": "LATENT",
413 "link": 12
414 },
415 {
416 "localized_name": "vae",
417 "name": "vae",
418 "type": "VAE",
419 "link": 38
420 }
421 ],
422 "outputs": [
423 {
424 "localized_name": "IMAGE",
425 "name": "IMAGE",
426 "type": "IMAGE",
427 "links": [
428 14
429 ]
430 }
431 ],
432 "properties": {
433 "Node name for S&R": "VAEDecode",
434 "cnr_id": "comfy-core",
435 "ver": "0.43.0"
436 }
437 },
438 {
439 "id": 13,
440 "type": "SaveImage",
441 "pos": [
442 2280,
443 100
444 ],
445 "size": [
446 520,
447 560
448 ],
449 "flags": {},
450 "order": 25,
451 "mode": 0,
452 "inputs": [
453 {
454 "localized_name": "images",
455 "name": "images",
456 "type": "IMAGE",
457 "link": 14
458 },
459 {
460 "localized_name": "filename_prefix",
461 "name": "filename_prefix",
462 "type": "STRING",
463 "widget": {
464 "name": "filename_prefix"
465 },
466 "link": null
467 }
468 ],
469 "outputs": [
470 {
471 "localized_name": "images",
472 "name": "images",
473 "type": "IMAGE",
474 "links": null
475 }
476 ],
477 "properties": {
478 "Node name for S&R": "SaveImage",
479 "cnr_id": "comfy-core",
480 "ver": "0.43.0"
481 },
482 "widgets_values": [
483 "p-h3-image"
484 ],
485 "widgets_values_named": {
486 "filename_prefix": "p-h3-image"
487 }
488 },
489 {
490 "id": 14,
491 "type": "CLIPLoader",
492 "pos": [
493 0,
494 668
495 ],
496 "size": [
497 320,
498 106
499 ],
500 "flags": {},
501 "order": 5,
502 "mode": 0,
503 "inputs": [
504 {
505 "localized_name": "clip_name",
506 "name": "clip_name",
507 "type": "COMBO",
508 "widget": {
509 "name": "clip_name"
510 },
511 "link": null
512 },
513 {
514 "localized_name": "type",
515 "name": "type",
516 "type": "COMBO",
517 "widget": {
518 "name": "type"
519 },
520 "link": null
521 },
522 {
523 "localized_name": "device",
524 "name": "device",
525 "shape": 7,
526 "type": "COMBO",
527 "widget": {
528 "name": "device"
529 },
530 "link": null
531 }
532 ],
533 "outputs": [
534 {
535 "localized_name": "CLIP",
536 "name": "CLIP",
537 "type": "CLIP",
538 "links": [
539 28
540 ]
541 }
542 ],
543 "title": "p-h3-image prompt upsampler",
544 "properties": {
545 "Node name for S&R": "CLIPLoader",
546 "cnr_id": "comfy-core",
547 "ver": "0.43.0",
548 "models": [
549 {
550 "name": "p-h3-image_prompt_upsampler_bf16.safetensors",
551 "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/text_encoders/p-h3-image_prompt_upsampler_bf16.safetensors",
552 "directory": "text_encoders"
553 }
554 ]
555 },
556 "widgets_values": [
557 "p-h3-image_prompt_upsampler_bf16.safetensors",
558 "minimax",
559 "default"
560 ],
561 "widgets_values_named": {
562 "clip_name": "p-h3-image_prompt_upsampler_bf16.safetensors",
563 "type": "minimax",
564 "device": "default"
565 }
566 },
567 {
568 "id": 16,
569 "type": "PreviewAny",
570 "pos": [
571 1640,
572 700
573 ],
574 "size": [
575 480,
576 360
577 ],
578 "flags": {},
579 "order": 20,
580 "mode": 0,
581 "inputs": [
582 {
583 "localized_name": "source",
584 "name": "source",
585 "type": "*",
586 "link": 34
587 }
588 ],
589 "outputs": [
590 {
591 "localized_name": "STRING",
592 "name": "STRING",
593 "type": "STRING",
594 "links": []
595 }
596 ],
597 "title": "Upsampled prompt",
598 "properties": {
599 "Node name for S&R": "PreviewAny",
600 "cnr_id": "comfy-core",
601 "ver": "0.43.0"
602 },
603 "widgets_values": [],
604 "widgets_values_named": {}
605 },
606 {
607 "id": 17,
608 "type": "PrimitiveStringMultiline",
609 "pos": [
610 380,
611 700
612 ],
613 "size": [
614 400,
615 180
616 ],
617 "flags": {},
618 "order": 6,
619 "mode": 0,
620 "inputs": [
621 {
622 "localized_name": "value",
623 "name": "value",
624 "type": "STRING",
625 "widget": {
626 "name": "value"
627 },
628 "link": null
629 }
630 ],
631 "outputs": [
632 {
633 "localized_name": "STRING",
634 "name": "STRING",
635 "type": "STRING",
636 "links": [
637 20,
638 31
639 ]
640 }
641 ],
642 "title": "Request",
643 "properties": {
644 "Node name for S&R": "PrimitiveStringMultiline"
645 },
646 "widgets_values": [
647 "Put the hat from <Picture 2> on the person in <Picture 1>."
648 ],
649 "widgets_values_named": {
650 "value": "Put the hat from <Picture 2> on the person in <Picture 1>."
651 }
652 },
653 {
654 "id": 18,
655 "type": "StringFormat",
656 "pos": [
657 380,
658 920
659 ],
660 "size": [
661 400,
662 240
663 ],
664 "flags": {},
665 "order": 13,
666 "mode": 0,
667 "inputs": [
668 {
669 "localized_name": "a",
670 "name": "values.a",
671 "shape": 7,
672 "type": "*",
673 "link": 20
674 },
675 {
676 "localized_name": "b",
677 "name": "values.b",
678 "shape": 7,
679 "type": "*",
680 "link": null
681 },
682 {
683 "localized_name": "f_string",
684 "name": "f_string",
685 "type": "STRING",
686 "widget": {
687 "name": "f_string"
688 },
689 "link": null
690 }
691 ],
692 "outputs": [
693 {
694 "localized_name": "STRING",
695 "name": "STRING",
696 "type": "STRING",
697 "links": [
698 30
699 ]
700 }
701 ],
702 "title": "Upsampler input",
703 "properties": {
704 "Node name for S&R": "StringFormat"
705 },
706 "widgets_values": [
707 "<|im_start|>user\n<Picture 1>: <|vision_start|><|image_pad|><|vision_end|><Picture 2>: <|vision_start|><|image_pad|><|vision_end|>Edit <Picture 1>. {a}<|im_end|>\n<|im_start|>assistant\n<think>\n"
708 ],
709 "widgets_values_named": {
710 "f_string": "<|im_start|>user\n<Picture 1>: <|vision_start|><|image_pad|><|vision_end|><Picture 2>: <|vision_start|><|image_pad|><|vision_end|>Edit <Picture 1>. {a}<|im_end|>\n<|im_start|>assistant\n<think>\n"
711 }
712 },
713 {
714 "id": 19,
715 "type": "ImageScaleToTotalPixels",
716 "pos": [
717 820,
718 700
719 ],
720 "size": [
721 300,
722 110
723 ],
724 "flags": {},
725 "order": 11,
726 "mode": 0,
727 "inputs": [
728 {
729 "localized_name": "image",
730 "name": "image",
731 "type": "IMAGE",
732 "link": 21
733 },
734 {
735 "localized_name": "upscale_method",
736 "name": "upscale_method",
737 "type": "COMBO",
738 "widget": {
739 "name": "upscale_method"
740 },
741 "link": null
742 },
743 {
744 "localized_name": "megapixels",
745 "name": "megapixels",
746 "type": "FLOAT",
747 "widget": {
748 "name": "megapixels"
749 },
750 "link": null
751 },
752 {
753 "localized_name": "resolution_steps",
754 "name": "resolution_steps",
755 "type": "INT",
756 "widget": {
757 "name": "resolution_steps"
758 },
759 "link": null
760 }
761 ],
762 "outputs": [
763 {
764 "localized_name": "IMAGE",
765 "name": "IMAGE",
766 "type": "IMAGE",
767 "links": [
768 22,
769 26
770 ]
771 }
772 ],
773 "title": "image_1 at 1 MP",
774 "properties": {
775 "Node name for S&R": "ImageScaleToTotalPixels"
776 },
777 "widgets_values": [
778 "lanczos",
779 1,
780 1
781 ],
782 "widgets_values_named": {
783 "upscale_method": "lanczos",
784 "megapixels": 1,
785 "resolution_steps": 1
786 }
787 },
788 {
789 "id": 20,
790 "type": "GetImageSize",
791 "pos": [
792 820,
793 850
794 ],
795 "size": [
796 220,
797 90
798 ],
799 "flags": {},
800 "order": 15,
801 "mode": 0,
802 "inputs": [
803 {
804 "localized_name": "image",
805 "name": "image",
806 "type": "IMAGE",
807 "link": 22
808 }
809 ],
810 "outputs": [
811 {
812 "localized_name": "width",
813 "name": "width",
814 "type": "INT",
815 "links": [
816 24
817 ]
818 },
819 {
820 "localized_name": "height",
821 "name": "height",
822 "type": "INT",
823 "links": [
824 25
825 ]
826 },
827 {
828 "localized_name": "batch_size",
829 "name": "batch_size",
830 "type": "INT",
831 "links": null
832 }
833 ],
834 "properties": {
835 "Node name for S&R": "GetImageSize"
836 }
837 },
838 {
839 "id": 21,
840 "type": "ResizeAndPadImage",
841 "pos": [
842 820,
843 980
844 ],
845 "size": [
846 300,
847 170
848 ],
849 "flags": {},
850 "order": 16,
851 "mode": 0,
852 "inputs": [
853 {
854 "localized_name": "image",
855 "name": "image",
856 "type": "IMAGE",
857 "link": 23
858 },
859 {
860 "localized_name": "target_width",
861 "name": "target_width",
862 "type": "INT",
863 "widget": {
864 "name": "target_width"
865 },
866 "link": 24
867 },
868 {
869 "localized_name": "target_height",
870 "name": "target_height",
871 "type": "INT",
872 "widget": {
873 "name": "target_height"
874 },
875 "link": 25
876 },
877 {
878 "localized_name": "padding_color",
879 "name": "padding_color",
880 "type": "COMBO",
881 "widget": {
882 "name": "padding_color"
883 },
884 "link": null
885 },
886 {
887 "localized_name": "interpolation",
888 "name": "interpolation",
889 "type": "COMBO",
890 "widget": {
891 "name": "interpolation"
892 },
893 "link": null
894 }
895 ],
896 "outputs": [
897 {
898 "localized_name": "IMAGE",
899 "name": "IMAGE",
900 "type": "IMAGE",
901 "links": [
902 27
903 ]
904 }
905 ],
906 "title": "image_2 padded to image_1",
907 "properties": {
908 "Node name for S&R": "ResizeAndPadImage"
909 },
910 "widgets_values": [
911 512,
912 512,
913 "white",
914 "lanczos"
915 ],
916 "widgets_values_named": {
917 "target_width": 512,
918 "target_height": 512,
919 "padding_color": "white",
920 "interpolation": "lanczos"
921 }
922 },
923 {
924 "id": 22,
925 "type": "BatchImagesNode",
926 "pos": [
927 820,
928 1190
929 ],
930 "size": [
931 220,
932 86
933 ],
934 "flags": {},
935 "order": 17,
936 "mode": 0,
937 "inputs": [
938 {
939 "localized_name": "image0",
940 "name": "images.image0",
941 "type": "IMAGE",
942 "link": 26
943 },
944 {
945 "localized_name": "image1",
946 "name": "images.image1",
947 "shape": 7,
948 "type": "IMAGE",
949 "link": 27
950 },
951 {
952 "localized_name": "image2",
953 "name": "images.image2",
954 "shape": 7,
955 "type": "IMAGE",
956 "link": null
957 }
958 ],
959 "outputs": [
960 {
961 "localized_name": "IMAGE",
962 "name": "IMAGE",
963 "type": "IMAGE",
964 "links": [
965 29
966 ]
967 }
968 ],
969 "properties": {
970 "Node name for S&R": "BatchImagesNode"
971 }
972 },
973 {
974 "id": 23,
975 "type": "TextGenerate",
976 "pos": [
977 1180,
978 700
979 ],
980 "size": [
981 400,
982 288
983 ],
984 "flags": {},
985 "order": 18,
986 "mode": 0,
987 "inputs": [
988 {
989 "localized_name": "clip",
990 "name": "clip",
991 "type": "CLIP",
992 "link": 28
993 },
994 {
995 "localized_name": "image",
996 "name": "image",
997 "shape": 7,
998 "type": "IMAGE",
999 "link": 29
1000 },
1001 {
1002 "localized_name": "video",
1003 "name": "video",
1004 "shape": 7,
1005 "type": "IMAGE",
1006 "link": null
1007 },
1008 {
1009 "localized_name": "audio",
1010 "name": "audio",
1011 "shape": 7,
1012 "type": "AUDIO",
1013 "link": null
1014 },
1015 {
1016 "localized_name": "system_prompt",
1017 "name": "system_prompt",
1018 "shape": 7,
1019 "type": "STRING",
1020 "link": null
1021 },
1022 {
1023 "localized_name": "prompt",
1024 "name": "prompt",
1025 "type": "STRING",
1026 "widget": {
1027 "name": "prompt"
1028 },
1029 "link": 30
1030 },
1031 {
1032 "localized_name": "max_length",
1033 "name": "max_length",
1034 "type": "INT",
1035 "widget": {
1036 "name": "max_length"
1037 },
1038 "link": null
1039 },
1040 {
1041 "localized_name": "Sampling Mode",
1042 "name": "sampling_mode",
1043 "type": "COMFY_DYNAMICCOMBO_V3",
1044 "widget": {
1045 "name": "sampling_mode"
1046 },
1047 "link": null
1048 },
1049 {
1050 "localized_name": "thinking",
1051 "name": "thinking",
1052 "shape": 7,
1053 "type": "BOOLEAN",
1054 "widget": {
1055 "name": "thinking"
1056 },
1057 "link": null
1058 },
1059 {
1060 "localized_name": "use_default_template",
1061 "name": "use_default_template",
1062 "shape": 7,
1063 "type": "BOOLEAN",
1064 "widget": {
1065 "name": "use_default_template"
1066 },
1067 "link": null
1068 },
1069 {
1070 "localized_name": "mtp",
1071 "name": "mtp",
1072 "shape": 7,
1073 "type": "COMBO",
1074 "widget": {
1075 "name": "mtp"
1076 },
1077 "link": null
1078 }
1079 ],
1080 "outputs": [
1081 {
1082 "localized_name": "generated_text",
1083 "name": "generated_text",
1084 "type": "STRING",
1085 "links": [
1086 32
1087 ]
1088 },
1089 {
1090 "localized_name": "thinking",
1091 "name": "thinking",
1092 "type": "STRING",
1093 "links": null
1094 }
1095 ],
1096 "title": "Prompt upsampler",
1097 "properties": {
1098 "Node name for S&R": "TextGenerate"
1099 },
1100 "widgets_values": [
1101 "",
1102 3072,
1103 "off",
1104 false,
1105 true,
1106 "auto"
1107 ],
1108 "widgets_values_named": {
1109 "prompt": "",
1110 "max_length": 3072,
1111 "sampling_mode": "off",
1112 "thinking": false,
1113 "use_default_template": true,
1114 "mtp": "auto"
1115 }
1116 },
1117 {
1118 "id": 24,
1119 "type": "ComfySwitchNode",
1120 "pos": [
1121 1180,
1122 1030
1123 ],
1124 "size": [
1125 300,
1126 80
1127 ],
1128 "flags": {},
1129 "order": 19,
1130 "mode": 0,
1131 "inputs": [
1132 {
1133 "localized_name": "on_false",
1134 "name": "on_false",
1135 "shape": 7,
1136 "type": "*",
1137 "link": 31
1138 },
1139 {
1140 "localized_name": "on_true",
1141 "name": "on_true",
1142 "shape": 7,
1143 "type": "*",
1144 "link": 32
1145 },
1146 {
1147 "localized_name": "switch",
1148 "name": "switch",
1149 "type": "BOOLEAN",
1150 "widget": {
1151 "name": "switch"
1152 },
1153 "link": null
1154 }
1155 ],
1156 "outputs": [
1157 {
1158 "localized_name": "output",
1159 "name": "output",
1160 "type": "*",
1161 "links": [
1162 34,
1163 41
1164 ]
1165 }
1166 ],
1167 "title": "Use prompt upsampler",
1168 "properties": {
1169 "Node name for S&R": "ComfySwitchNode"
1170 },
1171 "widgets_values": [
1172 true
1173 ],
1174 "widgets_values_named": {
1175 "switch": true
1176 }
1177 },
1178 {
1179 "id": 25,
1180 "type": "MarkdownNote",
1181 "pos": [
1182 380,
1183 1200
1184 ],
1185 "size": [
1186 400,
1187 260
1188 ],
1189 "flags": {},
1190 "order": 7,
1191 "mode": 0,
1192 "inputs": [],
1193 "outputs": [],
1194 "title": "Prompt upsampler",
1195 "properties": {},
1196 "widgets_values": [
1197 "**Prompt upsampler.** Type a short edit request in **Request**, with `<Picture 1>` for the image to edit and `<Picture 2>` for the reference. The upsampler (Generate Text) sees both images and turns the request into an edit brief, shown in the preview.\n\nFor another number of images, add or remove a `<Picture N>: <|vision_start|><|image_pad|><|vision_end|>` block in **Upsampler input** the image in **Batch Images**, padded to image_1's size, and the image on **p-h3-image Conditioning**.\n\n**image_1 at 4 MP** sets the size of the edit.\n\nSet **Use prompt upsampler** to false to send the request to the model as it is."
1198 ],
1199 "widgets_values_named": {
1200 "text": "**Prompt upsampler.** Type a short edit request in **Request**, with `<Picture 1>` for the image to edit and `<Picture 2>` for the reference. The upsampler (Generate Text) sees both images and turns the request into an edit brief, shown in the preview.\n\nFor another number of images, add or remove a `<Picture N>: <|vision_start|><|image_pad|><|vision_end|>` block in **Upsampler input** the image in **Batch Images**, padded to image_1's size, and the image on **p-h3-image Conditioning**.\n\n**image_1 at 4 MP** sets the size of the edit.\n\nSet **Use prompt upsampler** to false to send the request to the model as it is."
1201 },
1202 "color": "#432",
1203 "bgcolor": "#653"
1204 },
1205 {
1206 "id": 26,
1207 "type": "UNETLoader",
1208 "pos": [
1209 0,
1210 100
1211 ],
1212 "size": [
1213 270,
1214 82
1215 ],
1216 "flags": {},
1217 "order": 8,
1218 "mode": 0,
1219 "inputs": [
1220 {
1221 "localized_name": "unet_name",
1222 "name": "unet_name",
1223 "type": "COMBO",
1224 "widget": {
1225 "name": "unet_name"
1226 },
1227 "link": null
1228 },
1229 {
1230 "localized_name": "weight_dtype",
1231 "name": "weight_dtype",
1232 "type": "COMBO",
1233 "widget": {
1234 "name": "weight_dtype"
1235 },
1236 "link": null
1237 }
1238 ],
1239 "outputs": [
1240 {
1241 "localized_name": "MODEL",
1242 "name": "MODEL",
1243 "type": "MODEL",
1244 "links": [
1245 35
1246 ]
1247 }
1248 ],
1249 "properties": {
1250 "Node name for S&R": "UNETLoader",
1251 "models": [
1252 {
1253 "name": "p-h3-image_bf16.safetensors",
1254 "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/diffusion_models/p-h3-image_bf16.safetensors",
1255 "directory": "diffusion_models"
1256 }
1257 ]
1258 },
1259 "widgets_values": [
1260 "p-h3-image_bf16.safetensors",
1261 "default"
1262 ],
1263 "widgets_values_named": {
1264 "unet_name": "p-h3-image_bf16.safetensors",
1265 "weight_dtype": "default"
1266 }
1267 },
1268 {
1269 "id": 27,
1270 "type": "MiniMaxH3SigmaShift",
1271 "pos": [
1272 0,
1273 242
1274 ],
1275 "size": [
1276 277.2857421875,
1277 82
1278 ],
1279 "flags": {},
1280 "order": 14,
1281 "mode": 0,
1282 "inputs": [
1283 {
1284 "localized_name": "model",
1285 "name": "model",
1286 "type": "MODEL",
1287 "link": 35
1288 },
1289 {
1290 "localized_name": "shift_video",
1291 "name": "shift_video",
1292 "type": "FLOAT",
1293 "widget": {
1294 "name": "shift_video"
1295 },
1296 "link": null
1297 },
1298 {
1299 "localized_name": "shift_audio",
1300 "name": "shift_audio",
1301 "type": "FLOAT",
1302 "widget": {
1303 "name": "shift_audio"
1304 },
1305 "link": null
1306 }
1307 ],
1308 "outputs": [
1309 {
1310 "localized_name": "MODEL",
1311 "name": "MODEL",
1312 "type": "MODEL",
1313 "links": [
1314 36
1315 ]
1316 }
1317 ],
1318 "properties": {
1319 "Node name for S&R": "MiniMaxH3SigmaShift"
1320 },
1321 "widgets_values": [
1322 1,
1323 1
1324 ],
1325 "widgets_values_named": {
1326 "shift_video": 1,
1327 "shift_audio": 1
1328 }
1329 },
1330 {
1331 "id": 28,
1332 "type": "CLIPLoader",
1333 "pos": [
1334 0,
1335 384
1336 ],
1337 "size": [
1338 270,
1339 106
1340 ],
1341 "flags": {},
1342 "order": 9,
1343 "mode": 0,
1344 "inputs": [
1345 {
1346 "localized_name": "clip_name",
1347 "name": "clip_name",
1348 "type": "COMBO",
1349 "widget": {
1350 "name": "clip_name"
1351 },
1352 "link": null
1353 },
1354 {
1355 "localized_name": "type",
1356 "name": "type",
1357 "type": "COMBO",
1358 "widget": {
1359 "name": "type"
1360 },
1361 "link": null
1362 },
1363 {
1364 "localized_name": "device",
1365 "name": "device",
1366 "shape": 7,
1367 "type": "COMBO",
1368 "widget": {
1369 "name": "device"
1370 },
1371 "link": null
1372 }
1373 ],
1374 "outputs": [
1375 {
1376 "localized_name": "CLIP",
1377 "name": "CLIP",
1378 "type": "CLIP",
1379 "links": [
1380 39
1381 ]
1382 }
1383 ],
1384 "title": "p-h3-image text encoder",
1385 "properties": {
1386 "Node name for S&R": "CLIPLoader",
1387 "models": [
1388 {
1389 "name": "p-h3-image_text_encoder_bf16.safetensors",
1390 "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/text_encoders/p-h3-image_text_encoder_bf16.safetensors",
1391 "directory": "text_encoders"
1392 }
1393 ]
1394 },
1395 "widgets_values": [
1396 "p-h3-image_text_encoder_bf16.safetensors",
1397 "minimax",
1398 "default"
1399 ],
1400 "widgets_values_named": {
1401 "clip_name": "p-h3-image_text_encoder_bf16.safetensors",
1402 "type": "minimax",
1403 "device": "default"
1404 }
1405 },
1406 {
1407 "id": 29,
1408 "type": "VAELoader",
1409 "pos": [
1410 0,
1411 550
1412 ],
1413 "size": [
1414 270,
1415 58
1416 ],
1417 "flags": {},
1418 "order": 10,
1419 "mode": 0,
1420 "inputs": [
1421 {
1422 "localized_name": "vae_name",
1423 "name": "vae_name",
1424 "type": "COMBO",
1425 "widget": {
1426 "name": "vae_name"
1427 },
1428 "link": null
1429 }
1430 ],
1431 "outputs": [
1432 {
1433 "localized_name": "VAE",
1434 "name": "VAE",
1435 "type": "VAE",
1436 "links": [
1437 38,
1438 40
1439 ]
1440 }
1441 ],
1442 "properties": {
1443 "Node name for S&R": "VAELoader",
1444 "models": [
1445 {
1446 "name": "p-h3-image_vae_bf16.safetensors",
1447 "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/vae/p-h3-image_vae_bf16.safetensors",
1448 "directory": "vae"
1449 }
1450 ]
1451 },
1452 "widgets_values": [
1453 "p-h3-image_vae_bf16.safetensors"
1454 ],
1455 "widgets_values_named": {
1456 "vae_name": "p-h3-image_vae_bf16.safetensors"
1457 }
1458 },
1459 {
1460 "id": 30,
1461 "type": "PH3ImageConditioning",
1462 "pos": [
1463 860,
1464 100
1465 ],
1466 "size": [
1467 400,
1468 236
1469 ],
1470 "flags": {},
1471 "order": 21,
1472 "mode": 0,
1473 "inputs": [
1474 {
1475 "localized_name": "clip",
1476 "name": "clip",
1477 "type": "CLIP",
1478 "link": 39
1479 },
1480 {
1481 "localized_name": "vae",
1482 "name": "vae",
1483 "shape": 7,
1484 "type": "VAE",
1485 "link": 40
1486 },
1487 {
1488 "localized_name": "image_1",
1489 "name": "images.image_1",
1490 "shape": 7,
1491 "type": "IMAGE",
1492 "link": 43
1493 },
1494 {
1495 "localized_name": "image_2",
1496 "name": "images.image_2",
1497 "shape": 7,
1498 "type": "IMAGE",
1499 "link": 44
1500 },
1501 {
1502 "localized_name": "image_3",
1503 "name": "images.image_3",
1504 "shape": 7,
1505 "type": "IMAGE",
1506 "link": null
1507 },
1508 {
1509 "localized_name": "prompt",
1510 "name": "prompt",
1511 "type": "STRING",
1512 "widget": {
1513 "name": "prompt"
1514 },
1515 "link": 41
1516 },
1517 {
1518 "localized_name": "width",
1519 "name": "width",
1520 "type": "INT",
1521 "widget": {
1522 "name": "width"
1523 },
1524 "link": null
1525 },
1526 {
1527 "localized_name": "height",
1528 "name": "height",
1529 "type": "INT",
1530 "widget": {
1531 "name": "height"
1532 },
1533 "link": null
1534 }
1535 ],
1536 "outputs": [
1537 {
1538 "localized_name": "positive",
1539 "name": "positive",
1540 "type": "CONDITIONING",
1541 "links": [
1542 45
1543 ]
1544 },
1545 {
1546 "localized_name": "LATENT",
1547 "name": "LATENT",
1548 "type": "LATENT",
1549 "links": [
1550 46
1551 ]
1552 }
1553 ],
1554 "properties": {
1555 "Node name for S&R": "PH3ImageConditioning"
1556 },
1557 "widgets_values": [
1558 "",
1559 0,
1560 0
1561 ],
1562 "widgets_values_named": {
1563 "prompt": "",
1564 "width": 0,
1565 "height": 0
1566 }
1567 },
1568 {
1569 "id": 31,
1570 "type": "ImageScaleToTotalPixels",
1571 "pos": [
1572 860,
1573 380
1574 ],
1575 "size": [
1576 276.4927734375,
1577 106
1578 ],
1579 "flags": {},
1580 "order": 12,
1581 "mode": 0,
1582 "inputs": [
1583 {
1584 "localized_name": "image",
1585 "name": "image",
1586 "type": "IMAGE",
1587 "link": 42
1588 },
1589 {
1590 "localized_name": "upscale_method",
1591 "name": "upscale_method",
1592 "type": "COMBO",
1593 "widget": {
1594 "name": "upscale_method"
1595 },
1596 "link": null
1597 },
1598 {
1599 "localized_name": "megapixels",
1600 "name": "megapixels",
1601 "type": "FLOAT",
1602 "widget": {
1603 "name": "megapixels"
1604 },
1605 "link": null
1606 },
1607 {
1608 "localized_name": "resolution_steps",
1609 "name": "resolution_steps",
1610 "type": "INT",
1611 "widget": {
1612 "name": "resolution_steps"
1613 },
1614 "link": null
1615 }
1616 ],
1617 "outputs": [
1618 {
1619 "localized_name": "IMAGE",
1620 "name": "IMAGE",
1621 "type": "IMAGE",
1622 "links": [
1623 43
1624 ]
1625 }
1626 ],
1627 "title": "image_1 at 4 MP",
1628 "properties": {
1629 "Node name for S&R": "ImageScaleToTotalPixels"
1630 },
1631 "widgets_values": [
1632 "lanczos",
1633 4,
1634 32
1635 ],
1636 "widgets_values_named": {
1637 "upscale_method": "lanczos",
1638 "megapixels": 4,
1639 "resolution_steps": 32
1640 }
1641 }
1642 ],
1643 "links": [
1644 [
1645 7,
1646 10,
1647 0,
1648 11,
1649 0,
1650 "NOISE"
1651 ],
1652 [
1653 8,
1654 8,
1655 0,
1656 11,
1657 1,
1658 "GUIDER"
1659 ],
1660 [
1661 9,
1662 9,
1663 0,
1664 11,
1665 2,
1666 "SAMPLER"
1667 ],
1668 [
1669 10,
1670 7,
1671 0,
1672 11,
1673 3,
1674 "SIGMAS"
1675 ],
1676 [
1677 12,
1678 11,
1679 0,
1680 12,
1681 0,
1682 "LATENT"
1683 ],
1684 [
1685 14,
1686 12,
1687 0,
1688 13,
1689 0,
1690 "IMAGE"
1691 ],
1692 [
1693 21,
1694 4,
1695 0,
1696 19,
1697 0,
1698 "IMAGE"
1699 ],
1700 [
1701 22,
1702 19,
1703 0,
1704 20,
1705 0,
1706 "IMAGE"
1707 ],
1708 [
1709 23,
1710 5,
1711 0,
1712 21,
1713 0,
1714 "IMAGE"
1715 ],
1716 [
1717 24,
1718 20,
1719 0,
1720 21,
1721 1,
1722 "INT"
1723 ],
1724 [
1725 25,
1726 20,
1727 1,
1728 21,
1729 2,
1730 "INT"
1731 ],
1732 [
1733 31,
1734 17,
1735 0,
1736 24,
1737 0,
1738 "STRING"
1739 ],
1740 [
1741 32,
1742 23,
1743 0,
1744 24,
1745 1,
1746 "STRING"
1747 ],
1748 [
1749 34,
1750 24,
1751 0,
1752 16,
1753 0,
1754 "STRING"
1755 ],
1756 [
1757 35,
1758 26,
1759 0,
1760 27,
1761 0,
1762 "MODEL"
1763 ],
1764 [
1765 36,
1766 27,
1767 0,
1768 8,
1769 0,
1770 "MODEL"
1771 ],
1772 [
1773 38,
1774 29,
1775 0,
1776 12,
1777 1,
1778 "VAE"
1779 ],
1780 [
1781 42,
1782 4,
1783 0,
1784 31,
1785 0,
1786 "IMAGE"
1787 ],
1788 [
1789 45,
1790 30,
1791 0,
1792 8,
1793 1,
1794 "CONDITIONING"
1795 ],
1796 [
1797 46,
1798 30,
1799 1,
1800 11,
1801 4,
1802 "LATENT"
1803 ],
1804 [
1805 20,
1806 17,
1807 0,
1808 18,
1809 0,
1810 "STRING"
1811 ],
1812 [
1813 26,
1814 19,
1815 0,
1816 22,
1817 0,
1818 "IMAGE"
1819 ],
1820 [
1821 27,
1822 21,
1823 0,
1824 22,
1825 1,
1826 "IMAGE"
1827 ],
1828 [
1829 28,
1830 14,
1831 0,
1832 23,
1833 0,
1834 "CLIP"
1835 ],
1836 [
1837 29,
1838 22,
1839 0,
1840 23,
1841 1,
1842 "IMAGE"
1843 ],
1844 [
1845 30,
1846 18,
1847 0,
1848 23,
1849 5,
1850 "STRING"
1851 ],
1852 [
1853 39,
1854 28,
1855 0,
1856 30,
1857 0,
1858 "CLIP"
1859 ],
1860 [
1861 40,
1862 29,
1863 0,
1864 30,
1865 1,
1866 "VAE"
1867 ],
1868 [
1869 43,
1870 31,
1871 0,
1872 30,
1873 2,
1874 "IMAGE"
1875 ],
1876 [
1877 44,
1878 5,
1879 0,
1880 30,
1881 3,
1882 "IMAGE"
1883 ],
1884 [
1885 41,
1886 24,
1887 0,
1888 30,
1889 5,
1890 "STRING"
1891 ]
1892 ],
1893 "groups": [],
1894 "config": {},
1895 "extra": {
1896 "ds": {
1897 "scale": 0.6,
1898 "offset": [
1899 40,
1900 40
1901 ]
1902 }
1903 },
1904 "version": 0.4
1905 }