-
Notifications
You must be signed in to change notification settings - Fork 162
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
Traceback (most recent call last): File "mtcnn/data_preprocess/gen_Pnet_train_data.py", line 94, in <module> delta_x = np.random.randint(max(-size, -x1), w) File "mtrand.pyx", line 630, in numpy.random.mtrand.RandomState.randint File "bounded_integers.pyx", line 1228, in numpy.random.bounded_integers._rand_int64 ValueError: low >= high #13
Comments
There is a bug in "mtcnn/data_preprocess/gen_Pnet_train_data.py". So, correct the form of 'boxes' can solve the problem.
Add these lines between line 48 and 49. |
What's more, there is a same question in "gen_Rnet_train_data.py" and "gen_Onet_train_data.py". |
In .mat file of wilder_face , Number of bounding box: not x1 y1 x2 y2 so you should fix it like:
|
@Z-Jeff why are we not generating landmark data for pnet and rnet ? |
When I ran mtcnn/data_preprocess/gen_Pnet_train_data.py, I received an error from this implementation. How did I resolve this issue? Thanks. Traceback (most recent call last): |
@LiYunJamesPhD ,I also encountered the same problem. Have you solved it? |
@DantesDawn Hi, no, I could not solve this issue. |
@LiYunJamesPhD , Thank you for your reply. I have solved this problem. The simplest method is to delete the error data 5-29. Another method is that I see that the warehouse provides the annotation file conversion tool code for x, y, w, h and x1, y1, x2, y2. I think I can try. Well, the third method should be to modify the error code, but I haven't read the code in detail. |
@DantesDawn Sounds great! I have not touched this code for a while because I was done with my internship (this code is part of my internship works). It is still good to know the solutions for that issue. Thanks. |
Hi, when I generate the Pnet train data, some errors happend:
How can I solve it?
The text was updated successfully, but these errors were encountered: