FECNet
FECNet copied to clipboard
About Triplet prediction Accuracy
I have implemented the code in Pytorch, and trained it with the whole dataset. However the triplet prediction accuracy seems much lower than the paper which reached 81%. My question is what about your triplet accuracy?
@tangchen2 Have you used the pretrained weights for FaceNet, as they mention in the paper? Otherwise, the results are likely quite a bit worse if you are training only on the FEC dataset.
@tangchen2 Have you used the pretrained weights for FaceNet, as they mention in the paper? Otherwise, the results are likely quite a bit worse if you are training only on the FEC dataset.
I used the pretrained weights for FaceNet and freeze the FaceNet layers just the same as the paper, but i just got around 60+% accuracy, which really confuses me...
Assuming that you are following the same training schedule (and sampling) as they report in the paper, it looks like there is some bug in your implementation. 60% is validation accuracy? What about training accuracy, is it also at around 60% or higher? (For reference: I am using a different Face feature extractor that takes 112x112 input, and I also made some mods to the DenseLayer to reflect the smaller input size, and am getting around 76% validation accuracy.)
Another thing worth checking is that the order of the color channels that you input to FaceNet (RGB versus BGR).
Another thing worth checking is that the order of the color channels that you input to FaceNet (RGB versus BGR).
Well, i really didnt concern about the color channel, and i will check it. Second, i also replace the facenet in backbone with insightface which requires 112 input, and i got 68% val accuracy, maybe i need to check the color channel. Thank you so much about that!
Last (obvious) thing to check is that you are only considering what they refer to as "strong" triplets, i.e., the ones where at least 66% of the raters agree on. The 76% validation accuracy I get is when I only consider the strong triplets (both in training and validation). Hope this helps.
Last (obvious) thing to check is that you are only considering what they refer to as "strong" triplets, i.e., the ones where at least 66% of the raters agree on. The 76% validation accuracy I get is when I only consider the strong triplets (both in training and validation). Hope this helps.
Oh,i think thats the key issue! I just used all triplets in training before, and now i filter the strong triplet, i will report the result later ! By the way, i have two more questions, hope you can give me some advice, first, did you crop & align the image in dataset(like MTCNN or RetinaFace ) before training? Second, what about the size of you train images? The number of images i download successfully is much lower than reported in paper, i.e. i got around 80k train images compared with 130516 in paper and 20k test images compared with 25427 in papaer. Maybe the size of my train images also has a negative impact on my performance? Thanks again !
Last (obvious) thing to check is that you are only considering what they refer to as "strong" triplets, i.e., the ones where at least 66% of the raters agree on. The 76% validation accuracy I get is when I only consider the strong triplets (both in training and validation). Hope this helps.
Finally, i got the 75% accuracy on validation, and the mian reason is that i changed the dataset with strong Triplet instead of all Triplets, really thank you about that remind!
Because of the loss of crawler data, I cannot have all the triple pairs. How can I get the original data. l appreciate that you can share the data to me! Thanks!
same!
Because of the loss of crawler data, I cannot have all the triple pairs. How can I get the original data. l appreciate that you can share the data to me! Thanks!
I download the data directly from the url provided, and compared the official dataset, it is incomplete because some url are wrong. Anyway my performance is trained under incomplete dataset. Hope that can help you.
Because of the loss of crawler data, I cannot have all the triple pairs. How can I get the original data. l appreciate that you can share the data to me! Thanks!
I download the data directly from the url provided, and compared the official dataset, it is incomplete because some url are wrong. Anyway my performance is trained under incomplete dataset. Hope that can help you.
Hi , I test the pretrained model in pytorch and the result is different from the paper.Did you test the official pretrained model?