Nm Logo

AI Inpainting exercise

Version 1.0

Introduction

Inpainting is a capability of some AI image generators that allows the user to modify only part of a source image. This exercise shows how to use Leonardo.ai for this purpose.

Process

  1. Start from app.leonardo.ai
  2. Click on Canvas.
  3. Click "Upload image" at left (from your hard drive, a previously generated image, or community feed)
  4. Adjust the box so it is as small as possible and still enclosing the area to modify. You can move it with the selection tool at left and change its size in the controls at right.
  5. "Draw mask" to retain some subject and style (eg, to add sunglasses) or "Erase" to completely remove (eg, to change the background).
  6. Enter a prompt in the box to add to or modify the masked/erased region. Use specific, complete sentences.
  7. You can add a Negative Prompt via the settings button next to the text box.
  8. Cycle through generations with arrow buttons and click Accept or start again.
  9. Click download to save your final image.

Recommendations

General

To add a feature:

To replace a feature:

For more info