Continuously Masked Transformer for Image Inpainting

Keunsoo Ko, Chang-Su Kim
2/14/2026

No official code found. Best implementation: keunsoo-ko/CMT (29 stars, last commit 2023-11-20).

Abstract

A novel continuous-mask-aware transformer for image inpainting, called CMT, is proposed in this paper, which uses a continuous mask to represent the amounts of errors in tokens. First, we initialize a mask and use it during the self-attention. To facilitate the masked self-attention, we also introduce the notion of overlapping tokens. Second, we update the mask by modeling the error propagation during the masked self-attention. Through several masked self-attention and mask update (MSAU) layers, we predict initial inpainting results. Finally, we refine the initial results to reconstruct a more faithful image. Experimental results on multiple datasets show that the proposed CMT algorithm outperforms existing algorithms significantly. The source codes are available at https://github.com/keunsoo-ko/CMT.

DOISemantic Scholar

Code Implementations(1)

keunsoo-ko/CMTCommunity68%

Continuously Masked Transformer for Image Inpainting, ICCV, 2023

294PythonAug 5, 20232 years ago

Similar Papers

Cite this paper

@article{ko2026continuously,
  title  = {Continuously Masked Transformer for Image Inpainting},
  author = {Keunsoo Ko and Chang-Su Kim},
  year   = {2026},
  doi    = {10.1109/ICCV51070.2023.01211},
  url    = {https://doi.org/10.1109/ICCV51070.2023.01211},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/0ac69995e74364bb4281cc97572f6a2fc5c2034c.svg)](https://codeofpaper.com/paper/0ac69995e74364bb4281cc97572f6a2fc5c2034c)

Discussion