← Latest papers
🤖 AI

CoIn: Comprehensive 2D-3D Inpainting with Gaussian Splatting Guidance

CoIn is a novel framework that bridges 2D inpainting models and 3D Gaussian Splatting through a multi-stage consistency pipeline, enabling state-of-the-art 3D scene reconstruction for both object removal and insertion with flexible mask inputs by ensuring bidirectional geometric and photometric consistency.

Original authors: Hana Kim, Minje Kim, Tae-Kyun Kim

Published 2026-06-29
📖 5 min read🧠 Deep dive

Original authors: Hana Kim, Minje Kim, Tae-Kyun Kim

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a photo album of a beautiful room, but in every picture, there's a messy pile of laundry blocking your view of a nice chair. You want to "erase" the laundry and see the chair, or perhaps you want to "add" a new lamp to the scene. Doing this in a single 2D photo is easy for a computer. But doing it across all the photos in the album so that the new chair or lamp looks real from every angle is incredibly hard. If the computer guesses wrong in one photo, the 3D object looks broken or blurry when you try to view it from a different angle.

This paper introduces a new tool called CoIn (Comprehensive 2D-3D Inpainting) that solves this problem by acting like a smart, two-step construction crew.

The Problem: The "3D-First" vs. "2D-First" Dilemma

Previous methods tried to fix the 3D world first (the "3D-First" approach). Imagine trying to rebuild a house by first building the invisible 3D skeleton, then painting the walls. The problem? To build that skeleton correctly, you need perfect blueprints (masks) for every single photo. If your blueprints are even slightly off in one picture, the whole 3D structure collapses, or you accidentally delete parts of the wall you wanted to keep.

Other methods tried to fix the photos first (the "2D-First" approach). They paint over the laundry in every single photo individually. The problem here is that the computer might paint a chair in one photo that looks like a table in the next. When you try to combine them into 3D, the result is a blurry, inconsistent mess.

The CoIn Solution: A "2D-First" Pipeline with a 3D Safety Net

CoIn takes the best of both worlds. It starts by painting the photos (2D) but uses a 3D "safety net" to make sure everything lines up perfectly. Here is how it works, step-by-step:

1. The Rough Draft (2D Inpainting)

First, CoIn uses a powerful AI artist (a diffusion model) to quickly paint over the messy areas in all the photos. It doesn't worry about 3D consistency yet; it just makes sure the pictures look good on their own.

  • Analogy: This is like a sketch artist quickly filling in the blank spots on a comic book page. The drawing looks good, but the characters might look slightly different from page to page.

2. Building the "Reference" Skeleton (Ref-GS)

Next, CoIn takes those rough sketches and builds a temporary 3D model of the scene using Gaussian Splatting (a modern, fast way to represent 3D scenes as thousands of tiny, fuzzy 3D dots).

  • The Trick: Instead of treating all photos equally, CoIn picks one "Reference Photo" (the best angle) and says, "This one is the boss." It builds the 3D model to match that boss photo perfectly, while gently ignoring the other photos if they disagree.
  • Analogy: Imagine a sculptor who has a perfect clay model of a statue based on one photo. If a second photo shows the statue from a weird angle that looks wrong, the sculptor trusts the perfect clay model more than the weird photo.

3. The "Reality Check" (Consistency Loss Guidance)

Now comes the magic. CoIn takes that 3D clay model and projects it back onto the 2D photos. It tells the AI artist: "Hey, look at what the 3D model says this object should look like from this angle. Fix your painting to match the 3D reality."

  • Analogy: This is like a director on a movie set. The actor (the AI artist) improvises a line, but the director (the 3D model) says, "No, in this scene, the character is actually standing behind that tree. Change your line to match the set." This forces all the photos to agree on the 3D shape.

4. The Final Polish (Texture Enhancing)

After the AI has been corrected to match the 3D reality, the images might look a little too smooth or blurry (like a low-resolution photo). CoIn uses a special "Texture Discriminator" to add back the fine details, like the grain of wood or the texture of fabric, making the final result look crisp and real.

  • Analogy: This is like an editor taking a slightly blurry photo and using a high-end filter to sharpen the details, making the skin look real and the fabric look textured, without changing the shape of the person.

Why This Matters

  • It handles "Messy" Masks: Unlike older methods that need perfect, pixel-perfect outlines of the object to be removed, CoIn can work with rough, boxy, or even scribbled masks. It's forgiving of human error.
  • It does both Removal and Insertion: You can use it to erase an object (like the laundry) or add a new one (like a melon or a lamp), and it will look real from every angle.
  • It's Consistent: The biggest win is that if you walk around the 3D scene, the object doesn't warp or glitch. It stays solid and consistent.

The Bottom Line

CoIn is a framework that bridges the gap between 2D image editing and 3D reconstruction. It starts with the flexibility of 2D editing, uses a smart 3D model to force consistency, and then polishes the result to look photorealistic. It's like having a team that can sketch a new room, build a 3D blueprint to ensure the walls line up, and then paint the final details so perfectly that you can't tell it wasn't there all along.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →