If you need to calculate the metrics, you should prepare your dataset in the coco data format. And follow the instructions in the readme, using tools/test.py script.
If you just need to inference on an image or a folder of images, please follow the instructions in the readme, using demo/image_demo.py script.
how to predict on custom datasets