Home

Awesome

Decorrelated Batch Normalization

This project provides the Tensorflow implementation of ZCA whitening described in paper:

Decorrelated Batch Normalization(CVPR 2018)

and IterNorm whitening in paper:

Iterative Normalization: Beyond Standardization towards Efficient Whitening(CVPR 2019)

Requirements

Running experiments

To reproduce the VGG-network experiment, just run vgg.py and pass the config parameters. For example:

python vgg.py --type=A --batch=256 --lr=0.1 --method=zca --m=0

where the "type" denotes the type of VGG-network architecture, "batch" denotes the batch size, "lr" denotes the initial learning rate, "method" denotes the whitening method (zca, iter_norm), "m" denotes the group size (0 indicates full whitening).

Usage

An example can be found in vgg.py.

  1. Copy the common/normalization.py to your root directory and import it.
  2. Build a DecorelationNormalization layer to replace the batch normalization layer.
from common import normalization

...
feature = normalization.DecorelationNormalization(decomposition='iter_norm_wm',
                                                  iter_num=5)(feature)

Reference

More deteils please refer to the implementations: