mtcnn-pytorch
mtcnn-pytorch copied to clipboard
The normalize
The normalize coordinate of face detector and landmark somehow is not correct.
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)))