WIDER-Face-Detection-using-MTCNN icon indicating copy to clipboard operation
WIDER-Face-Detection-using-MTCNN copied to clipboard

Cannot import name 'PNet' from 'mtcnn'

Open Huxwell opened this issue 4 years ago • 1 comments

When I run python tf_gen_12net_hard_example.py, mtcnn dependency you don't mention in readme is missing. I tried my luck with "pip install mtcnn" and it works, but then I will get:

ImportError: cannot import name 'PNet' from 'mtcnn' . Is there any particular version of this library that your code expects or is there any particular repository that should be used instead?

Huxwell avatar Nov 20 '20 12:11 Huxwell

It's been 2 years since I have done this project, and yeah, that time, I guess the MTCNN version was 0.9.0, so you can try that version.

v1zh3d avatar Jul 31 '21 13:07 v1zh3d