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

it is not so good, it is good only for the 1.jpeg image. #18

Closed
sunjunlishi opened this issue Nov 12, 2022 · 1 comment
Closed

it is not so good, it is good only for the 1.jpeg image. #18

sunjunlishi opened this issue Nov 12, 2022 · 1 comment

Comments

@sunjunlishi
Copy link

2_face_mesh
220421idcardposNew_0
1_445_landmarks
need retraining?

@t-martyniuk
Copy link
Collaborator

t-martyniuk commented Nov 15, 2022

It is sensitive to the way you crop the head, indeed. If you want to have the model work on your custom crops, you would likely need to retrain the model for your particular use case. The training code is available in the repo.

The training dataset contains bounding boxes for heads. You can see here

offset = tuple(0.1 * np.random.uniform(size=4) + 0.05)
x, y, w, h = ensure_bbox_boundaries(extend_bbox(np.array(bbox), offset), img.shape[:2])
how we pre-process those bounding boxes during the training stage.

Hope this helps!

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