二十四格24frames中文
Image · AI WorkflowNO.150 / 166
Watch: One brushstroke of selection on the cup, and the prompt says only what should be there: the cup becomes a vase of flowers, and not a single pixel of the rest of the image changes.A line-art demo that only illustrates the technique, not finished footage.

Image · AI Workflow

Inpainting局部重绘

Mark only the part of the image you're unhappy with and regenerate it, keeping the rest. Fixing hands, swapping props and changing expressions all rely on it.

Category
AI Workflow
Group
Advanced
Medium
Image
Library
150 / 166

This is a step in making a film, not a visual technique. For the whole process, see Make an AI short from scratch.

Prompt templates are written from how generation models usually behave and have not yet been verified one by one with real generations. “Common pitfalls” are judgment from experience, not official limits.

01

When to use it

When an image is 90% right and one thing went wrong (a hand, text, an object).

02

Prompt template

(after masking the character's right hand) a natural relaxed right hand with five fingers, lightly holding the handle of a white coffee cup, lighting matching the original.
03

Sample prompt · generate an image directly

The technique comes first, followed by the subject, scene, details and aspect ratio. Paste it straight into an image model and swap in your own subject.

(After painting a mask over the person's right hand and the cup) A naturally relaxed right hand with five fingers lightly holding the handle of a white ceramic coffee cup, a little steam rising from the cup, light from the left-hand window matching the original image.
04

Common pitfalls

  • Mask too small, so the new content doesn't blend with its surroundings.
  • The prompt describes the whole image and the model paints something else into the mask.
05

Parameter tips

Make the selection a little bigger than the problem area; the prompt only says what should be inside the selection.