sai-bi / FaceAlignment

Face Alignment by Explicit Shape Regression
MIT License
339 stars 205 forks source link

Segmentation Fault in test code #22

Open ghost opened 8 years ago

ghost commented 8 years ago

Firstly, I tried to test your code with the trained model provided which was already provided here https://drive.google.com/file/d/0B0tUTCaZBkccOGZTcjJNcDMwa28/edit?usp=sharing

but, I ran into a couple of issues :

  1. The output window - result only shows the face image when index is given without alignment data on the images.
  2. I tried to print the values of current_shape inside the last for loop in TestDemo.cpp as cout<<current_shape(i,0)<<"\t"<<current_shape(i,1)<<"\n"; but, all this prints is - nan

so, I thought that something is wrong with the given model, and I decided to train on my own. I have trained on the training set provided in COFW dataset. It took about 30mins to train. Now, when I try to test this model with the same test code (with updated paths to the new model), I keep getting segmentation fault whenever I access current_shape(i,0) and current_shape(i,1).

Let me know what further can be done to fix this issue.

ghost commented 6 years ago

Have you fixed it? I met the same problem and I don't think he fix it.