After using detectron2 to train custom coco datasets, how do I view annotations as a JSON file made by the predicter, DefaultPredictor(get_cfg())?
I can get the prediction overlaying the image using Visualizer but I'd like to view these predictions as a JSON file.