{"id":15439,"date":"2024-07-12T09:40:55","date_gmt":"2024-07-12T01:40:55","guid":{"rendered":"https:\/\/www.1ai.net\/?p=15439"},"modified":"2024-07-12T09:41:39","modified_gmt":"2024-07-12T01:41:39","slug":"%e5%85%8d%e8%b4%b9ai%e6%8d%a2%e8%84%b8%ef%bc%8ccontrolnet%e6%95%99%e7%a8%8b%ef%bc%9ainstant-id%e6%8d%a2%e8%84%b8%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/15439.html","title":{"rendered":"Free AI face-changing, ControlNet tutorial: How to use Instant-ID face-changing"},"content":{"rendered":"<div class=\"pgc-img\" data-pm-slice=\"0 0 []\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15440\" title=\"get-395\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-395.jpg\" alt=\"get-395\" width=\"800\" height=\"285\" \/><\/div>\n<p><a href=\"https:\/\/www.1ai.net\/en\/tag\/instant-id\" title=\"[See articles with [Instant ID] labels]\" target=\"_blank\" >Instant ID<\/a> It is a relatively new model of ControlNet, and its main function is also to fix the facial features of people. It can perfectly replace faces with only one picture, and may be the most powerful face migration model currently.<\/p>\n<p data-track=\"59\"><a href=\"https:\/\/www.1ai.net\/en\/tag\/instant\" title=\"[See articles with [Instant] label]\" target=\"_blank\" >Instant<\/a> ID technology has demonstrated its unique advantages in many fields, mainly in the following aspects:<\/p>\n<p data-track=\"60\">1. As an innovative ID retention method, Instant ID effectively solves the contradiction between training efficiency and ID fidelity.<\/p>\n<p data-track=\"61\">2. It is pluggable and compatible with the current community\u2019s Wenshengtu basic model, LoRAs,<a href=\"https:\/\/www.1ai.net\/en\/tag\/controlnet\" title=\"[See article with [ControlNet] label]\" target=\"_blank\" >ControlNet<\/a>s, etc., and can maintain the character ID attributes at zero cost during the inference process. At the same time, Instant ID also maintains good text editing capabilities, allowing the ID to be smoothly embedded in various styles. Whether it is adding decorations, changing hair color or changing suits, it can be easily handled.<\/p>\n<p data-track=\"62\">3. Experimental results show that Instant ID not only surpasses the current embedding methods based on single image features (such as IP-Adapter-FaceID), but is also comparable to ROOP, LoRAs and other methods in specific scenarios, and has lower cost.<\/p>\n<p data-track=\"63\">For more detailed principles, please read the analysis of the Instant ID team on github: https:\/\/github.com\/InstantID\/InstantID<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"64\">Step 1: Preparation before use<\/h1>\n<p data-track=\"65\">If your controlnet does not have an Instant ID, you need to update the extension in the Autumn Leaf Starter Pack<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15441\" title=\"get-396\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-396.jpg\" alt=\"get-396\" width=\"800\" height=\"526\" \/><\/div>\n<p data-track=\"66\">In addition, you also need to download the controlnet model to the local controlnet model folder<\/p>\n<p data-track=\"67\">Model download address:<\/p>\n<ul>\n<li data-track=\"68\">ipadapter model<\/li>\n<li data-track=\"69\">ControlNet model<\/li>\n<\/ul>\n<p data-track=\"70\">If the network is not good, you can scan the QR code on the right to join the group to get it, or go to the online SD website esheep to experience it.<\/p>\n<p data-track=\"71\">After downloading, you need to change the name to ip-adapter_instant_id_sdxl and control_instant_id_sdxl, and then put them in this folder<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15442\" title=\"get-397\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-397.jpg\" alt=\"get-397\" width=\"751\" height=\"272\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"72\">Step 2: Image creation settings<\/h1>\n<p data-track=\"73\">[Large model] SDXL model is required, because Instant ID currently only supports SDXL<\/p>\n<p data-track=\"74\">I am using DreamShaper XL V2.1 Turbo<\/p>\n<p data-track=\"75\">This model can be downloaded from C site. If you can&#039;t access it, you can scan the QR code on the right to join the group chat to get it.<\/p>\n<p data-track=\"76\">[Sampling method] DreamShaper XL V2.1 Turbo models must use DPM++ SDE Karras<\/p>\n<p data-track=\"77\">\u3010Sampling steps\u30118<\/p>\n<p data-track=\"78\">[Size] 768*1024<\/p>\n<p data-track=\"79\">[CFG prompt word relevance] The author of the large model recommends setting CFG to 2 for best results.<\/p>\n<p data-track=\"80\">[Redraw amplitude] 0.6<\/p>\n<p data-track=\"81\">For specific parameters, please refer to the figure below. For partial redrawing, you need to paint the face.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15443\" title=\"get-398\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-398.jpg\" alt=\"get-398\" width=\"800\" height=\"779\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15444\" title=\"get-399\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-399.jpg\" alt=\"get-399\" width=\"787\" height=\"667\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"82\">Step 3: ControlNet Settings<\/h1>\n<p data-track=\"83\">Your first unit must be a combination of embedding and ip-adapter<\/p>\n<p data-track=\"84\">The first unit is a model for acquiring facial features<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15445\" title=\"get-400\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-400.jpg\" alt=\"get-400\" width=\"800\" height=\"809\" \/><\/div>\n<p data-track=\"85\">Your second unit must be a combination of keypoints and control-instant-id-sdxl<\/p>\n<p data-track=\"86\">This unit is used as a replacement template. You don&#039;t need to upload an image in the raw image. SD will automatically use the image you uploaded in the raw image as the template.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15446\" title=\"get-401\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-401.jpg\" alt=\"get-401\" width=\"800\" height=\"532\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"87\">Step 4: Click Generate<\/h1>\n<p data-track=\"88\">After setting the above parameters, click Generate. The effect is very realistic, except for some flaws on the edges, which can be improved by adjusting the blurriness of the mask edges.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15448\" title=\"get-403\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-403.jpg\" alt=\"get-403\" width=\"780\" height=\"472\" \/><\/div>\n<p data-track=\"89\"><strong>Precautions<\/strong><\/p>\n<ul>\n<li data-track=\"90\">The parameters are not fixed, you need to refer to your model prompts. In the DreamShaper XL V2.1 Turbo model I use, the parameters are set according to the above parameters.<\/li>\n<li data-track=\"91\">Try to choose high-definition facial materials to achieve better face-changing effects<\/li>\n<\/ul>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15447\" title=\"get-402\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-402.jpg\" alt=\"get-402\" width=\"783\" height=\"455\" \/><\/div>","protected":false},"excerpt":{"rendered":"<p>Instant ID is a relatively new model from controlnet, and its main function is also to fix the facial features of a character. It can perform a perfect face replacement with only one picture, and is probably the strongest face migration model available. Instant ID technology shows its unique advantages in several fields, mainly in the following aspects: 1. As an innovative ID preservation method, Instant ID effectively solves the contradiction between training efficiency and ID fidelity. 2. It is pluggable and fully compatible with the current community of Vincennes graph base models, LoRAs, ControlNets, etc., and can maintain the character ID attributes in the reasoning process at zero cost. At the same time, Instant ID also keeps<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[162,3118,3467,3466,3464,3465,3463],"collection":[],"class_list":{"0":"post-15439","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-baike","7":"tag-ai","9":"tag-controlnet","11":"tag-instant","12":"tag-instant-id"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/15439","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=15439"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/15439\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=15439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=15439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=15439"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=15439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}