TPU Object Detection and Segmentation Model Zoo

June 15, 2020 ยท View on GitHub

Introduction

Model zoo provides a large collection of baselines and checkpoints for object detection, instance segmentation, and image classification.

Object Detection and Instance Segmentation

Common Settings and Notes

  • We provide models based on two detection frameworks, RetinaNet or Mask R-CNN, and three backbones, ResNet-FPN, ResNet-NAS-FPN, or SpineNet.
  • Models are all trained on COCO train2017 and evaluated on COCO val2017.
  • Training details:
    • Models finetuned from ImageNet pretrained checkpoints adopt the 36 epochs (~3x) schedule, where 1x is around 12 COCO epochs.
    • Most models trained from scratch adopt the 72 or 350 epochs schedule.
    • The default training data augmentation implements horizontal flipping and scale jittering with a random scale between [0.5, 2.0].
    • Unless noted, all models are trained with l2 weight regularization and ReLU activation.
    • We use batch size 256 and stepwise learning rate that decays at the last 30 and 10 epoch.
    • We use square image as input by resizing the long side of an image to the target size then padding the short side with zeros.
  • Inference latency:
    • Latency is measured on a V100/P100 GPU from inputs to raw outputs (without image pre-processing or post-processing, e.g. NMS).
    • TensorRT optimization is not implemented in all tests.

COCO Object Detection Baselines

RetinaNet (ImageNet pretrained)

Coming soon.

RetinaNet (Trained from scratch)

modelresolutionepochsFLOPs (B)params (M)V100 / P100
lat (ms/im)
box APdownload
R50-FPN640x64035097.034.023 / 3740.4ckpt | config
R101-FPN1024x1024350326.353.155 / 9543.9ckpt | config
R152-FPN1280x1280350630.568.7100 / 16745.2ckpt | config
R50-NAS-FPN640x64072140.660.329 / 4837.3N/A
R50-NAS-FPN640x640350140.660.329 / 4842.4ckpt | config
SpineNet-49640x6407285.428.524 / 3837.7N/A
SpineNet-49640x64035085.428.524 /3842.8ckpt | config
SpineNet-49S640x64035033.811.919 / 2639.5ckpt | config
SpineNet-961024x1024350265.443.053 / 8746.7ckpt | config
SpineNet-1431280x1280350524.067.097 / 15948.0ckpt | config

SpineNet models trained with stochastic depth and swish activation for a longer shedule:

modelresolutionepochsFLOPs (B)params (M)box APdownload
SpineNet-49S640x64050033.811.941.5ckpt | config
SpineNet-49640x64050085.428.544.3ckpt | config
SpineNet-961024x1024500265.443.048.5ckpt | config
SpineNet-1431280x1280500524.067.050.6ckpt | config
SpineNet-1901280x12804001885.0163.652.0ckpt | config

Mobile RetinaNet (Trained from scratch)

modelresolutionepochsFLOPs (B)params (M)box APdownload
SpineNetMB-49384x3846001.02.3428.6ckpt | config

Instance Segmentation Baselines

Mask R-CNN (ImageNet pretrained)

Coming soon.

Mask R-CNN (Trained from scratch)

modelresolutionepochsFLOPs (B)params (M)box APmask APdownload
SpineNet-49640x640350215.740.842.837.8ckpt | config
SpineNet-961024x1024350314.655.246.841.2ckpt | config
SpineNet-1431280x1280350498.479.248.742.6ckpt | config

SpineNet-190 trained with stochastic depth and swish activation for a longer shedule:

modelresolutionepochsFLOPs (B)params (M)box APmask APdownload
SpineNet-1901536x15364001685.7168.252.045.9ckpt | config

Image Classification

Common Settings and Notes

  • We provide ImageNet and iNaturalist-2017 pretrained checkpoints for ResNet and SpineNet models at various scales.
  • Training details:
    • All models are trained from scratch for 200 epochs with cosine learning rate decay and batch size 4096.
    • Unless noted, all models are trained with l2 weight regularization and ReLU activation.

ImageNet Baselines

modelresolutionepochsFLOPs (B)params (M)Top-1Top-5download
ResNet-34224x2242003.721.874.492.0ckpt | config
ResNet-50224x2242004.125.677.193.6ckpt | config
ResNet-101224x2242007.844.678.294.2ckpt | config
ResNet-152224x22420011.560.278.494.2ckpt | config
SpineNet-49224x2242003.522.177.093.3ckpt | config
SpineNet-96224x2242005.736.578.294.0ckpt | config
SpineNet-143224x2242009.160.579.094.4ckpt| config

SpineNet models trained with stochastic depth, swish activation, and label smoothing:

modelresolutionepochsFLOPs (B)params (M)Top-1Top-5download
SpineNet-49224x2242003.522.178.194.0ckpt | config
SpineNet-96224x2242005.736.579.494.6ckpt| config
SpineNet-143224x2242009.160.580.195.0ckpt | config
SpineNet-190224x22420019.1127.180.895.3ckpt | config

iNaturalist-2017 Baselines

modelresolutionepochsFLOPs (B)params (M)Top-1Top-5
ResNet-34224x2242003.723.954.176.7
ResNet-50224x2242004.133.954.677.2
ResNet-101224x2242007.852.957.079.3
ResNet-152224x22420011.568.658.480.2
SpineNet-49224x2242003.523.159.381.9
SpineNet-96224x2242005.737.661.783.4
SpineNet-143224x2242009.161.663.684.8

SpineNet models trained with stochastic depth, swish activation, and label smoothing:

modelresolutionepochsFLOPs (B)params (M)Top-1Top-5
SpineNet-49224x2242003.523.163.385.1
SpineNet-96224x2242005.737.664.785.9
SpineNet-143224x2242009.161.666.787.1
SpineNet-190224x22420019.1129.267.687.4