工作流 /
图像 /
Flux.1 Canny 模型

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