The Contextual Loss for Image Transformation with Non-Aligned Data

Roey Mechrez, Itamar Talmi, Lihi Zelnik-Manor
3/6/2018
434 citations
cs.CVcs.LG

Official code: roimehrez/contextualLoss (492 stars, Python, last commit 2021-07-08).

Abstract

Feed-forward CNNs trained for image transformation problems rely on loss functions that measure the similarity between the generated image and a target image. Most of the common loss functions assume that these images are spatially aligned and compare pixels at corresponding locations.

Show full abstract

However, for many tasks, aligned training pairs of images will not be available. We present an alternative loss function that does not require alignment, thus providing an effective and simple solution for a new space of problems. Our loss is based on both context and semantics -- it compares regions with similar semantic meaning, while considering the context of the entire image. Hence, for example, when transferring the style of one face to another, it will translate eyes-to-eyes and mouth-to-mouth. Our code can be found at https://www.github.com/roimehrez/contextualLoss

View on arXivView PDF

Code Implementations(1)

The Contextual Loss

49276PythonFeb 5, 20185 years ago

Similar Papers

Cite this paper

@article{mechrez2018contextual,
  title  = {The Contextual Loss for Image Transformation with Non-Aligned Data},
  author = {Roey Mechrez and Itamar Talmi and Lihi Zelnik-Manor},
  year   = {2018},
  eprint = {1803.02077},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.02077}
}

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

Discussion