DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to remove or replace one object without touching the rest with Kokon

Paint over an area, pick Remove or Replace, and let the model edit only that region.

Short answer: Complete the Kokon setup, as described in the Install section; then drop the photo into Kokon; Paint over the area you want to change with the brush. All steps.

  • Content
  • Beginner
  • 30 minutes
  • From the README
  • Any agent

Who it is forA seller, designer or family photographer with one unwanted object or item to swap in an otherwise good photo.

The problemCleaning up one item by hand in a photo editor takes time, and a full-image AI edit often changes the rest of the picture.

The outcomeA photo where only the painted area changed, with the rest of the image left as it was.

What you need first

  • Windows 10 64-bit or later, an Apple M1 or newer Mac on macOS 15 or later, or x86-64 Linux
  • A graphics card with 12 GB VRAM or more (NVIDIA recommended), or an Apple Silicon Mac with 16 GB unified memory or more
  • 15 GB of free disk space (25 GB recommended) and about 12 GB of model downloads on first run
  • A photo to edit, or a sentence describing the image to create

Steps

  1. Complete the Kokon setup, as described in the Install section.
  2. Drop the photo into Kokon.
  3. Paint over the area you want to change with the brush.
  4. Choose Remove for an object, or Replace and describe the new item, such as 'Replace the yellow armchair with a deep green velvet sofa'.
  5. Compare the result with the original using Slider, Flicker or Changes, and undo with Ctrl + Z if needed.

Prompt for your agent

In the Kokon app, remove the object at the painted area of <photo path> and save the result as <output path>. Expected output: a new image file with the same size as the source. Verify by comparing the unpainted parts of the source and result images to confirm they are unchanged.

Caveat. The painted-area workflow depends on the model setup finishing first, and Remove needs no prompt while Replace needs a clear description of the new item.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for GabrieleLozupone/kokon and "Remove or replace one object without touching the rest"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer