mAP (mean Average Precision) is an evaluation metric that expresses, as a single number between 0 and 1, whether an object detection model finds objects without missing them and at accurate locations. The closer to 1, the better the model.
The computation has two stages. First, for each class (person, car, dog, etc.), the detections are sorted by confidence, the precision-recall curve is drawn, and the area under it is taken as the AP (Average Precision). Then the AP is averaged over all classes to give the mAP.
The F1 score is computed from the precision and recall obtained when positives and negatives are separated by a single threshold. AP summarizes how precision and recall change as the threshold moves from strict to lenient, so it is independent of the choice of threshold.
There are two commonly used definitions of mAP: the PASCAL VOC definition (the PASCAL VOC challenge, Everingham et al. 2010) and the COCO definition (the official COCO evaluation). The values differ greatly even though both are called "mAP", so always check which definition is used.

