项目作者: homles11

项目描述 :
Code and Pretrained model for IGCV3
高级语言: Python
项目地址: git://github.com/homles11/IGCV3.git
创建时间: 2018-05-17T03:16:26Z
项目社区:https://github.com/homles11/IGCV3

开源协议:

下载


IGCV3:Interleaved Low-Rank Group Convolutions for Efficient Deep Neural Networks.

The codes are based on https://github.com/liangfu/mxnet-mobilenet-v2.

IGCV3: Interleaved Low-Rank Group Convolutions for Efficient Deep Neural Networks. Ke Sun, Mingjie Li, Dong Liu, and Jingdong Wang.
arXiv preprint arXIV:1806.00178 (2017)

Prior Works

Interleaved Group Convolutions (IGCV1)

Interleaved Group Convolutions use a pair of two successive interleaved group convolutions: primary group convolution and secondary group convolution. The two group convolutions are complementary.

IGC

Illustrating the interleaved group convolution, with L = 2 primary partitions and M = 3 secondary partitions. The convolution for each primary partition in primary group convolution is spatial. The convolution for each secondary partition in secondary group convolution is point-wise (1 × 1).

You can find its code here!

Interleaved Structured Sparse Convolution (IGCV2)

IGCV2 extends IGCV1 by decomposing the convolution matrix in to more structured sparse matrices, which uses a depth-wise convoultion (3 × 3) to replace the primary group convoution in IGC and uses a series of point-wise group convolutions (1 × 1).

Interleaved Low-Rank Group Convolutions (IGCV3)

We proposes Interleaved Low-Rank Group Convolutions, named IGCV3, extend IGCV2 by using low-rank group convolutions to replace group convoutions in IGCV2. It consists of a channel-wise spatial convolution, a low-rank group convolution with groups that reduces the width and a low-rank group convolution with groups which expands the widths back.

IGCV3

Illustrating the interleaved branches in IGCV3 block. The first group convolution is a group 1 × 1 convolution with =2 groups. The second is a channel-wise spatial convolution. The third is a group 1 × 1 convolution with =2 groups.

Results

CIFAR Experiments

We compare our IGCV3 network with other Mobile Networks on CIFAR datasets which illustrated our model’ advantages on small dataset.

Comparison with Other Mobile Networks

Classification accuracy comparisons of MobileNetV2 and IGCV3 on CIFAR datasets. “Network s×” means reducing the number of parameter in “Network 1.0×” by s times.







#Params (M) CIFAR-10 CIFAR100
MobileNetV2(our impl.) 2.394.56 77.09
IGCV3-D 0.5× 1.294.73 77.29
IGCV3-D 0.7× 1.794.92 77.83
IGCV3-D 1.0× 2.494.96 77.95

Comparison with IGCV2





#Params (M) CIFAR-10 CIFAR100
IGCV2 2.494.76 77.45
IGCV3-D 2.494.96 77.95

ImageNet Experiments

Comparison with MobileNetV2 on ImageNet.

Before Retrain





#Params (M) Top-1 Top-5
MobileNetV2 3.470.0 89.0
IGCV3-D 3.570.6 89.7

After Retrain





#Params (M) Top-1 Top-5
MobileNetV2 3.471.4 90.1
IGCV3-D 3.5 72.2 90.5

IGCV3 pretrained model is released in models folder.

Requirements

How to Train

Current code supports training IGCV3s on ImageNet. All the networks are contained in the symbol folder.

For example, running the following command can train the IGCV3 network on ImageNet.

  1. python train_imagenet.py --network=IGCV3 --multiplier=1.0 --gpus=0,1,2,3,4,5,6,7 --batch-size=96 --data-dir=<dataset location>

multiplier is means how many times wider than the original IGCV3 network whose width is the same as MobileNet-V2.

Citation

Please cite our papers in your publications if it helps your research:

  1. @article{WangWZZ16,
  2. author = {Jingdong Wang and
  3. Zhen Wei and
  4. Ting Zhang and
  5. Wenjun Zeng},
  6. title = {Deeply-Fused Nets},
  7. journal = {CoRR},
  8. volume = {abs/1605.07716},
  9. year = {2016},
  10. url = {http://arxiv.org/abs/1605.07716}
  11. }
  1. @article{ZhaoWLTZ16,
  2. author = {Liming Zhao and
  3. Jingdong Wang and
  4. Xi Li and
  5. Zhuowen Tu and
  6. Wenjun Zeng},
  7. title = {On the Connection of Deep Fusion to Ensembling},
  8. journal = {CoRR},
  9. volume = {abs/1611.07718},
  10. year = {2016},
  11. url = {http://arxiv.org/abs/1611.07718}
  12. }
  1. @article{DBLP:journals/corr/ZhangQ0W17,
  2. author = {Ting Zhang and
  3. Guo{-}Jun Qi and
  4. Bin Xiao and
  5. Jingdong Wang},
  6. title = {Interleaved Group Convolutions for Deep Neural Networks},
  7. journal = {ICCV},
  8. volume = {abs/1707.02725},
  9. year = {2017},
  10. url = {http://arxiv.org/abs/1707.02725}
  11. }
  1. @article{DBLP:journals/corr/abs-1804-06202,
  2. author = {Guotian Xie and
  3. Jingdong Wang and
  4. Ting Zhang and
  5. Jianhuang Lai and
  6. Richang Hong and
  7. Guo{-}Jun Qi},
  8. title = {{IGCV2:} Interleaved Structured Sparse Convolutional Neural Networks},
  9. journal = {CVPR},
  10. volume = {abs/1804.06202},
  11. year = {2018},
  12. url = {http://arxiv.org/abs/1804.06202},
  13. archivePrefix = {arXiv},
  14. eprint = {1804.06202},
  15. timestamp = {Wed, 02 May 2018 15:55:01 +0200},
  16. biburl = {https://dblp.org/rec/bib/journals/corr/abs-1804-06202},
  17. bibsource = {dblp computer science bibliography, https://dblp.org}
  18. }
  1. @article{KeSun18,
  2. author = {Ke Sun and
  3. Mingjie Li and
  4. Dong Liu and
  5. Jingdong Wang},
  6. title = {IGCV3: Interleaved Low-Rank Group Convolutions for Efficient Deep Neural Networks},
  7. journal = {CoRR},
  8. volume = {abs/1806.00178},
  9. year = {2018},
  10. url = {http://arxiv.org/abs/1806.00178}
  11. }