Stable Diffusionで手の指を修正するプロンプト呪文やDepth Libraryの使い方について解説

9 Jul 202308:48

TLDRThis video script offers a comprehensive guide on how to correct distorted fingers in generated images using AI. It introduces three primary methods: refining prompts and negative prompts, utilizing inpainting, and employing the depth library. The script provides detailed instructions for each technique, emphasizing the effectiveness of the depth library for seamless finger corrections. It also suggests combining inpainting with depth library for the best results, allowing for the correction of hand parts without altering the overall artwork style. The tutorial encourages viewers to try these methods to improve previously generated images with distorted hands.


  • 🖐️ The script discusses methods to fix distorted or broken fingers in generated images, a common issue when no tools are used during initial image generation.
  • 🛠️ Depth library is recommended as a tool to correct the shape of fingers, allowing for a cleaner and more natural appearance in the final images.
  • 📝 When using depth library, it's important to use the same model for both the original image generation and the finger correction to maintain consistency.
  • 🎨 The script provides a detailed walkthrough on using inpaint, a method to correct only the painted-over parts of an image, which can be useful for fixing specific areas like fingers or eyes.
  • 🖌️ Inpaint allows for the correction of the fingers by painting over them and then using the tool to generate a corrected version of the image.
  • 🔄 The process of using depth library involves uploading the image to be corrected, adjusting the control settings, and using the saved finger image to ensure the desired outcome.
  • 🔧 The script suggests combining the use of depth library and inpaint for the best results, as this can lead to a more seamless correction of the fingers without altering the overall style of the image.
  • 📈 The script provides tips on using prompts and negative prompts to enhance the quality of the image generation, with suggestions like 'masterpiece', 'best quality', and 'ultra-detail' for positive prompts, and 'worst quality', 'low quality', and 'normal quality' for negative prompts.
  • 🚫 Negative prompts related to hands should avoid terms like 'bad hands', 'missing fingers', 'over 6 fingers', 'split fingers', and 'interlocked fingers' to prevent undesirable outcomes.
  • 📚 The video script serves as a guide for those who have previously encountered issues with distorted fingers in their generated images, offering solutions to improve and complete their works.
  • 👍 The script encourages viewers to subscribe to the AI Generation channel for more content on AI-generated image information and thanks them for watching.

Q & A

  • What is the main problem addressed in the video?

    -The video addresses the common issue of hands and fingers not being properly formed in generated images, often leading to unsatisfactory results that are discarded.

  • What tool is recommended for fixing distorted fingers in images?

    -The depth library is recommended as a tool to fix distorted fingers in images, allowing for cleaner and more accurate shapes.

  • What are some positive prompts mentioned to improve overall image quality?

    -Positive prompts mentioned include 'masterpiece', 'best quality', and 'ultra-detailed'.

  • What negative prompts are suggested to avoid poor quality in generated images?

    -Suggested negative prompts include 'worst quality', 'low quality', 'normal quality', 'bad hands', 'missing fingers', 'over 6 fingers', 'split fingers', 'interlocked fingers', and 'easy negative'.

  • How does using 'inpaint' function in image correction?

    -The 'inpaint' function allows for correcting specific parts of an image by filling in and repairing only the selected areas, such as distorted fingers.

  • What initial steps are required before using depth library for image correction?

    -Before using the depth library, one must install controlnet and depth model. The video provides links in the description for guidance on these installations.

  • How can one adjust the hand shape using depth library?

    -Using depth library, you can select a desired hand shape from the library, adjust it to cover the hand parts in the image, and even reverse the hand direction if necessary.

  • What is the preferred method for correcting hands in images, as per the video?

    -The preferred method is to first use the depth library to correct the hand's shape and then use 'inpaint' to fill in and mask only the hand area for finer adjustments.

  • Why is it important to match the model content when using depth library?

    -It's important to match the model content to ensure consistency and compatibility in the image correction process, allowing for the best possible corrections to hand shapes.

  • What benefits does combining the depth library and 'inpaint' offer for image correction?

    -Combining the depth library with 'inpaint' offers a comprehensive approach to image correction, enabling both broad adjustments to hand shapes and fine-tuning of details for optimal results.



🖌️ Fixing Distorted Fingers with Depth Library

This paragraph discusses the common issue of distorted fingers in image generation and introduces the Depth Library as a recommended tool for correction. The script explains that while there is no perfect solution without tools, the Depth Library can significantly improve the shape of the fingers. It provides a tutorial on how to use the Depth Library, including setting up the ControlNet and Depth model, using the extension, and adjusting the control weight for optimal results. The paragraph emphasizes the effectiveness of the Depth Library in fixing fingers without causing a违和感 (discord), and suggests combining it with the inpainting method for the best outcome.


🎨 Using Inpaint for Selective Corrections

