{"id":13034,"date":"2024-06-13T09:58:35","date_gmt":"2024-06-13T01:58:35","guid":{"rendered":"https:\/\/www.1ai.net\/?p=13034"},"modified":"2024-06-13T09:58:35","modified_gmt":"2024-06-13T01:58:35","slug":"ai%e7%bb%98%e7%94%bb%e6%89%8b%e6%8c%87%e7%94%bb%e4%b8%8d%e5%a5%bd%ef%bc%9fstable-diffusion%e9%ab%98%e6%95%88%e4%bf%ae%e5%a4%8d%e6%89%8b%e9%83%a8%e9%97%ae%e9%a2%98%e5%b0%8f%e7%99%bd%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/13034.html","title":{"rendered":"AI painting: Finger painting is not good? Stable Diffusion efficiently repairs hand problems. A beginner&#039;s tutorial"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"0 0 []\">exist<a href=\"https:\/\/www.1ai.net\/en\/tag\/ai%e7%bb%98%e7%94%bb\" title=\"[SEES ARTICLES WITH [AI PAINTING] LABELS]\" target=\"_blank\" >AI Painting<\/a>Hand problems have always been a troublesome problem. Deformed hands, missing fingers, extra fingers and other problems often confuse us. This article mainly discusses the following issues:<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>What methods can be used to repair hand problems.<\/p>\n<p data-track=\"2\"><strong>1. Material preparation<\/strong><\/p>\n<p data-track=\"3\">Generate a picture with hand problems in the Wenshengtu function interface.<\/p>\n<ul>\n<li data-track=\"4\">Large model: majicMIX realistic majicMIX realistic_v7<\/li>\n<li data-track=\"5\">Positive prompt words<\/li>\n<\/ul>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"6\">Prompt: a super beautiful chinese girl showing two hands,Open palms in a welcome sign,smiling,wearing pink dress,standing in the street,front view,upper body<\/p>\n<p data-track=\"7\">Prompt words: A super pretty Chinese girl stretches out her hands, opens her palms in a welcoming gesture, smiles, wears pink clothes, stands on the street, front view, upper body,<\/p>\n<\/blockquote>\n<ul>\n<li data-track=\"8\">Sampler: DPM++ 2M Karras<\/li>\n<li data-track=\"9\">Sampling iteration number: 25<\/li>\n<li data-track=\"10\">Image width and height: 512*768<\/li>\n<li data-track=\"11\">CFG: 7<\/li>\n<\/ul>\n<p data-track=\"12\">Randomly pick a picture with a finger problem<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13035\" title=\"get-382\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-382.jpg\" alt=\"get-382\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"13\">There are problems with both hands in the image generated above. The hand repair in this image will be used as an example in the following.<\/p>\n<p data-track=\"14\"><strong>2. Method 1: Use the image to partially redraw the image to fix the hand problem<\/strong><\/p>\n<p data-track=\"16\"><strong>[Step 1]: Local redrawing settings for raw images<\/strong><\/p>\n<p data-track=\"17\">In the menu interface of the partial redrawing function of the original image, upload the photo of the hand to be repaired.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13036\" title=\"get-383\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-383.jpg\" alt=\"get-383\" width=\"1080\" height=\"803\" \/><\/div>\n<p data-track=\"18\">Since both hands have problems, in order to obtain the best repair effect, it is best to repair them in two steps, first repair the left hand, then repair the right hand. We first use the brush on the right side of the picture above to paint the left hand area white.<\/p>\n<p data-track=\"19\">Below are the relevant parameter settings for partial redrawing of the raw image<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13037\" title=\"get-384\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-384.jpg\" alt=\"get-384\" width=\"1080\" height=\"742\" \/><\/div>\n<ul>\n<li data-track=\"20\">Mask Mode: Redraw the mask content, specifically for hand issues.<\/li>\n<li data-track=\"21\">Mask area content processing: original<\/li>\n<li data-track=\"22\">Redraw area: the entire image<\/li>\n<li data-track=\"23\">Sampler: DPM++ 2M Karras<\/li>\n<li data-track=\"24\">Sampling iteration number: 25<\/li>\n<li data-track=\"25\">Image width and height: 512*768<\/li>\n<li data-track=\"26\">CFG: 7<\/li>\n<li data-track=\"27\">Redraw Strength: 0.7<\/li>\n<\/ul>\n<p data-track=\"28\"><strong>[Step 2]: Large model and positive prompt words<\/strong><\/p>\n<p data-track=\"29\">Large model: majicMIX realistic majicMIX realistic_v7<\/p>\n<p data-track=\"30\">Positive prompt words: Keep the same as the positive prompt words used to generate the image.<\/p>\n<p data-track=\"31\"><strong>\u3010Step 3\u3011 Image generation<\/strong><\/p>\n<p data-track=\"32\">Since the generated images are random, the generated images may not meet our requirements immediately. It is recommended to generate them multiple times until a satisfactory image is extracted.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13038\" title=\"get-385\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-385.jpg\" alt=\"get-385\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"33\"><strong>\u3010Step 4\u3011 Repeat the above steps to repair the right hand<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13039\" title=\"get-386\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-386.jpg\" alt=\"get-386\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"34\">Related Notes:<\/p>\n<p data-track=\"35\">(1) There is a random probability in the hands repaired in this way, and you may need to draw lots repeatedly to get a satisfactory one.<\/p>\n<p data-track=\"36\">(2) Whether the restored hand looks good or not is related to the rendering capability of the model.<\/p>\n<p data-track=\"37\"><strong>Method 2: Fix the hand problem using ControlNet\u2019s DWPose<\/strong><\/p>\n<p data-track=\"38\"><strong>[Step 1]: Local redrawing settings for raw images<\/strong><\/p>\n<p data-track=\"39\">In the menu interface of the partial redrawing function of the original image, upload the photo of the hand to be repaired.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13040\" title=\"get-387\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-387.jpg\" alt=\"get-387\" width=\"1080\" height=\"801\" \/><\/div>\n<p data-track=\"41\">We will use the brush to paint both problematic hands white.<\/p>\n<p data-track=\"42\">The settings of the large model, prompt words, and related parameters are the same as in method 1, so I will not repeat them here.<\/p>\n<p data-track=\"43\"><strong>[Step 2]: ControlNet Openpose model settings<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13041\" title=\"get-388\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-388.jpg\" alt=\"get-388\" width=\"1080\" height=\"929\" \/><\/div>\n<p data-track=\"44\">The relevant parameter settings are as follows:<\/p>\n<ul>\n<li data-track=\"45\">Control type: Select OpenPose<\/li>\n<li data-track=\"46\">Preprocessor: dw_openpose_full<\/li>\n<li data-track=\"47\">Model: control_v11p_sd15_openpose<\/li>\n<\/ul>\n<p data-track=\"49\">As for the preview image of dw_openpose_full hand recognition, it can be seen that the face, hands, posture, etc. of the person are monitored very comprehensively.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13042\" title=\"get-389\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-389.jpg\" alt=\"get-389\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"50\">For an introduction to dw_openpose_full, please refer to the previous article, which contains a very detailed explanation. [Stable Diffusion [Advanced]: How to implement hand repair (3)]<\/p>\n<p data-track=\"51\"><strong>[Step 3]: Image generation<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13043\" title=\"get-390\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-390.jpg\" alt=\"get-390\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"52\">Related Notes:<\/p>\n<p data-track=\"53\">(1) The hand operation repaired in this way is easy and controllable. In addition, the current DWPose controller seems to be able to automatically identify the problematic hand and display the generated preview image normally without the need for further editing.<\/p>\n<p data-track=\"54\">(2) The length and joints of the generated fingers may still be inaccurate.<\/p>\n<p data-track=\"55\"><strong>3. Method 3: Fix hand problems using ControlNet\u2019s HandRefiner<\/strong><\/p>\n<p data-track=\"56\"><strong>[Step 1]: Local redrawing settings for raw images<\/strong><\/p>\n<p data-track=\"57\">In the menu interface of the partial redrawing function of the original image, upload the photo of the hand to be repaired.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13044\" title=\"get-391\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-391.jpg\" alt=\"get-391\" width=\"1080\" height=\"801\" \/><\/div>\n<p data-track=\"59\">We will use the brush to paint both problematic hands white.<\/p>\n<p data-track=\"60\">The settings of the large model, prompt words, and related parameters are the same as in method 1, so I will not repeat them here.<\/p>\n<p data-track=\"61\"><strong>[Step 2]: ControlNet HandRefiner model settings<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13046\" title=\"get-393\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-393.jpg\" alt=\"get-393\" width=\"1080\" height=\"867\" \/><\/div>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"62\">\n<\/blockquote>\n<p data-track=\"63\">The relevant parameter settings are as follows:<\/p>\n<ul>\n<li data-track=\"64\">Control type: Select \"Depth\"<\/li>\n<li data-track=\"65\">Preprocessor: depth_hand_refiner<\/li>\n<li data-track=\"66\">Model: control_sd15_inpaint_depth_hand_fp16<\/li>\n<\/ul>\n<p data-track=\"68\">The effect of using depth_hand_refiner to obtain the hand preview image is as follows.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13045\" title=\"get-392\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-392.jpg\" alt=\"get-392\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"69\"><strong>[Step 3]: Image generation<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"70\">\n<\/blockquote>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13047\" title=\"get-394\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/06\/get-394.jpg\" alt=\"get-394\" width=\"512\" height=\"768\" \/><\/div>\n<p data-track=\"71\">Okay, that\u2019s all for today\u2019s sharing. I hope that what I shared today will be helpful to you.<\/p>\n<p data-track=\"72\">The model is placed in the network disk, and those who are interested can take it!<\/p>\n<p data-track=\"73\">https:\/\/pan.quark.cn\/s\/b3df771404e2<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Hand problems have always been a troublesome issue in AI drawing. Deformation of hands, missing fingers, redundant fingers are some of the problems that often confuse us. In this article, we will discuss about what methods in Stable Diffusion can be used to fix hand problems. I. Material Preparation Generate a picture with hand problems in the functional interface of the text-born diagram. Big model: majicMIX realistic \u9ea6\u6a58\u5199\u5b9e_v7 \u6b63\u5411\u63d0\u793a\u8bcd Prompt: a super beautiful chinese girl showing two hands,Open palms in a welcome sign,smiling,wearing<\/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":[491,197,198,2894],"collection":[262],"class_list":{"0":"post-13034","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-ai","9":"tag-stable-diffusion","11":"tag-2894","12":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/13034","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=13034"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/13034\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=13034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=13034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=13034"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=13034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}