mmpretrain/configs/resnet
Zhicheng Chen d56170a734
[Feature] Support EfficientNet (#649)
* add config for resnest test

* fix config

* add label smoothing

* add memcached

* minor fix

* fix bug

* fix config

* add config

* minor fix

* fix configs

* use EResize

* change interpolation

* add more configs

* add docsting

* add unittest

* remove unnecessary changes

* minor fix

* add more docstring

* fix linting

* add efficient backbone

* add config

* add Edge Residual

* fix bug

* remove unnecessary files

* refactor

* add resize in crop to ensure crop size is output size

* fix bug and add comments

* test

* fix

* add more configs

* add more configs

* add more configs

* fix bug

* add model zoo

* fix

* reorganize code

* add edge tpu

* add edge tpu converter

* rename

* update readme

* reorganize code and config

* Rename configs of EfficientNet, and add metafile & model_zoo

* Remove `backend='pillow'`

* Add comments about EfficientNet-EdgeTPU

* Rename the convert tool of EfficientNet.

* Refactor EfficientNet and update docstring.

* Update EfficientNet-EdgeTPU config

* Fix unit tests

Co-authored-by: lixinran <lixr423@outlook.com>
Co-authored-by: lixinran <lixinran@sensetime.com>
Co-authored-by: mzr1996 <mzr1996@163.com>
2022-01-25 12:14:17 +08:00
..
README.md [Feature] Support EfficientNet (#649) 2022-01-25 12:14:17 +08:00
metafile.yml [Enhancement] Improve the accuracy of ResNet (#572) 2021-12-29 10:58:42 +08:00
resnet18_8xb16_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet18_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet18_b16x8_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet18_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet34_8xb16_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet34_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet34_b16x8_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet34_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb16-mixup_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb16_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb16_cifar100.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-coslr-preciseBN_in1k.py [Feature] Add Precise BN (#401) 2021-12-24 16:28:42 +08:00
resnet50_8xb32-coslr_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-cutmix_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-fp16-dynamic_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-fp16_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-lbs_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32-mixup_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_8xb128_coslr-90e_in21k.py [Feature] Support ImageNet21k dataset. (#461) 2021-10-28 15:22:08 +08:00
resnet50_8xb256-rsb-a1-600e_in1k.py Fix ResNet rsb config 2021-12-31 11:08:11 +08:00
resnet50_8xb256-rsb-a2-300e_in1k.py Fix ResNet rsb config 2021-12-31 11:12:21 +08:00
resnet50_8xb256-rsb-a3-100e_in1k.py Fix ResNet rsb config 2021-12-31 11:12:21 +08:00
resnet50_32xb64-warmup-coslr_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_32xb64-warmup-lbs_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_32xb64-warmup_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b16x8_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b16x8_cifar10_mixup.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b16x8_cifar100.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b32x8_coslr_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b32x8_cutmix_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b32x8_label_smooth_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b32x8_mixup_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b64x32_warmup_coslr_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b64x32_warmup_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet50_b64x32_warmup_label_smooth_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet101_8xb16_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet101_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet101_b16x8_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet101_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet152_8xb16_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet152_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet152_b16x8_cifar10.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnet152_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d50_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d50_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d101_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d101_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d152_8xb32_in1k.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
resnetv1d152_b32x8_imagenet.py [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00

README.md

Deep Residual Learning for Image Recognition

Abstract

Deeper neural networks are more difficult to train. We present a residual learning framework to ease the training of networks that are substantially deeper than those used previously. We explicitly reformulate the layers as learning residual functions with reference to the layer inputs, instead of learning unreferenced functions. We provide comprehensive empirical evidence showing that these residual networks are easier to optimize, and can gain accuracy from considerably increased depth. On the ImageNet dataset we evaluate residual nets with a depth of up to 152 layers---8x deeper than VGG nets but still having lower complexity. An ensemble of these residual nets achieves 3.57% error on the ImageNet test set. This result won the 1st place on the ILSVRC 2015 classification task. We also present analysis on CIFAR-10 with 100 and 1000 layers.

The depth of representations is of central importance for many visual recognition tasks. Solely due to our extremely deep representations, we obtain a 28% relative improvement on the COCO object detection dataset. Deep residual nets are foundations of our submissions to ILSVRC & COCO 2015 competitions, where we also won the 1st places on the tasks of ImageNet detection, ImageNet localization, COCO detection, and COCO segmentation.

Citation

@inproceedings{he2016deep,
  title={Deep residual learning for image recognition},
  author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={770--778},
  year={2016}
}

Results and models

Cifar10

Model Params(M) Flops(G) Top-1 (%) Top-5 (%) Config Download
ResNet-18-b16x8 11.17 0.56 94.82 99.87 config model | log
ResNet-34-b16x8 21.28 1.16 95.34 99.87 config model | log
ResNet-50-b16x8 23.52 1.31 95.55 99.91 config model | log
ResNet-101-b16x8 42.51 2.52 95.58 99.87 config model | log
ResNet-152-b16x8 58.16 3.74 95.76 99.89 config model | log

Cifar100

Model Params(M) Flops(G) Top-1 (%) Top-5 (%) Config Download
ResNet-50-b16x8 23.71 1.31 79.90 95.19 config model | log

ImageNet-1k

Model Params(M) Flops(G) Top-1 (%) Top-5 (%) Config Download
ResNet-18 11.69 1.82 69.90 89.43 config model | log
ResNet-34 21.8 3.68 73.62 91.59 config model | log
ResNet-50 25.56 4.12 76.55 93.06 config model | log
ResNet-101 44.55 7.85 77.97 94.06 config model | log
ResNet-152 60.19 11.58 78.48 94.13 config model | log
ResNetV1D-50 25.58 4.36 77.54 93.57 config model | log
ResNetV1D-101 44.57 8.09 78.93 94.48 config model | log
ResNetV1D-152 60.21 11.82 79.41 94.70 config model | log
ResNet-50 (fp16) 25.56 4.12 76.30 93.07 config model | log
ResNet-50 (rsb-a1) 25.56 4.12 80.12 94.78 config model | log
ResNet-50 (rsb-a2) 25.56 4.12 79.55 94.37 config model | log
ResNet-50 (rsb-a3) 25.56 4.12 78.30 93.80 config model | log

The "rsb" means using the training settings from ResNet strikes back: An improved training procedure in timm.