Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dvlab-research/AttenNorm

Attentive Normalization for Conditional Image Generation
https://github.com/dvlab-research/AttenNorm

Last synced: 3 months ago
JSON representation

Attentive Normalization for Conditional Image Generation

Awesome Lists containing this project

README

        

# [Attentive Normalization for Conditional Image Generation](https://arxiv.org/pdf/2004.03828.pdf) [[Supp](./media/00213-supp.pdf)]
by [Yi Wang](https://shepnerd.github.io/), [Ying-Cong Chen](https://yingcong.github.io/), [Xiangyu Zhang](), [Jian Sun](http://www.jiansun.org/), [Jiaya Jia](http://jiaya.me/). **The code will be updated**.

## Introduction
This repository gives the implementation of our method in CVPR 2020 paper, '[Attentive Normalization for Conditional Image Generation](https://arxiv.org/pdf/2004.03828.pdf)'. This paper studies conducting visual long-range dependency modeling in an normalization manner, verified both in class-conditional image generation and image inpainting tasks.

## Framework
We __normalize__ the input feature maps __spatially__ according to the __semantic layouts__ predicted from them. It improves the distant relationship in the input as well as preserving semantics spatially.

Framework

Our method is built upon instance normalization (IN). It contains semantic layout learning module (semantic layout prediction + self-sampling regularization) and regional normalization.

## Applications
This module can be applied to the current GAN-based conditional image generation tasks, e.g., class-conditional image generation and image inpainting.
applications

In common practice, Attentive Normalization is placed between the convolutional layer and the activation layer. In the testing phase, we remove the randomness in AttenNorm by switching off its self-sampling branch. Thus, the generation procedure is deterministic only affected by the input.

## Implementation

The TensorFlow implementation of our attentive normalization is given in [inpaint_attnorm](https://github.com/shepnerd/AttenNorm/blob/466d727d27fc17dbccd1a5e2090fe91491a26483/inpaint-attnorm/net/network.py#L8).

## Citation

If our method is useful for your research, please consider citing:

@article{wang2020attentive,
title={Attentive Normalization for Conditional Image Generation},
author={Wang, Yi and Chen, Ying-Cong and Zhang, Xiangyu and Sun, Jian and Jia, Jiaya},
journal={arXiv preprint arXiv:2004.03828},
year={2020}
}

## Acknowledgments
Our TensorFlow code is built upon [DeepFill (v1)](https://github.com/JiahuiYu/generative_inpainting).

### Contact
Please send email to [email protected].