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

Program crashes when there is no face in the image #7

Open
ltt-gddxz opened this issue May 13, 2018 · 5 comments
Open

Program crashes when there is no face in the image #7

ltt-gddxz opened this issue May 13, 2018 · 5 comments

Comments

@ltt-gddxz
Copy link

ltt-gddxz commented May 13, 2018

I tested the mtcnn with a image with no face, the program crashed.

image

It seems that code in detect_faces did not handle the case that there is no bounding box detected in the image. Is that so ?

@miaoct
Copy link

miaoct commented Dec 15, 2019

yes
do not use

@miaoct
Copy link

miaoct commented Dec 16, 2019

I also meet this issue. Have you solve it?

@mayuanjason
Copy link

Hi miaoct,

I just refactor this repo, you can check it in https://github.com/mayuanjason/MTCNN_face_detection_alignment_pytorch

• Transfer all numpy operation to torch operation, so that it can benefit from GPU acceleration.
• Automatic run on 'CPU' or 'GPU'.
• Based on the latest version of pytorch (1.3)
• Real-time face tracking

And it will not crash when there is no face in the image.

@miaoct
Copy link

miaoct commented Dec 17, 2019

Hi miaoct,

I just refactor this repo, you can check it in https://github.com/mayuanjason/MTCNN_face_detection_alignment_pytorch

• Transfer all numpy operation to torch operation, so that it can benefit from GPU acceleration.
• Automatic run on 'CPU' or 'GPU'.
• Based on the latest version of pytorch (1.3)
• Real-time face tracking

And it will not crash when there is no face in the image.

Thank you very much

@miaoct
Copy link

miaoct commented Dec 17, 2019

Hi miaoct,

I just refactor this repo, you can check it in https://github.com/mayuanjason/MTCNN_face_detection_alignment_pytorch

• Transfer all numpy operation to torch operation, so that it can benefit from GPU acceleration.
• Automatic run on 'CPU' or 'GPU'.
• Based on the latest version of pytorch (1.3)
• Real-time face tracking

And it will not crash when there is no face in the image.

The code is no issue. It's very well !

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

3 participants