Learning Efficient GANs for Image Translation via Differentiable Masks and co-Attention Distillation

Shaojie Li, Mingbao Lin, Yan Wang, Fei Chao, Ling Shao +1 more
11/17/2020
cs.CV
distillation

Official code: SJLeo/DMAD (51 stars, Python, last commit 2023-07-06).

Abstract

Generative Adversarial Networks (GANs) have been widely-used in image translation, but their high computation and storage costs impede the deployment on mobile devices. Prevalent methods for CNN compression cannot be directly applied to GANs due to the peculiarties of GAN tasks and the unstable adversarial training.

Show full abstract

To solve these, in this paper, we introduce a novel GAN compression method, termed DMAD, by proposing a Differentiable Mask and a co-Attention Distillation. The former searches for a light-weight generator architecture in a training-adaptive manner. To overcome channel inconsistency when pruning the residual connections, an adaptive cross-block group sparsity is further incorporated. The latter simultaneously distills informative attention maps from both the generator and discriminator of a pre-trained model to the searched generator, effectively stabilizing the adversarial training of our light-weight model. Experiments show that DMAD can reduce the Multiply Accumulate Operations (MACs) of CycleGAN by 13x and that of Pix2Pix by 4x while retaining a comparable performance against the full model. Our code can be available at https://github.com/SJLeo/DMAD.

View on arXivView PDF

Code Implementations(1)

SJLeo/DMADOfficial100%

Pytorch implementation of our paper accepted by IEEE TMM, 2022 --Learning Efficient GANs for Image Translation via Differentiable Masks and co-Attention Distillation

515Python, ShellJul 23, 20203 years ago

Similar Papers

Cite this paper

@article{li2020learning,
  title  = {Learning Efficient GANs for Image Translation via Differentiable Masks and co-Attention Distillation},
  author = {Shaojie Li and Mingbao Lin and Yan Wang and Fei Chao and Ling Shao and Rongrong Ji},
  year   = {2020},
  eprint = {2011.08382},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.08382}
}

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

Discussion