Skip to content

Usage Guide

John-Henry Lim edited this page Mar 25, 2023 · 17 revisions

Community Videos

Tips

  • Keyboard shortcuts can be found at Menubar > Tools > Scripts.
  • SD Upscale (with no upscaler + selected region) is essentially a better img2img.
  • SD Upscale/img2img with low CFG & Denoising strength is useful for removing inpaint boundaries when inpaint blur is insufficient.
  • Use soft eraser on SD Upscale/img2img to selectively keep features & erase img2img "edge".
  • https://github.com/wojtryb/Shortcut-Composer: Good Krita keybind creator that can make workflows more smooth, suggested in #78.

Inpainting

If coming from AUTOMATIC1111's webUI, you may be used to:

  • Using white to color the inpainting mask.
  • Using full resolution inpainting and mask blur.

However, auto-sd-paint-ext's inpainting is more sophisticated:

  • The alpha/transparency channel is used for the inpainting mask (any color can be used).
  • Use the selection area to select what region the model sees.
  • The actual blur in the inpainting mask will be used as the mask blur.

Update: To make life easier, inpaint mask weight, used for specialized inpainting models, is now directly adjustable from the inpainting tab.

Quick Jump:

Inpainting step by step

  1. (Optional) Right click inside the Layers panel and click "New Layer from Visible".

image

  1. (Optional) Make modifications such as sketching, smudging or erasing over parts of the new layer.
    • If making modifications, use preserve for the Inpaint Fill.
  2. Click the plus sign in the Layers panel to create a new layer in which to draw the inpaint mask.

image

  1. Draw the inpaint mask. To achieve mask blur, you can use "blurry" brushes such as the airbrush, or apply blur to the layer after you are done drawing (see How to perform Mask Blur).
  2. Select the region you want the model to see while inpainting, similar to how full resolution inpainting works (see How to perform Full Resolution Inpainting).
  3. Ensure the inpaint mask layer is selected and press "Start inpaint".
    • You might want to increase the denoising strength, number of steps or try other samplers.

image

How to do Mask Blur in Krita

In AUTOMATIC1111's webUI, mask blur applies Gaussian blur to your inpaint mask before inpainting.

In Krita, you can also apply a Gaussian blur to your inpaint mask:

image

Or you may use a softer brush that has blur/fade effect (for example, airbrush) when drawing the inpaint mask:

image

How to do Full Resolution Inpainting in Krita

In AUTOMATIC1111's webUI, usually the whole image is given to the Stable Diffusion model when inpainting an area. Turning on Full Resolution Inpainting causes the webUI to crop the image to only the region being inpainted plus some padding. This allows the model to inpaint at full resolution, before pasting the generated inpaint back into the original image.

In Krita, cropping the image given to the model is more intuitive, you just need to select the region you want the model to see.

image

This does the exact same thing as Full Resolution Inpainting, but with much more control over what the model sees.

Others

TODO: write this guide

For now, watch the (Outdated) Full Usage Demo:

Youtube Video