Segment Anything Model Meets Image Harmonization

Haoxing Chen, Yaohui Li, Zhangxuan Gu, Zhuoer Xu, Jun Lan +1 more
12/20/2023
cs.CV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Image harmonization is a crucial technique in image composition that aims to seamlessly match the background by adjusting the foreground of composite images. Current methods adopt either global-level or pixel-level feature matching. Global-level feature matching ignores the proximity prior, treating foreground and background as separate entities. On the other hand, pixel-level feature matching loses contextual information. Therefore, it is necessary to use the information from semantic maps that describe different objects to guide harmonization. In this paper, we propose Semantic-guided Region-aware Instance Normalization (SRIN) that can utilize the semantic segmentation maps output by a pre-trained Segment Anything Model (SAM) to guide the visual consistency learning of foreground and background features. Abundant experiments demonstrate the superiority of our method for image harmonization over state-of-the-art methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2023segment,
  title  = {Segment Anything Model Meets Image Harmonization},
  author = {Haoxing Chen and Yaohui Li and Zhangxuan Gu and Zhuoer Xu and Jun Lan and Huaxiong Li},
  year   = {2023},
  eprint = {2312.12729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.12729v1}
}

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

Discussion