工作流 /
图像 /
SD3.5大型Canny ControlNet

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