facial-expression-recognition-svm icon indicating copy to clipboard operation
facial-expression-recognition-svm copied to clipboard

Face Landmarks usage

Open NomiMalik0207 opened this issue 5 years ago • 7 comments

I want to know about how you ae feeding your network with landmarks? are you appending landmarks on image or just using as a label?

NomiMalik0207 avatar Mar 03 '19 11:03 NomiMalik0207

Yes I append the landmarks with the hog features and the flatten image, then I feed everything to the SVM. Since it's supervised learning, the SVM expects also the labels so that it learn to classify each data to the correct label. But the labels are not appended with the data

amineHorseman avatar Mar 26 '19 19:03 amineHorseman

But from you model Picture it seems you are feeding your model only with image, and sending landmarks as a different layer, Can you explain a little bit more about feeding landmarks? Thank you for your time

NomiMalik0207 avatar Mar 27 '19 05:03 NomiMalik0207

In this svm version I concatenate the two, but in the other repository using cnn indeed I feed the images alones in a 2d convolutional layer, and I feed the landmarks (pixels positions) in another layer. In some cases I don't feed the landmarks alone, but I append the hog features, thoses were just tests I was trying to see how feeding an image alone, and feeding additional data which are not raw pixels can affect the training

amineHorseman avatar Mar 27 '19 09:03 amineHorseman

Got it. But i have tried a CNN model, and including landmarks did not effect the accuracy.. :(

NomiMalik0207 avatar Mar 27 '19 11:03 NomiMalik0207

What was the model you used?

amineHorseman avatar Mar 29 '19 09:03 amineHorseman

VGG

NomiMalik0207 avatar Apr 01 '19 03:04 NomiMalik0207

I have a hypothesis but not sure: may be the landmarks are useful only on small architecture, like the 5-layers model I used, but in the case of bigger models having dozen of layers the parameters space is huge and the network can optimize the solution better, without the need of extra features such as landmarks of HOG In other words, in bigger CNN models, the landmarks provided may be just redundant information

amineHorseman avatar Apr 03 '19 19:04 amineHorseman