stablediffusiontutorials/Flux-workflows
1. FLUX Installation Tutorial on ComfyUI/ForgeUI (Native/GGUF/NF4 variant): π https://www.stablediffusiontutorials.com/2024/08/flux-installation.html 2. Flux Kontext Installation + Workflow (Native/GGUF):π https://www.stablediffusiontutorials.com/2025/06/flux-kontext.html 3. Flux Kontext Dev LoRA Training on Windows/Linux:π https://www.stablediffusiontutorials.com/2025/06/train-flux-kontext-lora.html 4. Train Flux Dev/Schnell LoRA onβ¦ See the full description on the dataset page: https://huggingface.co/datasets/stablediffusiontutorials/Flux-workflows.
4302
1{2 "last_node_id": 72,3 "last_link_id": 108,4 "nodes": [5 {6 "id": 10,7 "type": "VAELoader",8 "pos": [9 26,10 37911 ],12 "size": {13 "0": 315,14 "1": 5815 },16 "flags": {},17 "order": 0,18 "mode": 0,19 "outputs": [20 {21 "name": "VAE",22 "type": "VAE",23 "links": [24 1225 ],26 "shape": 3,27 "slot_index": 028 }29 ],30 "properties": {31 "Node name for S&R": "VAELoader"32 },33 "widgets_values": [34 "flux-ae.sft"35 ]36 },37 {38 "id": 6,39 "type": "CLIPTextEncode",40 "pos": [41 424.71875,42 618.05200195312543 ],44 "size": {45 "0": 210,46 "1": 5447 },48 "flags": {49 "collapsed": false50 },51 "order": 12,52 "mode": 0,53 "inputs": [54 {55 "name": "clip",56 "type": "CLIP",57 "link": 10858 },59 {60 "name": "text",61 "type": "STRING",62 "link": 47,63 "widget": {64 "name": "text"65 },66 "slot_index": 167 }68 ],69 "outputs": [70 {71 "name": "CONDITIONING",72 "type": "CONDITIONING",73 "links": [74 8675 ],76 "slot_index": 077 }78 ],79 "properties": {80 "Node name for S&R": "CLIPTextEncode"81 },82 "widgets_values": [83 ""84 ]85 },86 {87 "id": 17,88 "type": "BasicScheduler",89 "pos": [90 797,91 9492 ],93 "size": {94 "0": 281.2428283691406,95 "1": 10696 },97 "flags": {},98 "order": 15,99 "mode": 0,100 "inputs": [101 {102 "name": "model",103 "type": "MODEL",104 "link": 93,105 "slot_index": 0106 }107 ],108 "outputs": [109 {110 "name": "SIGMAS",111 "type": "SIGMAS",112 "links": [113 20114 ],115 "shape": 3116 }117 ],118 "properties": {119 "Node name for S&R": "BasicScheduler"120 },121 "widgets_values": [122 "simple",123 25,124 1125 ]126 },127 {128 "id": 25,129 "type": "RandomNoise",130 "pos": [131 424,132 236133 ],134 "size": {135 "0": 327.1990661621094,136 "1": 94.58134460449219137 },138 "flags": {},139 "order": 1,140 "mode": 0,141 "outputs": [142 {143 "name": "NOISE",144 "type": "NOISE",145 "links": [146 37147 ],148 "shape": 3149 }150 ],151 "properties": {152 "Node name for S&R": "RandomNoise"153 },154 "widgets_values": [155 940938147523441,156 "randomize"157 ]158 },159 {160 "id": 5,161 "type": "EmptyLatentImage",162 "pos": [163 422,164 101165 ],166 "size": {167 "0": 330.5548400878906,168 "1": 78169 },170 "flags": {},171 "order": 10,172 "mode": 0,173 "inputs": [174 {175 "name": "width",176 "type": "INT",177 "link": 101,178 "widget": {179 "name": "width"180 }181 },182 {183 "name": "height",184 "type": "INT",185 "link": 103,186 "widget": {187 "name": "height"188 }189 }190 ],191 "outputs": [192 {193 "name": "LATENT",194 "type": "LATENT",195 "links": [196 23197 ],198 "slot_index": 0199 }200 ],201 "properties": {202 "Node name for S&R": "EmptyLatentImage"203 },204 "widgets_values": [205 832,206 1216,207 1208 ]209 },210 {211 "id": 16,212 "type": "KSamplerSelect",213 "pos": [214 809,215 261216 ],217 "size": {218 "0": 268.2277526855469,219 "1": 58220 },221 "flags": {},222 "order": 2,223 "mode": 0,224 "outputs": [225 {226 "name": "SAMPLER",227 "type": "SAMPLER",228 "links": [229 19230 ],231 "shape": 3232 }233 ],234 "properties": {235 "Node name for S&R": "KSamplerSelect"236 },237 "widgets_values": [238 "euler"239 ]240 },241 {242 "id": 22,243 "type": "BasicGuider",244 "pos": [245 893.71875,246 612.052001953125247 ],248 "size": {249 "0": 196.9998779296875,250 "1": 62.66668701171875251 },252 "flags": {253 "collapsed": false254 },255 "order": 16,256 "mode": 0,257 "inputs": [258 {259 "name": "model",260 "type": "MODEL",261 "link": 94,262 "slot_index": 0263 },264 {265 "name": "conditioning",266 "type": "CONDITIONING",267 "link": 87,268 "slot_index": 1269 }270 ],271 "outputs": [272 {273 "name": "GUIDER",274 "type": "GUIDER",275 "links": [276 30277 ],278 "shape": 3,279 "slot_index": 0280 }281 ],282 "properties": {283 "Node name for S&R": "BasicGuider"284 }285 },286 {287 "id": 52,288 "type": "Note",289 "pos": [290 1148.09375,291 611.84375292 ],293 "size": {294 "0": 346.2236022949219,295 "1": 58296 },297 "flags": {},298 "order": 3,299 "mode": 0,300 "properties": {301 "text": ""302 },303 "widgets_values": [304 "To see the preview, update your ComfyUI and go into the Manager menu. Set \"Preview Method\" to \"Auto\""305 ],306 "color": "#432",307 "bgcolor": "#653"308 },309 {310 "id": 13,311 "type": "SamplerCustomAdvanced",312 "pos": [313 1143.2526348266601,314 89.17116156429053315 ],316 "size": {317 "0": 352.4039611816406,318 "1": 463.3393859863281319 },320 "flags": {},321 "order": 17,322 "mode": 0,323 "inputs": [324 {325 "name": "noise",326 "type": "NOISE",327 "link": 37,328 "slot_index": 0329 },330 {331 "name": "guider",332 "type": "GUIDER",333 "link": 30,334 "slot_index": 1335 },336 {337 "name": "sampler",338 "type": "SAMPLER",339 "link": 19,340 "slot_index": 2341 },342 {343 "name": "sigmas",344 "type": "SIGMAS",345 "link": 20,346 "slot_index": 3347 },348 {349 "name": "latent_image",350 "type": "LATENT",351 "link": 23,352 "slot_index": 4353 }354 ],355 "outputs": [356 {357 "name": "output",358 "type": "LATENT",359 "links": [360 24361 ],362 "shape": 3,363 "slot_index": 0364 },365 {366 "name": "denoised_output",367 "type": "LATENT",368 "links": null,369 "shape": 3370 }371 ],372 "properties": {373 "Node name for S&R": "SamplerCustomAdvanced"374 }375 },376 {377 "id": 53,378 "type": "Note",379 "pos": [380 381,381 738382 ],383 "size": {384 "0": 548.0299072265625,385 "1": 283.5565490722656386 },387 "flags": {},388 "order": 4,389 "mode": 0,390 "properties": {391 "text": ""392 },393 "widgets_values": [394 "The checkpoint goes in ComfyUI/models/unet (not checkpoints)\nDownload the original weights here:\nhttps://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/flux1-dev.sft\n\nDownload the fp8 version for <24gb vram systems:\nhttps://huggingface.co/Kijai/flux-fp8/blob/main/flux1-dev-fp8.safetensors\n\nText encoders go in ComfyUI/models/clip:\nhttps://huggingface.co/comfyanonymous/flux_text_encoders/tree/main\n\nVAE (ae.sft) goes in ComfyUI/models/vae:\nhttps://huggingface.co/black-forest-labs/FLUX.1-schnell/blob/main/ae.sft\n\nDownload the fp8 t5xxl for degraded quality but less RAM use\nLaunch ComfyUI with \"--lowvram\" arg (in the .bat file) to offload text encoder to CPU.\n\nI can confirm this runs on:\n- RTX 3090 (24gb) 1.29s/it\n- RTX 4070 (12gb) 85s/it\nBoth running the fp8 quantized version. The 4070 is very slow though."395 ],396 "color": "#432",397 "bgcolor": "#653"398 },399 {400 "id": 8,401 "type": "VAEDecode",402 "pos": [403 1546,404 88405 ],406 "size": {407 "0": 210,408 "1": 46409 },410 "flags": {},411 "order": 18,412 "mode": 0,413 "inputs": [414 {415 "name": "samples",416 "type": "LATENT",417 "link": 24418 },419 {420 "name": "vae",421 "type": "VAE",422 "link": 12423 }424 ],425 "outputs": [426 {427 "name": "IMAGE",428 "type": "IMAGE",429 "links": [430 9431 ],432 "slot_index": 0433 }434 ],435 "properties": {436 "Node name for S&R": "VAEDecode"437 }438 },439 {440 "id": 9,441 "type": "SaveImage",442 "pos": [443 1784,444 88445 ],446 "size": {447 "0": 399.1837463378906,448 "1": 508.5245666503906449 },450 "flags": {},451 "order": 19,452 "mode": 0,453 "inputs": [454 {455 "name": "images",456 "type": "IMAGE",457 "link": 9458 }459 ],460 "properties": {461 "Node name for S&R": "SaveImage"462 },463 "widgets_values": [464 "MarkuryFLUX"465 ]466 },467 {468 "id": 61,469 "type": "ModelSamplingFlux",470 "pos": [471 754,472 383473 ],474 "size": {475 "0": 321.8402404785156,476 "1": 122477 },478 "flags": {},479 "order": 13,480 "mode": 0,481 "inputs": [482 {483 "name": "model",484 "type": "MODEL",485 "link": 106486 },487 {488 "name": "width",489 "type": "INT",490 "link": 102,491 "widget": {492 "name": "width"493 }494 },495 {496 "name": "height",497 "type": "INT",498 "link": 104,499 "widget": {500 "name": "height"501 }502 }503 ],504 "outputs": [505 {506 "name": "MODEL",507 "type": "MODEL",508 "links": [509 93,510 94511 ],512 "shape": 3,513 "slot_index": 0514 }515 ],516 "properties": {517 "Node name for S&R": "ModelSamplingFlux"518 },519 "widgets_values": [520 1.15,521 0.5,522 1024,523 1024524 ]525 },526 {527 "id": 70,528 "type": "Int Literal",529 "pos": [530 25,531 495532 ],533 "size": {534 "0": 315,535 "1": 58536 },537 "flags": {},538 "order": 5,539 "mode": 0,540 "outputs": [541 {542 "name": "INT",543 "type": "INT",544 "links": [545 101,546 102547 ],548 "shape": 3,549 "slot_index": 0550 }551 ],552 "title": "Width",553 "properties": {554 "Node name for S&R": "Int Literal"555 },556 "widgets_values": [557 832558 ]559 },560 {561 "id": 71,562 "type": "Int Literal",563 "pos": [564 28,565 610566 ],567 "size": {568 "0": 315,569 "1": 58570 },571 "flags": {},572 "order": 6,573 "mode": 0,574 "outputs": [575 {576 "name": "INT",577 "type": "INT",578 "links": [579 103,580 104581 ],582 "shape": 3,583 "slot_index": 0584 }585 ],586 "title": "Height",587 "properties": {588 "Node name for S&R": "Int Literal"589 },590 "widgets_values": [591 1216592 ]593 },594 {595 "id": 28,596 "type": "String Literal",597 "pos": [598 26.53539400100708,599 790.6399047851561600 ],601 "size": {602 "0": 317.8795471191406,603 "1": 202.01535034179688604 },605 "flags": {},606 "order": 7,607 "mode": 0,608 "outputs": [609 {610 "name": "STRING",611 "type": "STRING",612 "links": [613 47614 ],615 "shape": 3,616 "slot_index": 0617 }618 ],619 "properties": {620 "Node name for S&R": "String Literal"621 },622 "widgets_values": [623 "A RAW 2000s photo of a majestic white cat, its fur glistening like seafoam as it swims gracefully under the surface of the water. The cat's eyes, like two shimmering opals, gaze upward. A school of tiny fish dart past its whiskers. The surrounding water is a mesmerizing swirl of turquoise and aquamarine, with subtle ripples and hints of coral pink. The overall scene is photographic and dynamic. The word \"LoRA\" is painted over it in big, white brush strokes with visible texture."624 ]625 },626 {627 "id": 60,628 "type": "FluxGuidance",629 "pos": [630 659,631 614632 ],633 "size": {634 "0": 211.60000610351562,635 "1": 58636 },637 "flags": {},638 "order": 14,639 "mode": 0,640 "inputs": [641 {642 "name": "conditioning",643 "type": "CONDITIONING",644 "link": 86645 }646 ],647 "outputs": [648 {649 "name": "CONDITIONING",650 "type": "CONDITIONING",651 "links": [652 87653 ],654 "shape": 3,655 "slot_index": 0656 }657 ],658 "properties": {659 "Node name for S&R": "FluxGuidance"660 },661 "widgets_values": [662 3.5663 ],664 "color": "#323",665 "bgcolor": "#535"666 },667 {668 "id": 72,669 "type": "LoraLoaderModelOnly",670 "pos": [671 419,672 403673 ],674 "size": {675 "0": 315,676 "1": 82677 },678 "flags": {},679 "order": 11,680 "mode": 0,681 "inputs": [682 {683 "name": "model",684 "type": "MODEL",685 "link": 107686 }687 ],688 "outputs": [689 {690 "name": "MODEL",691 "type": "MODEL",692 "links": [693 106694 ],695 "shape": 3,696 "slot_index": 0697 }698 ],699 "properties": {700 "Node name for S&R": "LoraLoaderModelOnly"701 },702 "widgets_values": [703 "0615-1500.safetensors",704 1705 ]706 },707 {708 "id": 12,709 "type": "UNETLoader",710 "pos": [711 18,712 84713 ],714 "size": {715 "0": 315,716 "1": 82717 },718 "flags": {},719 "order": 8,720 "mode": 0,721 "outputs": [722 {723 "name": "MODEL",724 "type": "MODEL",725 "links": [726 107727 ],728 "shape": 3,729 "slot_index": 0730 }731 ],732 "properties": {733 "Node name for S&R": "UNETLoader"734 },735 "widgets_values": [736 "flux1-dev-fp8.safetensors",737 "fp8_e4m3fn"738 ]739 },740 {741 "id": 11,742 "type": "DualCLIPLoader",743 "pos": [744 22,745 214746 ],747 "size": {748 "0": 315,749 "1": 106750 },751 "flags": {},752 "order": 9,753 "mode": 0,754 "outputs": [755 {756 "name": "CLIP",757 "type": "CLIP",758 "links": [759 108760 ],761 "shape": 3,762 "slot_index": 0763 }764 ],765 "properties": {766 "Node name for S&R": "DualCLIPLoader"767 },768 "widgets_values": [769 "t5xxl_fp16.safetensors",770 "clip_l.safetensors",771 "flux"772 ]773 }774 ],775 "links": [776 [777 9,778 8,779 0,780 9,781 0,782 "IMAGE"783 ],784 [785 12,786 10,787 0,788 8,789 1,790 "VAE"791 ],792 [793 19,794 16,795 0,796 13,797 2,798 "SAMPLER"799 ],800 [801 20,802 17,803 0,804 13,805 3,806 "SIGMAS"807 ],808 [809 23,810 5,811 0,812 13,813 4,814 "LATENT"815 ],816 [817 24,818 13,819 0,820 8,821 0,822 "LATENT"823 ],824 [825 30,826 22,827 0,828 13,829 1,830 "GUIDER"831 ],832 [833 37,834 25,835 0,836 13,837 0,838 "NOISE"839 ],840 [841 47,842 28,843 0,844 6,845 1,846 "STRING"847 ],848 [849 86,850 6,851 0,852 60,853 0,854 "CONDITIONING"855 ],856 [857 87,858 60,859 0,860 22,861 1,862 "CONDITIONING"863 ],864 [865 93,866 61,867 0,868 17,869 0,870 "MODEL"871 ],872 [873 94,874 61,875 0,876 22,877 0,878 "MODEL"879 ],880 [881 101,882 70,883 0,884 5,885 0,886 "INT"887 ],888 [889 102,890 70,891 0,892 61,893 1,894 "INT"895 ],896 [897 103,898 71,899 0,900 5,901 1,902 "INT"903 ],904 [905 104,906 71,907 0,908 61,909 2,910 "INT"911 ],912 [913 106,914 72,915 0,916 61,917 0,918 "MODEL"919 ],920 [921 107,922 12,923 0,924 72,925 0,926 "MODEL"927 ],928 [929 108,930 11,931 0,932 6,933 0,934 "CLIP"935 ]936 ],937 "groups": [938 {939 "title": "Load FLUX.1",940 "bounding": [941 1,942 2,943 369,944 693945 ],946 "color": "#3f789e",947 "font_size": 24,948 "locked": false949 },950 {951 "title": "Set Parameters",952 "bounding": [953 379,954 0,955 733,956 526957 ],958 "color": "#3f789e",959 "font_size": 24,960 "locked": false961 },962 {963 "title": "FLUX Prompt",964 "bounding": [965 1,966 704,967 368,968 318969 ],970 "color": "#3f789e",971 "font_size": 24,972 "locked": false973 },974 {975 "title": "Conditioning",976 "bounding": [977 379,978 535,979 732,980 159981 ],982 "color": "#3f789e",983 "font_size": 24,984 "locked": false985 },986 {987 "title": "1st Pass",988 "bounding": [989 1119,990 0,991 402,992 693993 ],994 "color": "#3f789e",995 "font_size": 24,996 "locked": false997 }998 ],999 "config": {},1000 "extra": {1001 "ds": {1002 "scale": 0.9849732675807629,1003 "offset": [1004 -551.3304077033006,1005 106.388811392764621006 ]1007 }1008 },1009 "version": 0.41010}