{"id":18204,"date":"2024-08-18T10:05:39","date_gmt":"2024-08-18T02:05:39","guid":{"rendered":"https:\/\/www.1ai.net\/?p=18204"},"modified":"2024-08-18T10:05:39","modified_gmt":"2024-08-18T02:05:39","slug":"comfyui-%e6%95%99%e7%a8%8b%ef%bc%8c%e5%a6%82%e4%bd%95%e5%9c%a8%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2comfyui-flux-1%e5%b7%a5%e4%bd%9c%e6%b5%81%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/18204.html","title":{"rendered":"ComfyUI tutorial, how to deploy ComfyUI Flux.1 workflow locally?"},"content":{"rendered":"<p>I have shared some online experiences with you before.<a href=\"https:\/\/www.1ai.net\/en\/tag\/flux%e6%a8%a1%e5%9e%8b\" title=\"_Other Organiser\" target=\"_blank\" >Flux Model<\/a>website.<\/p>\n<p><a href=\"https:\/\/www.1ai.net\/en\/17942.html\/\">Flux [Basics]: Share some websites where you can experience the Flux.1 model online<\/a><\/p>\n<p>Today we will share how to<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2\" title=\"_Other Organiser\" target=\"_blank\" >Local deployment<\/a><a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a> Flux.1 workflow. We will take the following typical ComfyUI Flux.1 workflow as an example to explain in detail (the workflow can be obtained by the network disk address at the end of the article).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18205\" title=\"500bffc5j00sie5kz003ld000u000cam\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/500bffc5j00sie5kz003ld000u000cam.jpg\" alt=\"500bffc5j00sie5kz003ld000u000cam\" width=\"1080\" height=\"442\" \/><\/p>\n<p>Related instructions: If ComfyUI is not the latest version, you need to update ComfyUI to the latest version first.<\/p>\n<p><strong>1. Download Flux.1 model<\/strong><\/p>\n<p><strong>dev version<\/strong><\/p>\n<blockquote>\n<ul>\n<li><strong>flux1-dev(23.8G)<\/strong>\uff1ahttps:\/\/huggingface.co\/black-forest-labs\/<a href=\"https:\/\/www.1ai.net\/en\/tag\/flux\" title=\"_OTHER ORGANISER\" target=\"_blank\" >FLUX<\/a>.1-dev\/tree\/main<\/li>\n<li><strong>flux1-fp8-dev (11.9G)<\/strong>: https:\/\/huggingface.co\/Kijai\/flux-fp8\/tree\/main<\/li>\n<\/ul>\n<\/blockquote>\n<p><strong>Schnell version<\/strong><\/p>\n<blockquote>\n<ul>\n<li><strong>flux1-schnell(23.8G)<\/strong>: https:\/\/huggingface.co\/black-forest-labs\/FLUX.1-schnell\/tree\/main<\/li>\n<li><strong>flux1-fp8-schnell (11.9G)<\/strong>: https:\/\/huggingface.co\/Kijai\/flux-fp8\/tree\/main<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18206\" title=\"682ec876j00sie5kz000pd000u0008pm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/682ec876j00sie5kz000pd000u0008pm.jpg\" alt=\"682ec876j00sie5kz000pd000u0008pm\" width=\"1080\" height=\"313\" \/><\/p>\n<p><strong>It is recommended to download the large model of flux1-fp8-dev version. Put the downloaded large model in the ComfyUI\\models\\unet directory.<\/strong><\/p>\n<p>Currently, the flux1-fp8-dev version of the model can also be downloaded from the LiblibAI website.<\/p>\n<blockquote>\n<ul>\n<li>LiblibAI: https:\/\/www.liblib.art\/modelinfo\/488cd9d58cd4421b9e8000373d7da123<\/li>\n<\/ul>\n<\/blockquote>\n<p><strong>2. Download the CLIP model<\/strong><\/p>\n<blockquote>\n<ul>\n<li>https:\/\/huggingface.co\/comfyanonymous\/flux_text_encoders\/tree\/main<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18207\" title=\"84984e97j00sie5kz000qd000u0008cm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/84984e97j00sie5kz000qd000u0008cm.jpg\" alt=\"84984e97j00sie5kz000qd000u0008cm\" width=\"1080\" height=\"300\" \/><\/p>\n<p>Download t5xxl_fp8_e4m3fn.safetensors(4.89 GB) and clip_l.safetensors(246 MB) files and place them in \\ComfyUI\\models\\clip directory.<\/p>\n<p><strong>3. Download the VAE model<\/strong><\/p>\n<blockquote>\n<ul>\n<li>https:\/\/huggingface.co\/black-forest-labs\/FLUX.1-dev\/tree\/main<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18208\" title=\"32ea7c75j00sie5kz0012d000u000c2m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/32ea7c75j00sie5kz0012d000u000c2m.jpg\" alt=\"32ea7c75j00sie5kz0012d000u000c2m\" width=\"1080\" height=\"434\" \/><\/p>\n<p>Download the ae.safetensors(335M) file and place it in the \\ComfyUI\\models\\vae directory.<\/p>\n<p><strong>4. Download the LORA model<\/strong><\/p>\n<blockquote>\n<ul>\n<li>https:\/\/huggingface.co\/XLabs-AI\/flux-lora-collection\/tree\/main<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18209\" title=\"5bafb413j00sie5kz001vd000u000cvm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/5bafb413j00sie5kz001vd000u000cvm.jpg\" alt=\"5bafb413j00sie5kz001vd000u000cvm\" width=\"1080\" height=\"463\" \/><\/p>\n<p>Currently, Flux.1 has released 7 loars, including animation, art, Disney, MJV6, plush, realistic, and landscape. Download the required loar model files and place them in the ComfyUI\\models\\loras directory.<\/p>\n<p><strong>5. Use workflow<\/strong><\/p>\n<p>Click ComfyUI to start the script file, click \"load\" on the main interface and load the workflow file\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18210\" title=\"2aa5b1aej00sie5kz000xd000u000d2m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/2aa5b1aej00sie5kz000xd000u000d2m.jpg\" alt=\"2aa5b1aej00sie5kz000xd000u000d2m\" width=\"1080\" height=\"470\" \/><\/p>\n<p>At this point, the ComfyUI workflow of Flux.1 can be applied.<\/p>\n<p>With the local installation and deployment configuration of Flux.1, we can also load similar workflows related to Flux.1 ComfyUI.<\/p>\n<p>For example: Log in to the ComfyUI_examples website<\/p>\n<blockquote>\n<ul>\n<li>https:\/\/comfyanonymous.github.io\/ComfyUI_examples\/flux\/<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18211\" title=\"a80edbffj00sie5kz002pd000qj00s5m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/a80edbffj00sie5kz002pd000qj00s5m.jpg\" alt=\"a80edbffj00sie5kz002pd000qj00s5m\" width=\"955\" height=\"1013\" \/><\/p>\n<p>Just drag the image into the main interface of ComfyUI, it will automatically parse the image and generate the corresponding workflow. We found that the workflow is roughly the same as the above workflow.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18212\" title=\"fd724d9bj00sie5kz001ad000u000jrm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/fd724d9bj00sie5kz001ad000u000jrm.jpg\" alt=\"fd724d9bj00sie5kz001ad000u000jrm\" width=\"1080\" height=\"711\" \/><\/p>\n<p>When executing the above workflow, we found that an error will be reported.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18213\" title=\"ed5f3c5cj00sie5kz001bd000u000hsm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ed5f3c5cj00sie5kz001bd000u000hsm.jpg\" alt=\"ed5f3c5cj00sie5kz001bd000u000hsm\" width=\"1080\" height=\"640\" \/><\/p>\n<p>The main reason is that the version of the Flux.1 model is inconsistent. We only need to click on the model option and replace it with the model we downloaded locally, and it will run normally.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18214\" title=\"5cd23dafj00sie5kz0023d000u000kxm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/5cd23dafj00sie5kz0023d000u000kxm.jpg\" alt=\"5cd23dafj00sie5kz0023d000u000kxm\" width=\"1080\" height=\"753\" \/><\/p>\n<p>Okay, that\u2019s all for today\u2019s sharing. I hope that what I shared today will be helpful to you.<\/p>\n<p>The model and workflow are placed in the network disk, and those who are interested can take them!<\/p>\n<p>https:\/\/pan.quark.cn\/s\/b3df771404e2<\/p>","protected":false},"excerpt":{"rendered":"<p>Previously, we have shared with you some websites where you can experience Flux models online. Flux [Basic]: share some online experience Flux.1 model of the site Today we share how to deploy ComfyUI Flux.1 workflow in the local. We take the following a more typical ComfyUI Flux.1 workflow as an example to explain in detail (workflow at the end of the article can be obtained from the address of the network disk). Note: If ComfyUI is not the latest version, you need to update ComfyUI to the latest version first. 1. Flux.1 model download dev version flux1-dev (23.8G): https:\/\/huggingface.co\/black-forest<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[1989,3853,3878,2852],"collection":[],"class_list":{"0":"post-18204","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-comfyui","9":"tag-flux","11":"tag-2852"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/18204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=18204"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/18204\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=18204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=18204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=18204"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=18204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}