{"id":16004,"date":"2024-07-20T09:40:53","date_gmt":"2024-07-20T01:40:53","guid":{"rendered":"https:\/\/www.1ai.net\/?p=16004"},"modified":"2024-07-20T09:40:53","modified_gmt":"2024-07-20T01:40:53","slug":"ai%e6%8d%a2%e8%84%b8%e7%a5%9e%e5%99%a8-instantid%ef%bc%8c%e5%a6%82%e4%bd%95%e5%9c%a8comfyui%e4%b8%ad%e4%bd%bf%e7%94%a8%e5%9c%a8%e7%ba%bf%e4%b8%80%e9%94%ae%e6%8d%a2%e8%84%b8","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/16004.html","title":{"rendered":"AI face-changing tool InstantID, how to use online one-click face-changing in ComfyUI"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"0 0 []\">If you have used IP-adapter or other face-changing plug-ins, install<a href=\"https:\/\/www.1ai.net\/en\/tag\/instantid\" title=\"[See articles with [InstantID] labels]\" target=\"_blank\" >InstantID<\/a>If you haven&#039;t installed it before, you need to install insightface first. You can read my previous article on how to install insightface.<\/p>\n<p data-track=\"34\"><a href=\"https:\/\/www.1ai.net\/en\/15997.html\/\">Detailed guide: Learn how to install and configure Insightface on the ComfyUI platform<\/a><\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"35\">Installation Process<\/h1>\n<p data-track=\"36\">First,<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a>Upgrade to the latest version!<\/p>\n<p data-track=\"37\">git clone this repository to the ComfyUI\/custom_nodes\/ directory or use a manager. I use the manager to search for InstantID and download it. Remember to download the author Cubiq.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16005\" title=\"get-583\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-583.jpg\" alt=\"get-583\" width=\"675\" height=\"353\" \/><\/div>\n<p data-track=\"38\">The InsightFace model is antelopev2 (not the classic buffalo_l). Download the models (e.g. from here or here), unzip them and put them in the ComfyUI\/models\/insightface\/models\/antelopev2 directory.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16007\" title=\"get-585\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-585.jpg\" alt=\"get-585\" width=\"765\" height=\"386\" \/><\/div>\n<p data-track=\"39\">The main model can be downloaded from this website: https:\/\/huggingface.co\/InstantX\/InstantID\/resolve\/main\/ip-adapter.bin?download=true<\/p>\n<p data-track=\"40\">And placed in the ComfyUI\/models\/instantid directory.<\/p>\n<p data-track=\"41\">(Note that this model is called<em>ip_adapter<\/em>because it is based on IPAdapter).<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16006\" title=\"get-584\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-584.jpg\" alt=\"get-584\" width=\"719\" height=\"152\" \/><\/div>\n<p data-track=\"42\">You will also need to download a ControlNet model: https:\/\/huggingface.co\/InstantX\/InstantID\/resolve\/main\/ControlNetModel\/diffusion_pytorch_model.safetensors?download=true<\/p>\n<p data-track=\"43\">Download and place it in the ComfyUI Controlnet directory.<\/p>\n<p data-track=\"44\">Please keep in mind that InstantID currently only works with SDXL. So you will also need to prepare a large model for SDXL<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"45\">Usage Process<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16008\" title=\"get-586\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-586.jpg\" alt=\"get-586\" width=\"765\" height=\"407\" \/><\/div>\n<p data-track=\"46\">To implement IntantID face swapping, we also need to install this node package, which provides us with the FaceDetailer node. Friends who have used WebUI should be familiar with it. This is the ADetailer face repair plug-in in WebUI. The principle of implementing face swapping is to use FaceDetailer to identify the facial area of the person and then use InstantID to redraw the face.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16009\" title=\"get-587\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-587.jpg\" alt=\"get-587\" width=\"765\" height=\"402\" \/><\/div>\n<p data-track=\"47\">I won&#039;t describe the node linking process in detail. You can join our discussion group to get the workflow. The workflow is very simple and you can understand it by yourself. Here I mainly remind you of a few parameters of FaceDetailer. The number of steps and CFG are set according to your SDXL large model. The following denoising is the redrawing amplitude. Feathering will affect the degree of fusion of the redrawn edges. So several parameters need to be manually adjusted according to your own situation.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16010\" title=\"get-588\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-588.jpg\" alt=\"get-588\" width=\"765\" height=\"644\" \/><\/div>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>If you have used IP-adapter or other face changing plugins, it is easier to install InstantID. If you haven't then you need to install insightface first, how to install insightface you can read my previous post oh. Detailed guide: Learn how to install and configure Insightface on ComfyUI platform Installation process First upgrade ComfyUI to the latest version! git clone to download this repository into the ComfyUI\/custom_nodes\/ directory or use the manager. I used the manager to search for InstantID to download it. Remember to download it from Cubiq, the author, so don't make a mistake. InsightF<\/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":[3624,1989,1221,3625],"collection":[],"class_list":["post-16004","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-comfyui","tag-instantid","tag-3625"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16004","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=16004"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16004\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=16004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=16004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=16004"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=16004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}