{"id":3930,"date":"2024-02-15T09:25:57","date_gmt":"2024-02-15T01:25:57","guid":{"rendered":"https:\/\/www.1ai.net\/?p=3930"},"modified":"2024-02-15T09:25:57","modified_gmt":"2024-02-15T01:25:57","slug":"ai%e6%8d%a2%e8%84%b8%e5%b1%85%e7%84%b6%e5%a6%82%e6%ad%a4%e7%ae%80%e5%8d%95%ef%bc%8cstable-diffusion-roop%e6%8f%92%e4%bb%b6%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/3930.html","title":{"rendered":"AI face-changing is so simple, Stable Diffusion Roop plugin usage tutorial"},"content":{"rendered":"<p>Recently, the Internet is very popular all kinds of face-swapping interesting pictures, that these pictures are how to make it?PS bit by bit to repair? PS repair little by little? The vast majority of such images are generated using AI. Compared to PS<a href=\"https:\/\/www.1ai.net\/en\/tag\/ai%e6%8d%a2%e8%84%b8\" title=\"[SEES ARTICLES WITH [AI CHANGE] LABELS]\" target=\"_blank\" >AI face-changing<\/a>More realistic and faster. Today, I'm going to explain how to make the<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>hit the nail on the head<a href=\"https:\/\/www.1ai.net\/en\/tag\/roop%e6%8f%92%e4%bb%b6\" title=\"[See articles with [Roop plugin] labels]\" target=\"_blank\" >Roop Plugin<\/a>Perform a face swap.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3932\" title=\"640-120\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-120.png\" alt=\"640-120\" width=\"768\" height=\"512\" \/><\/section>\n<p>The pre-preparation for installing the Roop plug-in is actually quite tedious. First of all, you need to download and install Microsoft VisualStudio in your computer, which can be downloaded from Microsoft's official website: https:\/\/visualstudio.microsoft.com\/zh-hans\/downloads\/<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3931\" title=\"640-119\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-119.png\" alt=\"640-119\" width=\"480\" height=\"282\" \/><\/section>\n<section>After running the downloaded installation package, it will automatically download the required files from the Internet, which is usually very fast depending on the network conditions.<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3933\" title=\"640-121\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-121.png\" alt=\"640-121\" width=\"1080\" height=\"597\" \/><\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3934\" title=\"640-122\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-122.png\" alt=\"640-122\" width=\"1080\" height=\"600\" \/><\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3935\" title=\"640-123\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-123.png\" alt=\"640-123\" width=\"1080\" height=\"605\" \/><\/section>\n<section>In the installation, check the boxes for Python development, desktop development using C++, mobile development using C++, Linux running in C++ and embedded development. This step will take up nearly 20GB of system storage space, you can manually choose the installation path according to your own storage, do not have to install in the default path.<\/p>\n<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3936\" title=\"640-124\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-124.png\" alt=\"640-124\" width=\"1080\" height=\"596\" \/><\/section>\n<section>Click on Install and wait a few moments (about half an hour) for the installation to complete.<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3937\" title=\"640-125\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-125.png\" alt=\"640-125\" width=\"1080\" height=\"543\" \/><\/section>\n<p>The program will run automatically after installation, just click Skip Login.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3938\" title=\"640-126\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-126.png\" alt=\"640-126\" width=\"1080\" height=\"550\" \/><\/section>\n<p>Clicking on the Launch Visual Studio button will automatically configure it.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3939\" title=\"640-127\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-127.png\" alt=\"640-127\" width=\"1080\" height=\"721\" \/><\/section>\n<p>When everything is done click the fork in the upper right corner to close Visual Studio.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3940\" title=\"640-128\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-128.png\" alt=\"640-128\" width=\"993\" height=\"519\" \/><\/section>\n<section>Press Win+R at the same time and type CMD command, type python -m pip install insightface==0.7.3 Enter.<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3941\" title=\"640-129\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-129.png\" alt=\"640-129\" width=\"993\" height=\"519\" \/><\/section>\n<section>type python.exe-mip install \u2013upgrad pip back to the car\u3002<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3942\" title=\"640-130\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-130.png\" alt=\"640-130\" width=\"1024\" height=\"800\" \/><\/section>\n<p>On the System Settings page go to System Properties in Advanced Settings and click on the Environment Variables button.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3943\" title=\"640-131\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-131.png\" alt=\"640-131\" width=\"632\" height=\"666\" \/><\/section>\n<section>Double-click Path in the system variables below to create a new local Python installation directory, enter X:python\\scripts (depending on your Python installation path) and click OK.<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3944\" title=\"640-132\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-132.png\" alt=\"640-132\" width=\"993\" height=\"519\" \/><\/section>\n<p>Type python.exe-mip into \u2013upgrade protobuf to return\u3002<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3945\" title=\"640-133\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-133.png\" alt=\"640-133\" width=\"1080\" height=\"628\" \/><\/section>\n<p>Launch Stable Diffusion WebUI, click Load in Extensions, search for Roop keyword and the Roop plugin will appear, click Install. For those with bad network, you can download it manually from Github to install it. URL: https:\/\/github.com\/s0md3v\/sd-webui-roop<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3946\" title=\"640-134\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-134.png\" alt=\"640-134\" width=\"1005\" height=\"529\" \/><\/section>\n<p>Click on Code in the upper right and select the Download ZIP button and the download will take place automatically.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3947\" title=\"640-135\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-135.png\" alt=\"640-135\" width=\"850\" height=\"413\" \/><\/section>\n<section>Download the roop plugin and extract it to the extensions folder in your Stable Diffusion root directory. When you are done, restart WebUI and the program will automatically load the roop plugin and download the corresponding model files. Next is the face swap in action.<\/section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3948\" title=\"640-136\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-136.png\" alt=\"640-136\" width=\"512\" height=\"768\" \/><\/section>\n<p>I think the young girl in this picture is very classy the background, the outfit, the pose and the costume are all great, but the only thing I don't like is the face.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3949\" title=\"640-137\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-137.png\" alt=\"640-137\" width=\"512\" height=\"768\" \/><\/section>\n<p>The face in the picture above is great, but the style and costume poses are underwhelming, and it's time for the Roop plugin to shine.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3950\" title=\"640-138\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-138.png\" alt=\"640-138\" width=\"1080\" height=\"962\" \/><\/section>\n<p>In the WebUI go to the Tupelo Graphics tab, select Localized Redraw drag the template into it and select the face that needs to be redrawn.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3951\" title=\"640-139\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-139.png\" alt=\"640-139\" width=\"1080\" height=\"793\" \/><\/section>\n<p>Click on the Roop option below, first pass the face that needs to be replaced and tick the startup option. Click Generate and wait for a few moments for the unexpected effect.<\/p>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3952\" title=\"640-140\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/02\/640-140.png\" alt=\"640-140\" width=\"512\" height=\"768\" \/><\/section>\n<p>The above picture is the finished product of the face swap, for the Roop plug-in, I think we should already know how to install and how to use. On the content of AI, I will also bring you more interesting articles please look forward to.<\/p>","protected":false},"excerpt":{"rendered":"<p>Recently, the Internet is very popular all kinds of face-swapping interesting pictures, that these pictures are how to make it?PS bit by bit to repair? PS repair little by little? The vast majority of these images are generated using AI. Compared to PS, AI face swap is more realistic and faster. Today I would like to introduce you to how to Stable Diffusion in the Roop plug-in for the face. The pre-preparation work for installing the Roop plug-in is actually very tedious. First of all, you need to download and install Microsoft VisualStudio in your computer, Microsoft official website download address: https:\/\/visualstudio.microsoft.com\/zh-hans\/downloads\/ run the downloaded installation package will automatically network to download the required files<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[162,1244,197],"collection":[262],"class_list":["post-3930","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-roop","tag-stable-diffusion","collection-stablediffusion"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/3930","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=3930"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/3930\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=3930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=3930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=3930"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=3930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}