DEDUPED Hot AI repos, turned into use cases Get 5 a day

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.

  • 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.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page