Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvlab-research/AttenNorm
Attentive Normalization for Conditional Image Generation
https://github.com/dvlab-research/AttenNorm
Last synced: about 1 month ago
JSON representation
Attentive Normalization for Conditional Image Generation
- Host: GitHub
- URL: https://github.com/dvlab-research/AttenNorm
- Owner: dvlab-research
- License: mit
- Created: 2020-05-13T11:36:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-05T15:42:26.000Z (over 4 years ago)
- Last Synced: 2024-05-18T22:33:15.709Z (7 months ago)
- Language: Python
- Size: 18.2 MB
- Stars: 71
- Watchers: 9
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-normalization-techniques - [Python Reference
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.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.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].