Home

Awesome

PolarMask: Single Shot Instance Segmentation with Polar Representation

The code for implementing the PolarMask.

image-20190807160835333

Highlights

News

Performances

Graph

Table

All the training time is measured on 32 Maxwell TitanX or 4 V100 GPUs, we found they achieve very similar performance.

All the inference speed is measured using converged models on 1 Maxwell TitanX / V100 GPU. We only report the model inference time.

Note that we found the V100 is nearly three times faster than TitanX. More details can refer to paper Table 1(f).

Results and Models

For 32 gpus, we set 2000 iters to warmup instead of 500. So the total epoches is 14 for 1x.

And the performance is similar to 4gpus. Most of experiments are run on 32gpus in paper to fasten the process.

The results are test on minival set.

Trained models can be download in Google Drive.

BackboneStyleGNMS trainLr schdGPUsInf time (fps)mask AP
R-50caffeYN1x48.9/23.929.2
R-101caffeYN1x4-30.7
X-101pytorchYN1x4-32.5
BackboneStyleGNMS trainLr schdGPUsInf time (fps)mask AP
R-50caffeYN1x328.9/23.929.1
R-101caffeYN1x32-30.4
X-101pytorchYN1x32-32.6
R-50-DCNcaffeYN1x32-32.0
R-101-DCNcaffeYN1x32-33.5
X-101-DCNpytorchYN1x32-34.9
BackboneStyleGNMS trainLr schdGPUsInf time (fps)mask AP
R-50caffeYY2x328.9/23.930.5
R-101caffeYY2x32-31.9
X-101pytorchYY2x32-33.5
R-50-DCNcaffeYY2x32-33.3
R-101-DCNcaffeYY2x32-34.3
X-101-DCNpytorchYY2x32-35.9

Notes:

Installation

Our PolarMask is based on mmdetection. Please check INSTALL.md for installation instructions.

A quick Demo

Please run the demo/visualize.py. Note that the size_diviser of test need to be set 32. Details can be found in this issue. Thanks @zzzzzz0407 for his useful advice.

Training and Testing

Train:

1. 4gpu train(same as FCOS)
2. 32gpu train(for fasten)

Test:

4gpu test

Contributing to the project

Any pull requests or issues are welcome.

Citations

Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows.

@article{xie2019polarmask,
  title={PolarMask: Single Shot Instance Segmentation with Polar Representation},
  author={Xie, Enze and Sun, Peize and Song, Xiaoge and Wang, Wenhai and Liu, Xuebo and Liang, Ding and Shen, Chunhua and Luo, Ping},
  journal={arXiv preprint arXiv:1909.13226},
  year={2019}
}

License

For academic use, this project is licensed under the 2-clause BSD License - see the LICENSE file for details. For commercial use, please contact the authors.