by Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, Jiaya Jia.
This repository is for the CVPR 2018 Spotlight paper, 'Path Aggregation Network for Instance Segmentation', which ranked 1st place of COCO Instance Segmentation Challenge 2017 , 2nd place of COCO Detection Challenge 2017 (Team Name: UCenter) and 1st place of Scene Understanding Challenge for Autonomous Navigation in Unstructured Environments (Team Name: TUTU).
If PANet is useful for your research, please consider citing:
@inproceedings{liu2018path,
author = {Shu Liu and
Lu Qi and
Haifang Qin and
Jianping Shi and
Jiaya Jia},
title = {Path Aggregation Network for Instance Segmentation},
booktitle = {Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2018}
}
- The origion code was implemented based on the modified version of Caffe maintained by Sensetime Research. Due to several reasons, we could not release our origin code.
- In this repo, we provide our re-implementation of PANet based on Pytorch. Note that our code is heavily based on Detectron.pytorch. Thanks Roy for his great work!
- Several details, e.g., weight initialization and RPN joint training, in Detectron is fairly different from our origin implementation. In this repo, we simply follow Detectron because it achieves a better baseline than the codebase used in our paper.
- In this repo, we test our code with BN layers in the backbone fixed and use GN in other part. We expect to achieve a better performance with Synchronized Batch Normalization Layer and train all parameter layers as what we have done in our paper. With those differences and a much better baseline, the improvement is not same as the one we reported. But we achieve a better performance than our origin implementation. We trained with image batch size 16 using 8*P40. The performance should be similar with batch size 8.
For environment requirements, data preparation and compilation, please refer to Detectron.pytorch.
For training and testing, we keep the same as the one in Detectron.pytorch. To train and test PANet, simply use corresponding config files. For example, to train PANet on COCO:
python tools/train_net_step.py --dataset coco2017 --cfg configs/panet/e2e_panet_R-50-FPN_2x_mask.yaml
To evaluate the model, simply use:
python tools/test_net.py --dataset coco2017 --cfg config/panet/e2e_panet_R-50-FPN_2x_mask.yaml --load_ckpt {path/to/your/checkpoint}
Backbone | Type | Batch Size | LR Schedules | Box AP | Mask AP | Download Links |
---|---|---|---|---|---|---|
R-50-PANet (paper) | Faster | 16 | 1x | 39.2 | - | - |
R-50-PANet | Faster | 16 | 1x | 39.8 | - | model |
R-50-PANet (paper) | Mask | 16 | 2x | 42.1 | 37.8 | - |
R-50-PANet | Mask | 16 | 2x | 43.1 | 38.3 | model |
Results on COCO 20017 val subset produced by this repo. In our paper, we used Synchronized Batch Normalization following all parameter layers. While in this repo, we fix BN layers in the backbone and use GN layers in other part. Under the same set of hyperparameters, e.g., multi-scales, this repo can produce better performance than that in our origin paper. We expect a better performance with Synchronized Batch Normalization Layer.
Please contact '[email protected]'