kpzhang93 / MTCNN_face_detection_alignment

Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks
MIT License
2.8k stars 1.01k forks source link

A question on generateBoundingBox() function for generating the bounding boxes from the heatmaps #29

Open qiongcao opened 6 years ago

qiongcao commented 6 years ago

Hi ya,

At test, given an image, the PNet outputs the heatmaps of classification scores (i.e. HW2) and the offsets (i.e. HW4) for each position. Then the python function generate_bbox is used to produce the bounding box for the image. I was confused how this generate_bbox works. What's the meaning of the offsets (i.e. HW4) for each position.

Many thanks