The second paragraph focuses on the use of the Inpaint tool for selective corrections of image generation outputs. It explains the process of using Inpaint to fix specific parts of an image, such as the fingers, without altering the overall style. The script provides a step-by-step guide on how to upload an image, use the brush tool to select the area for correction, and adjust the settings to achieve the desired result. It also suggests using the inpainting method in combination with the Depth Library for an even better result, and encourages viewers to try these methods to improve their past image generation works.



💡Finger Correction

Finger correction refers to the process of adjusting or modifying the appearance of fingers in a generated image to make them look natural and undistorted. In the context of the video, this is a primary concern for the creator when dealing with images where fingers may have been distorted or broken due to the image generation process. The video provides several methods and tools to address this issue, such as using depth library and inpaint.

💡Depth Library

Depth Library is a tool or a set of techniques used in image generation to improve the quality and accuracy of specific parts of an image, such as fingers. It allows for the detailed correction of image elements by using depth maps and control networks. In the video, it is presented as one of the most effective ways to fix distorted fingers in generated images, as it can adjust the shape and appearance of the fingers without altering the overall style of the image.


Inpaint is a method or tool used for image editing that focuses on repairing or filling in specific parts of an image. It works by sampling and replicating the texture and color from the surrounding areas to fix the targeted section. In the video, inpaint is suggested as a way to correct the fingers in an image by painting over the area that needs fixing, allowing for localized adjustments without affecting the rest of the image.

💡Prompts and Negative Prompts

Prompts and negative prompts are terms used in the context of AI image generation to guide the output of the AI model. Prompts are specific instructions or descriptions that tell the AI what to generate, while negative prompts are used to avoid certain outcomes or errors. In the video, the creator suggests adding certain prompts and negative prompts to improve the quality of finger generation in images, such as specifying 'punch hands' or avoiding 'split fingers'.

💡Stable Diffusion Web UI

Stable Diffusion Web UI is a user interface for the Stable Diffusion model, which is an AI-based image generation model. It allows users to input prompts, adjust settings, and generate images through a graphical interface. In the video, the Stable Diffusion Web UI is used as a platform for uploading images, applying inpaint and depth library techniques, and generating the final corrected images.


Controlnet is a tool or feature that works in conjunction with AI models like Stable Diffusion to provide more control over the generation process. It allows users to guide the AI by specifying certain aspects of the image they want to maintain or change. In the video, controlnet is essential for using the depth library to correct fingers, as it helps to ensure that the overall style of the image remains consistent while only the fingers are adjusted.

💡Image Generation

Image generation is the process of creating new images using AI models, such as Stable Diffusion. It involves inputting prompts and settings into the AI model, which then produces an image based on the given instructions. In the video, the main theme revolves around improving the quality of image generation, particularly focusing on correcting issues with fingers in the generated images.

💡AI Art Generation

AI art generation refers to the use of artificial intelligence to create visual art. This process typically involves inputting prompts into an AI model, which then generates an image based on the instructions. The video is centered around the challenges and solutions related to AI art generation, particularly in fixing common issues like distorted fingers.

💡Quality Control

Quality control in the context of AI-generated images involves monitoring and adjusting the output to ensure that it meets certain standards of quality. This includes fixing errors or inconsistencies that may occur during the generation process, such as issues with the depiction of fingers. The video focuses on methods to improve quality control in AI-generated images, particularly through the use of tools like depth library and inpaint.

💡Image Editing Techniques

Image editing techniques refer to the various methods and tools used to modify and enhance digital images. In the context of the video, these techniques are applied to correct specific elements in AI-generated images, such as fingers. The video introduces tools like inpaint and depth library as advanced image editing techniques to achieve more accurate and realistic depictions.

💡Artificial Intelligence

Artificial intelligence, or AI, refers to the simulation of human intelligence in machines that are programmed to think and learn like humans. In the context of the video, AI is used to generate images based on prompts and to correct issues within those images. The video discusses the capabilities of AI in the realm of art generation and the tools available to refine and improve the output.


The transcript discusses methods to fix distorted fingers in images generated by AI.

Depth Library is recommended as a tool to correct the shape of fingers.

Negative prompts can be used to avoid common issues like missing or split fingers.

Inpaint can be utilized to correct only the painted-over parts of an image.

The process of using Inpaint for finger correction is explained in detail.

ControlNet and Depth Model need to be introduced for using Depth Library.

The use of Control Weight in Depth Library is discussed for fine-tuning the results.

Combining Depth Library and Inpaint is suggested for the best results.

The video provides a step-by-step guide on how to upload and correct images using Depth Library.

The importance of maintaining the original artwork's style while correcting fingers is emphasized.

The video offers practical solutions for images that were rejected due to finger distortions.

The use of 'punch hands' and 'open hands' prompts in the correction process is mentioned.

A comparison image demonstrates the effectiveness of using Inpaint and Depth Library.

The video concludes with a summary of the three methods discussed for fixing fingers.

The AI-generated content creator, AIジェネ, shares information on AI generation.

The video encourages viewers to try the methods to improve their generated images.

The channel requests viewers to subscribe for more content on AI generation.