工作流 /
图像 /
SDXL修订文本提示

SDXL修订文本提示
SDXL Revision Text Prompts
使用SDXL修订版从参考图像转移概念生成图像。
图像
15 个节点 2 个输入 38 次使用 ComfyUI ≥ 0.0.1 ComfyUI 15 KB
需要的权重
这个工作流引用了 2 个权重文件,其中 2 个能在本站模型库里找到。
节点构成
CLIPTextEncode
× 2
LoadImage
× 2
CLIPVisionEncode
× 2
unCLIPConditioning
× 2
CLIPVisionLoader
× 1
CheckpointLoaderSimple
× 1
EmptyLatentImage
× 1
KSampler
× 1
SaveImage
× 1
MarkdownNote
× 1
VAEDecode
× 1
官方标注的模型
SDXLStability
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "22fbfe6b-e7d7-4193-8409-8599b5dce771",
3 "revision": 0,
4 "last_node_id": 41,
5 "last_link_id": 106,
6 "nodes": [
7 {
8 "id": 39,
9 "type": "CLIPVisionLoader",
10 "pos": [
11 -470,
12 -240
13 ],
14 "size": [
15 315,
16 58
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "CLIP_VISION",
25 "type": "CLIP_VISION",
26 "slot_index": 0,
27 "links": [
28 101,
29 102
30 ]
31 }
32 ],
33 "properties": {
34 "Node name for S&R": "CLIPVisionLoader",
35 "cnr_id": "comfy-core",
36 "ver": "0.3.65",
37 "models": [
38 {
39 "name": "clip_vision_g.safetensors",
40 "url": "https://huggingface.co/comfyanonymous/clip_vision_g/resolve/main/clip_vision_g.safetensors?download=true",
41 "directory": "clip_vision"
42 }
43 ]
44 },
45 "widgets_values": [
46 "clip_vision_g.safetensors"
47 ]
48 },
49 {
50 "id": 7,
51 "type": "CLIPTextEncode",
52 "pos": [
53 -100,
54 -180
55 ],
56 "size": [
57 425.2799987792969,
58 180.61000061035156
59 ],
60 "flags": [],
61 "order": 8,
62 "mode": 0,
63 "inputs": [
64 {
65 "name": "clip",
66 "type": "CLIP",
67 "link": 105
68 }
69 ],
70 "outputs": [
71 {
72 "name": "CONDITIONING",
73 "type": "CONDITIONING",
74 "slot_index": 0,
75 "links": [
76 6
77 ]
78 }
79 ],
80 "properties": {
81 "Node name for S&R": "CLIPTextEncode",
82 "cnr_id": "comfy-core",
83 "ver": "0.3.65"
84 },
85 "widgets_values": [
86 "text, watermark"
87 ],
88 "color": "#223",
89 "bgcolor": "#335"
90 },
91 {
92 "id": 34,
93 "type": "LoadImage",
94 "pos": [
95 -480,
96 110
97 ],
98 "size": [
99 330,
100 340
101 ],
102 "flags": [],
103 "order": 1,
104 "mode": 0,
105 "inputs": [],
106 "outputs": [
107 {
108 "name": "IMAGE",
109 "type": "IMAGE",
110 "slot_index": 0,
111 "links": [
112 95
113 ]
114 },
115 {
116 "name": "MASK",
117 "type": "MASK",
118 "links": null
119 }
120 ],
121 "properties": {
122 "Node name for S&R": "LoadImage",
123 "cnr_id": "comfy-core",
124 "ver": "0.3.65"
125 },
126 "widgets_values": [
127 "sdxl_revision_text_prompts_ref_image1.png",
128 "image"
129 ]
130 },
131 {
132 "id": 13,
133 "type": "CLIPVisionEncode",
134 "pos": [
135 -480,
136 490
137 ],
138 "size": [
139 330,
140 78
141 ],
142 "flags": [],
143 "order": 6,
144 "mode": 0,
145 "inputs": [
146 {
147 "name": "clip_vision",
148 "type": "CLIP_VISION",
149 "link": 101
150 },
151 {
152 "name": "image",
153 "type": "IMAGE",
154 "link": 95
155 }
156 ],
157 "outputs": [
158 {
159 "name": "CLIP_VISION_OUTPUT",
160 "type": "CLIP_VISION_OUTPUT",
161 "slot_index": 0,
162 "links": [
163 24
164 ]
165 }
166 ],
167 "properties": {
168 "Node name for S&R": "CLIPVisionEncode",
169 "cnr_id": "comfy-core",
170 "ver": "0.3.65"
171 },
172 "widgets_values": [
173 "center"
174 ]
175 },
176 {
177 "id": 19,
178 "type": "unCLIPConditioning",
179 "pos": [
180 -480,
181 610
182 ],
183 "size": [
184 330,
185 102
186 ],
187 "flags": [],
188 "order": 10,
189 "mode": 0,
190 "inputs": [
191 {
192 "name": "conditioning",
193 "type": "CONDITIONING",
194 "link": 23
195 },
196 {
197 "name": "clip_vision_output",
198 "type": "CLIP_VISION_OUTPUT",
199 "link": 24
200 }
201 ],
202 "outputs": [
203 {
204 "name": "CONDITIONING",
205 "type": "CONDITIONING",
206 "slot_index": 0,
207 "links": [
208 96
209 ]
210 }
211 ],
212 "properties": {
213 "Node name for S&R": "unCLIPConditioning",
214 "cnr_id": "comfy-core",
215 "ver": "0.3.65"
216 },
217 "widgets_values": [
218 0.75,
219 0
220 ]
221 },
222 {
223 "id": 36,
224 "type": "CLIPVisionEncode",
225 "pos": [
226 -70,
227 490
228 ],
229 "size": [
230 340,
231 78
232 ],
233 "flags": [],
234 "order": 9,
235 "mode": 0,
236 "inputs": [
237 {
238 "name": "clip_vision",
239 "type": "CLIP_VISION",
240 "link": 102
241 },
242 {
243 "name": "image",
244 "type": "IMAGE",
245 "link": 98
246 }
247 ],
248 "outputs": [
249 {
250 "name": "CLIP_VISION_OUTPUT",
251 "type": "CLIP_VISION_OUTPUT",
252 "slot_index": 0,
253 "links": [
254 100
255 ]
256 }
257 ],
258 "properties": {
259 "Node name for S&R": "CLIPVisionEncode",
260 "cnr_id": "comfy-core",
261 "ver": "0.3.65"
262 },
263 "widgets_values": [
264 "center"
265 ]
266 },
267 {
268 "id": 37,
269 "type": "unCLIPConditioning",
270 "pos": [
271 -70,
272 610
273 ],
274 "size": [
275 340,
276 102
277 ],
278 "flags": [],
279 "order": 11,
280 "mode": 0,
281 "inputs": [
282 {
283 "name": "conditioning",
284 "type": "CONDITIONING",
285 "link": 96
286 },
287 {
288 "name": "clip_vision_output",
289 "type": "CLIP_VISION_OUTPUT",
290 "link": 100
291 }
292 ],
293 "outputs": [
294 {
295 "name": "CONDITIONING",
296 "type": "CONDITIONING",
297 "slot_index": 0,
298 "links": [
299 97
300 ]
301 }
302 ],
303 "properties": {
304 "Node name for S&R": "unCLIPConditioning",
305 "cnr_id": "comfy-core",
306 "ver": "0.3.65"
307 },
308 "widgets_values": [
309 0.75,
310 0
311 ]
312 },
313 {
314 "id": 40,
315 "type": "CheckpointLoaderSimple",
316 "pos": [
317 -470,
318 -400
319 ],
320 "size": [
321 315,
322 98
323 ],
324 "flags": [],
325 "order": 2,
326 "mode": 0,
327 "inputs": [],
328 "outputs": [
329 {
330 "name": "MODEL",
331 "type": "MODEL",
332 "slot_index": 0,
333 "links": [
334 103
335 ]
336 },
337 {
338 "name": "CLIP",
339 "type": "CLIP",
340 "slot_index": 1,
341 "links": [
342 104,
343 105
344 ]
345 },
346 {
347 "name": "VAE",
348 "type": "VAE",
349 "slot_index": 2,
350 "links": [
351 106
352 ]
353 }
354 ],
355 "properties": {
356 "Node name for S&R": "CheckpointLoaderSimple",
357 "cnr_id": "comfy-core",
358 "ver": "0.3.65",
359 "models": [
360 {
361 "name": "sd_xl_base_1.0.safetensors",
362 "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors?download=true",
363 "directory": "checkpoints"
364 }
365 ]
366 },
367 "widgets_values": [
368 "sd_xl_base_1.0.safetensors"
369 ]
370 },
371 {
372 "id": 5,
373 "type": "EmptyLatentImage",
374 "pos": [
375 -480,
376 -90
377 ],
378 "size": [
379 340,
380 106
381 ],
382 "flags": [],
383 "order": 3,
384 "mode": 0,
385 "inputs": [],
386 "outputs": [
387 {
388 "name": "LATENT",
389 "type": "LATENT",
390 "slot_index": 0,
391 "links": [
392 2
393 ]
394 }
395 ],
396 "properties": {
397 "Node name for S&R": "EmptyLatentImage",
398 "cnr_id": "comfy-core",
399 "ver": "0.3.65"
400 },
401 "widgets_values": [
402 1024,
403 1024,
404 1
405 ]
406 },
407 {
408 "id": 38,
409 "type": "LoadImage",
410 "pos": [
411 -60,
412 110
413 ],
414 "size": [
415 330,
416 340
417 ],
418 "flags": [],
419 "order": 4,
420 "mode": 0,
421 "inputs": [],
422 "outputs": [
423 {
424 "name": "IMAGE",
425 "type": "IMAGE",
426 "slot_index": 0,
427 "links": [
428 98
429 ]
430 },
431 {
432 "name": "MASK",
433 "type": "MASK",
434 "links": null
435 }
436 ],
437 "properties": {
438 "Node name for S&R": "LoadImage",
439 "cnr_id": "comfy-core",
440 "ver": "0.3.65"
441 },
442 "widgets_values": [
443 "sdxl_revision_text_prompts_ref_image2.png",
444 "image"
445 ]
446 },
447 {
448 "id": 3,
449 "type": "KSampler",
450 "pos": [
451 370,
452 -430
453 ],
454 "size": [
455 310,
456 474
457 ],
458 "flags": [],
459 "order": 12,
460 "mode": 0,
461 "inputs": [
462 {
463 "name": "model",
464 "type": "MODEL",
465 "link": 103
466 },
467 {
468 "name": "positive",
469 "type": "CONDITIONING",
470 "link": 97
471 },
472 {
473 "name": "negative",
474 "type": "CONDITIONING",
475 "link": 6
476 },
477 {
478 "name": "latent_image",
479 "type": "LATENT",
480 "link": 2
481 }
482 ],
483 "outputs": [
484 {
485 "name": "LATENT",
486 "type": "LATENT",
487 "slot_index": 0,
488 "links": [
489 7
490 ]
491 }
492 ],
493 "properties": {
494 "Node name for S&R": "KSampler",
495 "cnr_id": "comfy-core",
496 "ver": "0.3.65"
497 },
498 "widgets_values": [
499 900749379955168,
500 "randomize",
501 26,
502 8,
503 "dpmpp_3m_sde_gpu",
504 "exponential",
505 1
506 ]
507 },
508 {
509 "id": 9,
510 "type": "SaveImage",
511 "pos": [
512 710,
513 -420
514 ],
515 "size": [
516 635.1900024414062,
517 692.8200073242188
518 ],
519 "flags": [],
520 "order": 14,
521 "mode": 0,
522 "inputs": [
523 {
524 "name": "images",
525 "type": "IMAGE",
526 "link": 9
527 }
528 ],
529 "outputs": [],
530 "properties": {
531 "cnr_id": "comfy-core",
532 "ver": "0.3.65"
533 },
534 "widgets_values": [
535 "ComfyUI"
536 ]
537 },
538 {
539 "id": 41,
540 "type": "MarkdownNote",
541 "pos": [
542 -960,
543 -440
544 ],
545 "size": [
546 460,
547 310
548 ],
549 "flags": [],
550 "order": 5,
551 "mode": 0,
552 "inputs": [],
553 "outputs": [],
554 "properties": [],
555 "widgets_values": [
556 "🛈 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/#revision)\n\n\n## Model links\n\n**checkpoints**\n\n- [sd_xl_base_1.0.safetensors](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors) (6.46 GB)\n\n**clip_vision**\n\n- [clip_vision_g.safetensors](https://huggingface.co/comfyanonymous/clip_vision_g/resolve/main/clip_vision_g.safetensors) (3.44 GB)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 checkpoints/\n│ │ └── sd_xl_base_1.0.safetensors\n│ └── 📂 clip_vision/\n│ └── clip_vision_g.safetensors\n```\n"
557 ],
558 "color": "#222",
559 "bgcolor": "#000"
560 },
561 {
562 "id": 8,
563 "type": "VAEDecode",
564 "pos": [
565 470,
566 90
567 ],
568 "size": [
569 210,
570 46
571 ],
572 "flags": [],
573 "order": 13,
574 "mode": 0,
575 "inputs": [
576 {
577 "name": "samples",
578 "type": "LATENT",
579 "link": 7
580 },
581 {
582 "name": "vae",
583 "type": "VAE",
584 "link": 106
585 }
586 ],
587 "outputs": [
588 {
589 "name": "IMAGE",
590 "type": "IMAGE",
591 "slot_index": 0,
592 "links": [
593 9
594 ]
595 }
596 ],
597 "properties": {
598 "Node name for S&R": "VAEDecode",
599 "cnr_id": "comfy-core",
600 "ver": "0.3.65"
601 },
602 "widgets_values": []
603 },
604 {
605 "id": 6,
606 "type": "CLIPTextEncode",
607 "pos": [
608 -110,
609 -400
610 ],
611 "size": [
612 422.8500061035156,
613 164.30999755859375
614 ],
615 "flags": [],
616 "order": 7,
617 "mode": 0,
618 "inputs": [
619 {
620 "name": "clip",
621 "type": "CLIP",
622 "link": 104
623 }
624 ],
625 "outputs": [
626 {
627 "name": "CONDITIONING",
628 "type": "CONDITIONING",
629 "slot_index": 0,
630 "links": [
631 23
632 ]
633 }
634 ],
635 "properties": {
636 "Node name for S&R": "CLIPTextEncode",
637 "cnr_id": "comfy-core",
638 "ver": "0.3.65"
639 },
640 "widgets_values": [
641 "car, city, anime style"
642 ],
643 "color": "#232",
644 "bgcolor": "#353"
645 }
646 ],
647 "links": [
648 [
649 2,
650 5,
651 0,
652 3,
653 3,
654 "LATENT"
655 ],
656 [
657 6,
658 7,
659 0,
660 3,
661 2,
662 "CONDITIONING"
663 ],
664 [
665 7,
666 3,
667 0,
668 8,
669 0,
670 "LATENT"
671 ],
672 [
673 9,
674 8,
675 0,
676 9,
677 0,
678 "IMAGE"
679 ],
680 [
681 23,
682 6,
683 0,
684 19,
685 0,
686 "CONDITIONING"
687 ],
688 [
689 24,
690 13,
691 0,
692 19,
693 1,
694 "CLIP_VISION_OUTPUT"
695 ],
696 [
697 95,
698 34,
699 0,
700 13,
701 1,
702 "IMAGE"
703 ],
704 [
705 96,
706 19,
707 0,
708 37,
709 0,
710 "CONDITIONING"
711 ],
712 [
713 97,
714 37,
715 0,
716 3,
717 1,
718 "CONDITIONING"
719 ],
720 [
721 98,
722 38,
723 0,
724 36,
725 1,
726 "IMAGE"
727 ],
728 [
729 100,
730 36,
731 0,
732 37,
733 1,
734 "CLIP_VISION_OUTPUT"
735 ],
736 [
737 101,
738 39,
739 0,
740 13,
741 0,
742 "CLIP_VISION"
743 ],
744 [
745 102,
746 39,
747 0,
748 36,
749 0,
750 "CLIP_VISION"
751 ],
752 [
753 103,
754 40,
755 0,
756 3,
757 0,
758 "MODEL"
759 ],
760 [
761 104,
762 40,
763 1,
764 6,
765 0,
766 "CLIP"
767 ],
768 [
769 105,
770 40,
771 1,
772 7,
773 0,
774 "CLIP"
775 ],
776 [
777 106,
778 40,
779 2,
780 8,
781 1,
782 "VAE"
783 ]
784 ],
785 "groups": [
786 {
787 "id": 1,
788 "title": "Prompt",
789 "bounding": [
790 -120,
791 -470,
792 460,
793 490
794 ],
795 "color": "#3f789e",
796 "font_size": 24,
797 "flags": []
798 },
799 {
800 "id": 2,
801 "title": "Load models",
802 "bounding": [
803 -490,
804 -470,
805 360,
806 300
807 ],
808 "color": "#3f789e",
809 "font_size": 24,
810 "flags": []
811 },
812 {
813 "id": 3,
814 "title": "Reference images",
815 "bounding": [
816 -490,
817 40,
818 830,
819 690
820 ],
821 "color": "#3f789e",
822 "font_size": 24,
823 "flags": []
824 },
825 {
826 "id": 5,
827 "title": "Image size",
828 "bounding": [
829 -490,
830 -160,
831 360,
832 180
833 ],
834 "color": "#3f789e",
835 "font_size": 24,
836 "flags": []
837 }
838 ],
839 "config": [],
840 "extra": {
841 "ds": {
842 "scale": 0.7647939465671223,
843 "offset": [
844 827.0055244008744,
845 533.4359512624814
846 ]
847 },
848 "frontendVersion": "1.29.2",
849 "VHS_latentpreview": false,
850 "VHS_latentpreviewrate": 0,
851 "VHS_MetadataImage": true,
852 "VHS_KeepIntermediate": true
853 },
854 "version": 0.4
855}