MTCNN icon indicating copy to clipboard operation
MTCNN copied to clipboard

why loss of landmark task does not descend?

Open gobigrassland opened this issue 7 years ago • 4 comments

I have trained your codes many times, but the loss of landmark task does not converge. I don' t known what is wrong. When i only train face classification and regression of bounding boxes, losses of these tasks both descend. Why?

gobigrassland avatar May 25 '17 03:05 gobigrassland

Do you generate the training data and labels by yourself?

If so, what's the learning rate of your code?

foreverYoungGitHub avatar Jun 02 '17 20:06 foreverYoungGitHub

I check and modify the code generating training data. Then i re-generate the training data and labels and train again. Although the loss of landmark seems to converge, the detected landmarks of faces are not correct.

gobigrassland avatar Jun 06 '17 01:06 gobigrassland

i prepare my data and label like this:

image_path face face_box_cords landmarks img1.jpg 1 0.12 0.21 0.34 0.27 [0.1,0.2,0.3,0.4,0.5,0.1,0.2,0.3,0.4,0.5]; //positive face img2.jpg 1 0.02 0.12 0.24 0.17 [0.1,0.2,0.3,0.4,0.5,0.1,0.2,0.3,0.4,0.5]; // partial face img3.jpg 0 0 0 0 0 [ 0, 0 , 0, 0 , 0 , 0 , 0 , 0 , 0 , 0 ]; // no face ...... ......

i want to konw whether the image data (eg:img1.jpg ) is just a face image or face part with background part?

KangolHsu avatar Jun 09 '17 06:06 KangolHsu

@gobigrassland Hi,I met the same question . Have you solved the problem ? Although my landmarks loss converge at last it descend so slowly and it does badly on my landmark validation set.

blankWorld avatar Aug 13 '17 09:08 blankWorld