{"id":15997,"date":"2024-07-20T09:36:58","date_gmt":"2024-07-20T01:36:58","guid":{"rendered":"https:\/\/www.1ai.net\/?p=15997"},"modified":"2024-07-20T09:36:58","modified_gmt":"2024-07-20T01:36:58","slug":"%e4%bb%a5comfyui%e4%b8%ba%e4%be%8b%ef%bc%8c%e5%a6%82%e4%bd%95%e5%9c%a8comfyui%e5%b9%b3%e5%8f%b0%e4%b8%8a%e5%ae%89%e8%a3%85%e5%b9%b6%e9%85%8d%e7%bd%aeinsightface","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/15997.html","title":{"rendered":"Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"1 1 []\"><a href=\"https:\/\/www.1ai.net\/en\/tag\/insightface\" title=\"[See articles with [Insightface] labels]\" target=\"_blank\" >Insightface<\/a>It is very important for comfyui<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8f%92%e4%bb%b6\" title=\"[See articles with [plug-in] labels]\" target=\"_blank\" >Plugins<\/a>Without insightface, our IP-adapter or InstantID cannot be used, so everyone must install it.<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"12\">Manual installation method<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"13\">Step 1: Download the InsightFace file<\/h1>\n<p data-track=\"14\">First, access the following GitHub repository:<\/p>\n<p data-track=\"15\">https:\/\/github.com\/Gourieff\/Assets\/tree\/main\/Insightface<\/p>\n<p data-track=\"16\">In this repository, you can see multiple versions of InsightFace files. Select the corresponding file to download according to your Python version. For example, if your Python version is 3.10, download the corresponding file.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15998\" title=\"get-577\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-577.jpg\" alt=\"get-577\" width=\"745\" height=\"353\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"17\">Step 2: Check Python version<\/h1>\n<p data-track=\"18\">To check your Python version, enter<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a>Double-click the virtual environment icon to open a terminal window. In the terminal, you can see the Python version number.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15999\" title=\"get-578\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-578.jpg\" alt=\"get-578\" width=\"782\" height=\"639\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16000\" title=\"get-579\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-579.jpg\" alt=\"get-579\" width=\"800\" height=\"429\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"19\">Step 3: Download and install<\/h1>\n<ol start=\"1\">\n<li data-track=\"20\"><strong>Select download path<\/strong>: Save the downloaded file to the same directory as the python.exe file you just opened. Make sure the path does not contain Chinese characters to avoid potential errors.<\/li>\n<\/ol>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16001\" title=\"get-580\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-580.jpg\" alt=\"get-580\" width=\"749\" height=\"471\" \/><\/div>\n<ol start=\"1\">\n<li data-track=\"21\"><strong>Enter the ComfyUI root directory<\/strong>: Open the terminal and enter the command line to enter the root directory of ComfyUI.<\/li>\n<\/ol>\n<p data-track=\"22\">We enter the following command<\/p>\n<pre><code>python.exe -m pip install insightface<\/code><\/pre>\n<p data-track=\"24\">If the previous installation failed, please uninstall first:<\/p>\n<p data-track=\"25\">python.exe -m pip uninstall insightface<\/p>\n<p data-track=\"26\">Then update pip:<\/p>\n<p data-track=\"27\">python.exe -m pip install -U pip<\/p>\n<p data-track=\"28\">Reinstall InsightFace via whl file:<\/p>\n<p data-track=\"29\">python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl<\/p>\n<p data-track=\"30\">After successful installation, there will be insightface files in our python_embeded folder<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16002\" title=\"get-581\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-581.jpg\" alt=\"get-581\" width=\"749\" height=\"332\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"31\">Installation method of Autumn Leaf Starter<\/h1>\n<p data-track=\"32\">It is relatively simple to install using the Autumn Leaf Launcher. Just follow the steps in the picture below. If the installation of the Autumn Leaf Launcher fails, you can also use the manual method above to install it.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16003\" title=\"get-582\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-582.jpg\" alt=\"get-582\" width=\"765\" height=\"480\" \/><\/div>\n<p data-track=\"33\">The above is the installation method of InsightFace.<\/p>","protected":false},"excerpt":{"rendered":"<p>Insightface is a very important plugin for comfyui, without insightface our IP-adapter or InstantID can not be used, so you must install it. Manual installation method Step 1: Download InsightFace file First, visit the following GitHub repository: https:\/\/github.com\/Gourieff\/Assets\/tree\/main\/Insightface In this repository, you can see several versions of InsightFace file. Depending on your Python version, choose the appropriate file to download. For example, if your Python version is 3.10, download the file for the<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[1989,3623,223],"collection":[],"class_list":["post-15997","post","type-post","status-publish","format-standard","hentry","category-baike","tag-comfyui","tag-insightface","tag-223"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/15997","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=15997"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/15997\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=15997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=15997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=15997"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=15997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}