chensnathan / SpatialFlow

SpatialFlow: Bridging all Task for Panoptic Segmentation. In TCSVT2020
Apache License 2.0
14 stars 4 forks source link

SpatialFlow: Bridging all Task for Panoptic Segmentation

SpatialFlow: Bridging all Task for Panoptic Segmentation,

Qiang Chen, Anda Cheng, Xiangyu He, Peisong Wang, Jian Cheng

In IEEE Transactions on Circuits and Systems for Video Technology,

arXiv preprint (arXiv 1910.08787)

Installation

Modification for MMCV (v1.0.5 or v1.1.0)

Main results

Panoptic Segmentation on COCO validation

SpatialFlow-res50 (download)

PQ SQ RQ N
All 41.8 78.7 50.9 133
Things 48.3 82.0 58.0 80
Stuff 31.9 73.7 40.2 53

SpatialFlow-res101 (download)

PQ SQ RQ N
All 43.4 79.6 52.6 133
Things 50.4 82.4 60.3 80
Stuff 32.8 75.4 41.0 53

SpatialFlow-res101-DCN-MultiScale (download)

PQ SQ RQ N
All 48.0 81.3 57.5 133
Things 55.0 82.5 65.2 80
Stuff 37.6 79.5 46.0 53

Panoptic Segmentation on COCO test-dev

SpatialFlow-res101-DCN-MultiScale (download)(test_dev_results)

PQ SQ RQ N
All 48.5 81.8 58.1 133
Things 55.5 83.3 65.9 80
Stuff 37.9 79.5 46.4 53

Disclaimer:

Usage

Train with multiple GPUs

./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM}

# Example: 
# ./tools/dist_train.sh configs/spatialflow/spatialflow_r50_fpn_20e_coco.py 4

Testing

# multi-gpu testing
./tools/dist_test.sh ${CONFIG_FILE} ${CHECKPOINT_FILE} ${GPU_NUM} --out ${OUTPUT_FILE} --eval panoptic

Example: 
./tools/dist_test.sh configs/spatialflow/spatialflow_r50_fpn_20e_coco.py 
./work_dir/spatialflow_r50_fpn_20e_coco/latest.pth  8  --out ./work_dir/spatialflow_r50_fpn_20e_coco/results.pkl --eval panoptic

# single-gpu testing
python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --out ${OUTPUT_FILE} --eval panoptic

Example: 
python tools/test.py configs/spatialflow/spatialflow_r50_fpn_20e_coco.py  ./work_dir/spatialflow_r50_fpn_20e_coco/latest.pth 
--out ./work_dir/spatialflow_r50_fpn_20e_coco/results.pkl --eval panootic

Citation

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

@artical{chen2020spatialflow,
  author={Chen, Qiang and Cheng, Anda and He, Xiangyu and Wang, Peisong and 
  Cheng, Jian},
  journal={IEEE Transactions on Circuits and Systems for Video Technology}, 
  title={SpatialFlow: Bridging all Task for Panoptic Segmentation}, 
  year={2020}
  doi={10.1109/TCSVT.2020.3020257}}