mtcnn-pytorch icon indicating copy to clipboard operation
mtcnn-pytorch copied to clipboard

The normalize

Open hamhanry opened this issue 4 years ago • 1 comments

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

hamhanry avatar Sep 15 '20 09:09 hamhanry

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)))

frog-painter avatar Dec 22 '20 08:12 frog-painter