Remove an object with AI in Photoshop

This tutorial presents the removal, by artificial intelligence (AI), of an unwanted object in an image.

Catalog reference: Photoshop Tutorial_0021.

Identify the level of each chapter

🟢 All levels

  • Core concepts to master.
  • Recommended for all users.

🟡 Intermediate level

  • Requires mastery of the core concepts.
  • Commonly used techniques.

🔴 Expert level

  • Advanced techniques.
  • Used in specific or professional cases.

🟢 Prepare the starting image

The starting image contains metal barriers in the foreground, which must be removed. They are indicated by the orange arrow in the illustration below.

Observe the starting image with metal barriers in the foreground

🟡 Select the object to remove

Select the Pen Tool (marker 1) and check that the Path option is selected (marker 2).

Select the Pen Tool and the Path option in the options bar

With the Pen Tool, roughly outline the object to remove, here the barriers.

Roughly outline the barriers with the Pen Tool

To turn the outline into a selection, open the Paths panel (marker 1), then click the button showing a dotted circle (marker 2).

Turn the path into a selection with the Paths panel

The outline is now a selection, as in the illustration below.

Observe the selection of the barriers shown as dotted lines

🟢 Remove the object with AI

Click the Generative Fill button to use AI content generation.

Click the Generative Fill button of the contextual bar

If the Contextual Task Bar does not appear, open the Window menu (marker 1), then check the Contextual Task Bar line (marker 2).

Display the Contextual Task Bar from the Window menu

In the Contextual Task Bar, enter the text Delete selected object (marker 1), then click the Generate button (marker 2).

Enter the prompt Delete selected object, then click Generate

The AI starts generating three proposals to replace the selected object.

Observe the start of the generation of the three AI proposals

The AI proposals appear in the panel on the right of the image. The illustration below shows proposal 1.

Observe AI proposal 1 in the panel on the right

Proposal 2:

Observe AI proposal 2 in the panel on the right

Proposal 3:

Observe AI proposal 3 in the panel on the right

The chosen proposal appears as a new layer in the Layers panel.

Locate the generative layer created by the AI in the Layers panel

The illustration below shows the final image, which includes AI proposal 3.

Observe the final image without the barriers, with proposal 3 chosen