Most python scripts that calculate mAP like the ones in py faster-cnn and detectron2 require writing intermediate results,  Is there any correctly implemented code to calculate mAP that doesn’t require writing detections to files first?