-
Notifications
You must be signed in to change notification settings - Fork 111
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
Negative out-of-bounds access in CTreeMaxSumSolver::dt1D #3
Comments
Hi, could you please provide me the model, which you are using? Because I haven't encountered any problems using many different models yet. |
Thanks for the quick response back. I'm using the provided |
I see, that should be the problem. I am still polishing some parts of the code to publish and I forgot to mention that this model is not suitable for usage with distance transform. It is some old version which replaces the previous library - flandmark. I will try to upload more models soon. Sorry for the inconvenience. |
Ok, thanks for letting me know. I've just swapped to using the |
That one should work with the code, but I am afraid it won't detect anything, since it does not contain the learned weight vector w. I will try to upload some of the learned models I have as soon as possible. |
Hello uricamic, I have encounter same problem with ashbash1987, when I replace the xml file to 8Lfrontal_SPLIT_1_init.xml, the program could run smoothly but the result is not accurate at all. I pretty much follow the static_input example, you said you haven't encountered any problems using many different models yet. Could you give me some hint about how to detect the point accurately? BTW, I have successfully detect 7 face feature points use old library flandmark, but looks the new library still only could only detect 7 face feature points, could you also give me some instruction about how to generate more points like your webpage post? Thanks! |
Hi @lizhong323, the 8Lfrontal_SPLIT_1_init.xml is an init file, which should be used for learning, i.e. it does not contain the learned weight vector. It cannot actually detect anything. I have uploaded some models (e.g. the multi-view variant detecting 21, 19 or 13 landmarks depending on the yaw angle estimate) which can be used on the project webpage and I will upload some more soon. I am finalizing the MATLAB scripts for learning user-defined models when it is finished, I will write a tutorial on the webpage how to define new model and how to learn it from annotated data. It will be only for MATLAB for start, however after fixing the Python interface I would like to prepare the learning scripts for Python as well. |
Hi @lizhong323, could you please provide me more information about this issue? Which operating system are you using and what version of OpenCV to compile static_input.cpp? And have you done any modifications to the code? I have just tried to call static_input example with model: INDIVIDUAL_FRONTAL_AFLW_SPLIT_1.xml as flandmark model on face.jpg and I get quite nice output: |
Hi,
I've just been trying to integrate CLandmark into a face detection app, pretty much following the example code (with some additional code from OpenCV to be able to process data from an iPad camera input source), and unfortunately it all comes to a halt when running through
CTreeMaxSumSolver::dt1D(...)
while in the following loop:The reason for the halt is because
s
has become -Infinity, causingk
to become negative.This is using code as of latest in master (315c1e4).
The text was updated successfully, but these errors were encountered: