Sierkinhane / mtcnn-pytorch

A face detection algorithm
317 stars 162 forks source link

The normalize #16

Open hamhanry opened 4 years ago

hamhanry commented 4 years ago

The normalize coordinate of face detector and landmark somehow is not correct.

frog-painter commented 3 years ago

After some test in the data,i think the data of face bounding box compose of (x0,y0,width,height) so change the code below into this: widerloader.py:36 for i in range(bbx0.shape[0]): xmin, ymin, w, h, = bbx0[i] xmax = int(xmin)+int(w) ymax = int(ymin)+int(h) bboxes.append((int(xmin), int(ymin), int(xmax), int(ymax)))