Video Inpainting Localization with Contrastive Learning

Zijie Lou, Gang Cao, Man Lin
6/25/2024
cs.CVcs.CR

Official code: multimediaFor/ViLocal (12 stars, last commit 2025-08-09).

Abstract

Deep video inpainting is typically used as malicious manipulation to remove important objects for creating fake videos. It is significant to identify the inpainted regions blindly. This letter proposes a simple yet effective forensic scheme for Video Inpainting LOcalization with ContrAstive Learning (ViLocal). Specifically, a 3D Uniformer encoder is applied to the video noise residual for learning effective spatiotemporal forensic features. To enhance the discriminative power, supervised contrastive learning is adopted to capture the local inconsistency of inpainted videos through attracting/repelling the positive/negative pristine and forged pixel pairs. A pixel-wise inpainting localization map is yielded by a lightweight convolution decoder with a specialized two-stage training strategy. To prepare enough training samples, we build a video object segmentation dataset of 2500 videos with pixel-level annotations per frame. Extensive experimental results validate the superiority of ViLocal over state-of-the-arts. Code and dataset will be available at https://github.com/multimediaFor/ViLocal.

View on arXivView PDF

Code Implementations(1)

Source code of the paper: Video Inpainting Localization with Contrastive Learning, IEEE SPL 2025.

120PythonJun 23, 20241 years ago

Similar Papers

Cite this paper

@article{lou2024video,
  title  = {Video Inpainting Localization with Contrastive Learning},
  author = {Zijie Lou and Gang Cao and Man Lin},
  year   = {2024},
  eprint = {2406.17628},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.17628v1}
}

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/2406.17628.svg)](https://codeofpaper.com/paper/2406.17628)

Discussion