Contact Us
Apps Page Background Image
Learn/Course/Auto1111 Tutorial Chapter 7 The Application of Inpainting

FeaturedAuto1111 Tutorial Chapter 7 The Application of Inpainting

1
1
0
mimicpc
08/05/2024
ComfyUI
Inpainting is a method used to solve this problem by selectively editing and correcting the flawed parts of the image.


AI-generated images offer convenience but also bring some uncertainties. For instance, AI-generated images often have issues with hand representation. However, regenerating the entire image to fix such details is usually not cost-effective. Inpainting is a method used to solve this problem by selectively editing and correcting the flawed parts of the image.

prompt: haruno sakura, 1girl, solo, looking at viewer, short hair, shirt, closed mouth, green eyes, jacket, upper body, pink hair, flower, hairband, sleeveless, petals, sleeveless shirt, headband, hair intakes, black background, cherry blossoms, red shirt, red jacket, zipper, red hairband, zipper pull tab, forehead protector, sleeveless jacket, konohagakure symbol

auto1111-image

The Basis of Inpainting

Firstly, open auto1111 and then click "inpaint" which besides sketch.

 auto1111-basic-of-inpaint

Then paint the area you want to improve, for this image the details of right hand should be inpaint.

 auto1111-detai-image

After that, we should look at the parameter settings.

Mask refers to the area you paint and wish to correct or improve. The area outside the mask is the non-masked area. These areas are managed under the mask mode options: inpaint masked and inpaint not masked.

For the masked content, original means keeping whatever was originally there. The original image is used as input for denoising and redrawing, resulting in an effect close to the original image. Fill refers to filling the masked area with colors from the image. The original image is highly blurred, then denoised, and redrawn, resulting in a more distinct effect from the original.

Latent noise and latent nothing are advanced options and not recommended for beginners.

The whole picture section under inpaint area refers to redrawing the entire image and blending the modified parts back together. Only masked refers to repainting only the masked part and a small area around it separately.

Only masked padding, pixels affect the extraction of the size of the surrounding area in only-masked mode.

Mask blur is used to soften the edges within images, smoothing the transition of the inpainted area into the image.



 auto11111-image-skectch

Remeber to adjust the prompt:

haruno sakura, 1girl, solo, looking at viewer, short hair, shirt, closed mouth, green eyes, jacket, upper body, pink hair, flower, hairband, sleeveless, petals, sleeveless shirt, headband, hair intakes, black background, cherry blossoms, red shirt, red jacket, zipper, red hairband, zipper pull tab, forehead protector, sleeveless jacket, konohagakure symbol, highly detailed hand, five fingers

Then click generate.

auto1111-image-generate





Inpaint Sketch Application

Inpaint sketch enhances the flexibility and accuracy of inpainting, allowing for more precise corrections. Let's use this function to improve the hand details.

First, click the palette and choose black.. Then simply draw the shape of the face mask. Finally, click generate to create the new image.

 inpaint-sketch-application

 auto1111-creat-new-image


How to download Auto1111

For Users Familiar with Python and Git:

  1. Download and Install via Git:


  • Navigate into the cloned directory (StableDiffusion) and proceed with installation as per the provided documentation.

For Beginners or Those Using an Integration Pack:

  1. Download and Install Using an Integration Pack:
    • Visit the official website of Stable Diffusion or an integration pack provider like auto1111. https://github.com/AUTOMATIC1111/stable-diffusion-webui
    • Download the integration package (typically a zip file).
    • Use decompression software such as Bandzip or WinRAR to extract the downloaded zip file.
    • Or through a cloud service vendor, who generally has Stable diffusion pre-built and setup.
  2. Setting Up Stable Diffusion:
    • Create a new folder on your computer for Stable Diffusion. Ensure the folder path contains only English characters and has sufficient local disk storage.
    • Unzip the contents of the downloaded zip file into this new folder.
  3. Running Stable Diffusion:
    • Locate and double-click the run.bat file within the Stable Diffusion folder.
    • Wait for the application to load; this may take a moment.
    • The Stable Diffusion WebUI homepage should automatically open in your default web browser.
  4. Operating Stable Diffusion:
    1. Keep the command-line interface (CLI) window open while using the Stable Diffusion WebUI.
    2. Interact with the WebUI through your browser to generate AI images or perform other tasks.
    3. Remember to keep the command-line interface running while using the WebUI, and close it when you're done operating in the browser.

 auto1111-stablediffusion


Or you could use Mimicpc, all done for you!

https://www.mimicpc.com/?co-from=HN%3Futm_source%3Dstartuptile.com








Catalogue