{"id":24258,"date":"2024-12-02T10:39:53","date_gmt":"2024-12-02T02:39:53","guid":{"rendered":"https:\/\/www.1ai.net\/?p=24258"},"modified":"2024-12-02T10:39:53","modified_gmt":"2024-12-02T02:39:53","slug":"%e6%9c%80%e5%bc%baai%e7%bb%98%e7%94%bb%e5%bc%80%e6%ba%90%e5%b7%a5%e5%85%b7flux%ef%bc%8c%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/24258.html","title":{"rendered":"The strongest AI painting open source tool FLUX, local deployment and installation tutorials"},"content":{"rendered":"<p>The previously released Stable Diffusion 3 model has been criticized for being over-audited, resulting in a \"regression\" in the ability to generate human structures.<\/p>\n<p>Now an excellent pinto has appeared, the Black Forest Laboratory's<a href=\"https:\/\/www.1ai.net\/en\/tag\/flux\" title=\"_OTHER ORGANISER\" target=\"_blank\" >FLUX<\/a>FLUX was released to rave reviews, and was named the \"strongest open source literate graph model\".<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24259\" title=\"d7e957dcj00snuhvd000td000u000dqm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/d7e957dcj00snuhvd000td000u000dqm.jpg\" alt=\"d7e957dcj00snuhvd000td000u000dqm\" width=\"1080\" height=\"494\" \/><\/p>\n<p>Compared to header closed-source tools such as Midjourney and DALLE, FLUX's performance is still respectable.<\/p>\n<p>FLUX currently supports<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a>Graphical User Interface, described next<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>The methodology:<\/p>\n<p><strong>Step 1: Install the latest version of ComfyUI<\/strong><\/p>\n<p>1. Go to the following URL: https:\/\/github.com\/comfyanonymous\/ComfyUI?tab=readme-ov-file#installing<\/p>\n<p>2. Click Direct link to download to download a zip file of about 1.5G.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24260\" title=\"e3715232j00snuhvd001yd000u000hpm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/e3715232j00snuhvd001yd000u000hpm.jpg\" alt=\"e3715232j00snuhvd001yd000u000hpm\" width=\"1080\" height=\"637\" \/><\/p>\n<p>3. Extract the zip package to your designated hard disk.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24261\" title=\"5580c696j00snuhvd000xd000gr00fim\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/5580c696j00snuhvd000xd000gr00fim.jpg\" alt=\"5580c696j00snuhvd000xd000gr00fim\" width=\"603\" height=\"558\" \/><\/p>\n<p>4. Enter the installed directory and run run_nvidia_gpu.bat, then the system will automatically download the necessary files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24263\" title=\"531cf483j00snuhvd0035d000u000wam\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/531cf483j00snuhvd0035d000u000wam.jpg\" alt=\"531cf483j00snuhvd0035d000u000wam\" width=\"1080\" height=\"1162\" \/><\/p>\n<p>5, after which will automatically pop up a web page similar to this, indicating that the installation was successful.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24262\" title=\"6e2c19a6j00snuhvd0015d000u000gvm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/6e2c19a6j00snuhvd0015d000u000gvm.jpg\" alt=\"6e2c19a6j00snuhvd0015d000u000gvm\" width=\"1080\" height=\"607\" \/><\/p>\n<p>Note: This background window should be kept open, otherwise ComfyUI will not work properly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24264\" title=\"877b0374j00snuhvd003bd000u000gim\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/877b0374j00snuhvd003bd000u000gim.jpg\" alt=\"877b0374j00snuhvd003bd000u000gim\" width=\"1080\" height=\"594\" \/><\/p>\n<p><strong>Step 2: Download the FLUX model<\/strong><\/p>\n<p>1. Go to FLUX's hug face page: https:\/\/huggingface.co\/black-forest-labs\/FLUX.1-dev\/tree\/main and click the Files button:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24265\" title=\"6a0e9c33j00snuhvd0015d000ri00d0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/6a0e9c33j00snuhvd0015d000ri00d0m.jpg\" alt=\"6a0e9c33j00snuhvd0015d000ri00d0m\" width=\"990\" height=\"468\" \/><\/p>\n<p>2. In the file list, download the master model file and the VAE self-encoder:<br \/>\nflux1-dev.sft: 23.8 GB, put this file in the ComfyUI\/models\/unet\/ directory<br \/>\nae.safetensors: 335 MB, put this file in the ComfyUI\/models\/vae\/ directory<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24266\" title=\"13211701j00snuhvd001fd000ml00kum\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/13211701j00snuhvd001fd000ml00kum.jpg\" alt=\"13211701j00snuhvd001fd000ml00kum\" width=\"813\" height=\"750\" \/><\/p>\n<p>3. Enter the ComfyUI Hugging Face page: https:\/\/huggingface.co\/comfyanonymous\/flux_text_encoders\/tree\/main<\/p>\n<p>4. In the file list, download the CLIP pre-training model:<br \/>\nt5xxl_fp16.safetensors: 9.79 GB<br \/>\nt5xxl_fp8_e4m3fn.safetensors: 4.89 GB<br \/>\nclip_l.safetensors: 246 MB<br \/>\nAll of the above files are placed in the ComfyUI\/models\/clip\/ directory, with at least one of the 9GB and 4GB files downloaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24268\" title=\"f6c7eccej00snuhvd001cd000u000ffm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/f6c7eccej00snuhvd001cd000u000ffm.jpg\" alt=\"f6c7eccej00snuhvd001cd000u000ffm\" width=\"1080\" height=\"555\" \/><\/p>\n<p>5. Go to the following URL: https:\/\/openart.ai\/workflows\/maitruclam\/comfyui-workflow-for-flux-simple\/iuRdGnfzmTbOOzONIiVV and click the Download button on the right to download the workflow.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24267\" title=\"96a7403aj00snuhvd000ad000js0063m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/96a7403aj00snuhvd000ad000js0063m.jpg\" alt=\"96a7403aj00snuhvd000ad000js0063m\" width=\"712\" height=\"219\" \/><\/p>\n<p>6. Drag the workflow file onto the ComfyUI page to get the result shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24269\" title=\"825bcf3aj00snuhvd000ud000u000edm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/825bcf3aj00snuhvd000ud000u000edm.jpg\" alt=\"825bcf3aj00snuhvd000ud000u000edm\" width=\"1080\" height=\"517\" \/><\/p>\n<p>7. Make sure you have selected the correct model and encoder (refer to the picture below) and then you can start painting!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24270\" title=\"caa9520aj00snuhvd000od000e700b9m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/caa9520aj00snuhvd000od000e700b9m.jpg\" alt=\"caa9520aj00snuhvd000od000e700b9m\" width=\"511\" height=\"405\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24271\" title=\"8746cdf5j00snuhvd0007d000dz004fm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/8746cdf5j00snuhvd0007d000dz004fm.jpg\" alt=\"8746cdf5j00snuhvd0007d000dz004fm\" width=\"503\" height=\"159\" \/><\/p>\n<p>It should be noted that FLUX has high hardware requirements. During the test, it took up to nearly 30G of RAM:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24272\" title=\"6f7e44c1j00snuhvd000xd000n9009rm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/6f7e44c1j00snuhvd000xd000n9009rm.jpg\" alt=\"6f7e44c1j00snuhvd000xd000n9009rm\" width=\"837\" height=\"351\" \/><\/p>\n<p>FLUX IS ALSO SLOW, I.E. USING 4090 \u039cC, DEFAULT SETTING, GENERATING AN IMAGE OF 1024 X 1024, FOR MORE THAN 20 SECONDS:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24273\" title=\"6786d4c7j00snuhvd000id000qj003xm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/12\/6786d4c7j00snuhvd000id000qj003xm.jpg\" alt=\"6786d4c7j00snuhvd000id000qj003xm\" width=\"955\" height=\"141\" \/><\/p>\n<p>But considering the increased odds of a one-time success, slow seems acceptable?<\/p>\n<p>The article covers the URL:<\/p>\n<p>FLUX's Github page:<br \/>\nhttps:\/\/github.com\/black-forest-labs\/flux<\/p>\n<p>ComfyUI's Github page:<br \/>\nhttps:\/\/github.com\/comfyanonymous\/ComfyUI<\/p>","protected":false},"excerpt":{"rendered":"<p>Previously released Stable Diffusion 3 model, because of excessive auditing, resulting in the generation of human structure \"regression\", was sprayed a lot. Now an excellent flat replacement has appeared, that is, the Black Forest Labs FLUX model, the team consists of former core members of Stability AI. FLUX was released, the praise was overwhelming, was named \"the strongest open source literate map model\". Compared with the head of closed-source tools such as Midjourney, DALLE, FLUX's performance is still remarkable. FLUX currently supports ComfyUI graphical user interface, the next introduction to the local deployment of the method: Step 1: Installation of the latest version of ComfyUI 1, enter the following URL: https:\/\/githu<\/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,1138,220,2852],"collection":[],"class_list":["post-24258","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-comfyui","tag-flux","tag-1138","tag-220","tag-2852"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/24258","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=24258"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/24258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=24258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=24258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=24258"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=24258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}