Home

Awesome

Switchable Whitening (SW)

Paper

Xingang Pan, Xiaohang Zhan, Jianping Shi, Xiaoou Tang, Ping Luo. "Switchable Whitening for Deep Representation Learning", ICCV2019.

Introduction

Requirements

Results

Top1/Top5 error on the ImageNet validation set are reported. The pretrained models with SW are available at google drive or BaiduYun(password: xkdi).

ModelBNSNBWSW (BW+IW)
ResNet-5023.58/7.0023.10/6.5523.31/6.7222.07/6.04
ResNet-10122.48/6.2322.01/5.9122.10/5.9820.87/5.54
DenseNet-12124.96/7.8524.38/7.2624.56/7.5523.56/6.85
DenseNet-16924.02/7.0623.16/6.5523.24/6.6522.48/6.29

Before Start

  1. Clone the repository

    git clone https://github.com/XingangPan/Switchable-Whitening.git
    
  2. Download ImageNet dataset. You may follow the instruction at fb.resnet.torch to process the validation set.

Training

  1. Train with nn.DataParallel
    sh experiments/resnet50_sw/run.sh  # remember to modify --data to your ImageNet path
    
  2. Distributed training based on slurm
    sh experiments/resnet50_sw/run_slurm.sh ${PARTITION}
    

Practical concerns

Citing SW

@inproceedings{pan2018switchable,
  author = {Pan, Xingang and Zhan, Xiaohang and Shi, Jianping and Tang, Xiaoou and Luo, Ping},
  title = {Switchable Whitening for Deep Representation Learning},
  booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
  month = {October},
  year = {2019}
}