This is adapted from COCO 2018 Panoptic Segmentation Task API.
To install panopticapi, run:
pip install git+https://github.com/AutoNUE/panopticapi.git
Evaluation script
panopticapi/evaluation.py calculates PQ metrics.
For more information about the script usage: python -m panopticapi.evaluation --help