Modulated Contrast for Versatile Image Synthesis

Fangneng Zhan, Jiahui Zhang, Yingchen Yu, Rongliang Wu, Shijian Lu
3/17/2022
cs.CV
contrastive-ssl

Official code: fnzhan/MoNCE (36 stars, Python, MIT, last commit 2022-12-12).

Abstract

Perceiving the similarity between images has been a long-standing and fundamental problem underlying various visual generation tasks. Predominant approaches measure the inter-image distance by computing pointwise absolute deviations, which tends to estimate the median of instance distributions and leads to blurs and artifacts in the generated images.

Show full abstract

This paper presents MoNCE, a versatile metric that introduces image contrast to learn a calibrated metric for the perception of multifaceted inter-image distances. Unlike vanilla contrast which indiscriminately pushes negative samples from the anchor regardless of their similarity, we propose to re-weight the pushing force of negative samples adaptively according to their similarity to the anchor, which facilitates the contrastive learning from informative negative samples. Since multiple patch-level contrastive objectives are involved in image distance measurement, we introduce optimal transport in MoNCE to modulate the pushing force of negative samples collaboratively across multiple contrastive objectives. Extensive experiments over multiple image translation tasks show that the proposed MoNCE outperforms various prevailing metrics substantially. The code is available at https://github.com/fnzhan/MoNCE.

View on arXivView PDF

Code Implementations(1)

fnzhan/MoNCEOfficial100%
MIT

[CVPR 2022] Modulated Contrast for Versatile Image Synthesis

365Python, ShellNov 13, 20213 years agoMIT
contrastive-learningimage-synthesis

Similar Papers

Cite this paper

@article{zhan2022modulated,
  title  = {Modulated Contrast for Versatile Image Synthesis},
  author = {Fangneng Zhan and Jiahui Zhang and Yingchen Yu and Rongliang Wu and Shijian Lu},
  year   = {2022},
  eprint = {2203.09333},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09333}
}

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

Discussion