Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The normalize #16

Open
hamhanry opened this issue Sep 15, 2020 · 1 comment
Open

The normalize #16

hamhanry opened this issue Sep 15, 2020 · 1 comment

Comments

@hamhanry
Copy link

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

@frog-painter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants