{"id":2598,"date":"2024-01-05T10:04:14","date_gmt":"2024-01-05T02:04:14","guid":{"rendered":"https:\/\/www.1ai.net\/?p=2598"},"modified":"2024-01-05T10:04:14","modified_gmt":"2024-01-05T02:04:14","slug":"%e7%94%a8-stable-diffusion-10%e5%88%86%e9%92%9f%e5%ae%9e%e7%8e%b0%e7%94%b5%e5%95%86%e6%a8%a1%e7%89%b9%e6%8d%a2%e8%a3%85-%e6%8d%a2%e6%a8%a1%e7%89%b9","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/2598.html","title":{"rendered":"Use Stable Diffusion to change e-commerce models in 10 minutes"},"content":{"rendered":"<p data-line=\"1\"><a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a> Because of its controllability, it is being incorporated into the workflow of more and more designers. Take e-commerce as an example. Before the emergence of AI tools, the cost of photographing clothing was very high. Hiring professional models is charged by the hour. Hiring external models is even more expensive.<\/p>\n<p data-line=\"3\">Nowadays, clothes can be worn by anyone, even plastic models. With Stable Diffusion, plastic models can be replaced with real models. As a result, the cost of photographing clothes is greatly reduced.<\/p>\n<p data-line=\"5\">Compared with traditional PS cutouts, Stable Diffusion produces a more natural effect. And this process can also be applied to products. It is revolutionary for e-commerce.<\/p>\n<p data-line=\"7\">Next, let&#039;s understand the implementation process through a practical case. Our goal is to replace the model below. In fact, this model can even be a plastic model. In this way, when shooting clothing, we only need to find a plastic model and then wear the clothing we want to show.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2600\" title=\"640-6\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-6.jpeg\" alt=\"640-6\" width=\"904\" height=\"1200\" \/><figcaption><\/figcaption><\/figure>\n<h2 data-line=\"11\"># Install plugin<\/h2>\n<p data-line=\"13\">First we need to install a plugin called &quot;Inpaint Anything&quot; for Stable Diffusion. It can use the most advanced image recognition algorithm to make masks for you. This masking process is much more convenient and faster than in Photoshop.<\/p>\n<p data-line=\"15\">Of course, some users may not need to install it. For example, a cloud platform I use has a built-in Inpaint Anything plug-in.<\/p>\n<p data-line=\"19\">In general, there are two ways to install this plugin.<\/p>\n<p data-line=\"21\">1\ufe0f\u20e3 Install via WebUI. This method is suitable for the local magic environment.\u00a0<code data-line=\"21\">https:\/\/github.com\/geekyutao\/Inpaint-Anything.git<\/code>\u00a0Copy this URL to the WebUI and click Install.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2599\" title=\"640-5\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-5.jpeg\" alt=\"640-5\" width=\"1080\" height=\"416\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"25\">Next, click the &quot;Installed&quot; tab, then click &quot;Apply and Restart UI&quot;.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2602\" title=\"640-8\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-8.jpeg\" alt=\"640-8\" width=\"1080\" height=\"323\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"29\">After restarting the WebUI, you can see Inpaint Anything appear in the WebUI tab.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2601\" title=\"640-7\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-7.jpeg\" alt=\"640-7\" width=\"1080\" height=\"391\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"33\">2\ufe0f\u20e3 Local upload. Go to\u00a0<code data-line=\"33\">https:\/\/github.com\/geekyutao\/Inpaint-Anything\/releases<\/code>\u00a0This URL, then select a compressed package according to your system, download and unzip it to the Extension folder of WebUI.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2603\" title=\"640-9\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-9.jpeg\" alt=\"640-9\" width=\"1080\" height=\"598\" \/><figcaption><\/figcaption><\/figure>\n<h2 data-line=\"37\"># Making a mask<\/h2>\n<p data-line=\"39\">1\ufe0f\u20e3 After entering Inpaint Anything, upload the image you want to modify. Select a model from the &quot;Segment Anything Model ID&quot; drop-down menu in the upper left corner. Click the &quot;Download model&quot; button on the right to download the model for image recognition. Finally, click the &quot;Run Segment Anything&quot; button in the lower right corner to start image recognition.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2604\" title=\"640-10\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-10.jpeg\" alt=\"640-10\" width=\"941\" height=\"566\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"43\">2\ufe0f\u20e3 Use the brush tool to mark the mask area to be painted. Then click the &quot;Create Mask&quot; button, and a mask will be created.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2607\" title=\"640\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640.gif\" alt=\"640\" width=\"920\" height=\"585\" \/><\/figure>\n<p data-line=\"47\">3\ufe0f\u20e3 Then click the &quot;Send to img2img inpaint&quot; button to send it to the partial repaint of the original image.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2606\" title=\"640-12\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-12.jpeg\" alt=\"640-12\" width=\"928\" height=\"763\" \/><figcaption><\/figcaption><\/figure>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2605\" title=\"640-11\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-11.jpeg\" alt=\"640-11\" width=\"917\" height=\"585\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"53\">This mask is much more accurate than the hand-drawn mask in WebUI. It is also more convenient than making a mask in PS.<\/p>\n<h2 data-line=\"55\"># Change Model<\/h2>\n<p data-line=\"57\">After having the mask, you can use the local redrawing in the original picture to change the model.<\/p>\n<p data-line=\"59\">1\ufe0f\u20e3 If you want to change an Asian model, you can choose the Maiju series model. If you want to change a European or American model, you can choose the RealisticVision series model. Select the model and adjust the parameters. You can refer to the settings in the figure below. The image size can be kept consistent with the original image. CFG and redraw intensity can also be adjusted accordingly as needed. Note: Because we need to replace the model, the &quot;Mask Mode&quot; is selected as &quot;Draw non-masked content&quot;.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2609\" title=\"640-14\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-14.jpeg\" alt=\"640-14\" width=\"924\" height=\"817\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"63\">Then fill in the prompt words as needed and you can change the model.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2608\" title=\"640-13\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-13.jpeg\" alt=\"640-13\" width=\"1001\" height=\"904\" \/><figcaption><\/figcaption><\/figure>\n<h2 data-line=\"67\"># Change clothes<\/h2>\n<p data-line=\"69\">We can also change the look of the model&#039;s skirt.<\/p>\n<p data-line=\"71\">1\ufe0f\u20e3 Drag the generated image into the partially redrawn image area<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2610\" title=\"640-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-1.gif\" alt=\"640-1\" width=\"1077\" height=\"357\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"75\">2\ufe0f\u20e3Switch the &quot;Mask Mode&quot; in the previous configuration to &quot;Draw Mask Content&quot;.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2611\" title=\"640-15\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-15.jpeg\" alt=\"640-15\" width=\"932\" height=\"810\" \/><figcaption><\/figcaption><\/figure>\n<p data-line=\"79\">3\ufe0f\u20e3 Then you can generate skirts with different appearances.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2612\" title=\"640-16\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/01\/640-16.jpeg\" alt=\"640-16\" width=\"1080\" height=\"956\" \/><figcaption><\/figcaption><\/figure>\n<h2 data-line=\"83\"># Summary<\/h2>\n<p data-line=\"85\">The AI wave is sweeping across all industries. E-commerce is closely related to efficiency, and it is also one of the areas where AI can best demonstrate its capabilities. Integrating Stable Diffusion into e-commerce design can greatly improve efficiency.<\/p>","protected":false},"excerpt":{"rendered":"<p>Stable Diffusion is increasingly being incorporated into the workflow of designers for its controllability. In the case of e-commerce, for example, before the advent of AI tools, photographing clothing was expensive. Hiring professional models was billed by the hour. It was even more expensive to hire outside models. Today, clothing can be worn on anyone, even plastic models. With Stable Diffusion, it is possible to replace plastic models with real ones. As a result, the cost of photographing clothing is greatly reduced. Stable Diffusion produces more natural-looking results than traditional PS keying. And this process can also be applied to products. It is revolutionary for e-commerce. Next, let's go through the actual case to understand the realization process. Our<\/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":[197,198,856],"collection":[262],"class_list":{"0":"post-2598","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-stable-diffusion","10":"tag-856","11":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/2598","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=2598"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/2598\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=2598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=2598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=2598"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=2598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}