HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms

Mahmoud Afifi, Marcus A. Brubaker, Michael S. Brown
11/23/2020
cs.CV

Official code: mahmoudnafifi/HistoGAN (294 stars, Jupyter Notebook, MIT, PyTorch, last commit 2023-02-25).

Abstract

While generative adversarial networks (GANs) can successfully produce high-quality images, they can be challenging to control. Simplifying GAN-based image generation is critical for their adoption in graphic design and artistic work.

Show full abstract

This goal has led to significant interest in methods that can intuitively control the appearance of images generated by GANs. In this paper, we present HistoGAN, a color histogram-based method for controlling GAN-generated images' colors. We focus on color histograms as they provide an intuitive way to describe image color while remaining decoupled from domain-specific semantics. Specifically, we introduce an effective modification of the recent StyleGAN architecture to control the colors of GAN-generated images specified by a target color histogram feature. We then describe how to expand HistoGAN to recolor real images. For image recoloring, we jointly train an encoder network along with HistoGAN. The recoloring model, ReHistoGAN, is an unsupervised approach trained to encourage the network to keep the original image's content while changing the colors based on the given target histogram. We show that this histogram-based approach offers a better way to control GAN-generated and real images' colors while producing more compelling results compared to existing alternative strategies.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Reference code for the paper HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms (CVPR 2021).

29429Jupyter Notebook, PythonFeb 21, 20203 years agoMIT
color-histogramcolor-transfercvprcvpr2021deep-learning+14 more

Similar Papers

Cite this paper

@article{afifi2020histogan,
  title  = {HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms},
  author = {Mahmoud Afifi and Marcus A. Brubaker and Michael S. Brown},
  year   = {2020},
  eprint = {2011.11731},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.11731}
}

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

Discussion