Closed ajinkya933 closed 4 years ago
I observed the output of res. and found out res is a list of lists :[[0.0, 0.0, ...... 0.0]] so I printed each item inside this list using:
l1=[]
for term in res:
for item in term:
l1.append(item)
print(l1)
output:
[0.0, 0.0, ... 1.0, 0.0, 0.0, ..., 2.244257e-26, 0.0, ..., 0.0, 0.0, 0.0]
These are the non zero terms appearing in later stages of this list :
1.0
2.244257e-26
How do I interpreat these terms? is there a way to find similarity between two images using these values.
This issue is possibly a duplicate of Issue #1. Please give the following a read and let me know if there are further queries.
https://github.com/swghosh/DeepFace/issues/1#issuecomment-555747408
I'll share the code for finetuning the pre-trained network based on the needs that you have specified. As per the paper, the network is designed to carry out face recognition task specifically.
A face verification task can be carried using DeepFace feature vector extracted from particular images. Such a feature vector can be obtained from the second last dense layer of the model. The paper also discusses a face verification technique based on use of Chi² similarity distance based SVMs. (either can be used: fine-tuning the network for new classes / chi² kernel SVM for verification)
Hi @ajinkya933, Any updates?
@swghosh I switched to facenet, as I needed face comparision and facenet was good at doing this
My question is concerned about face verification testing after I have a model file.
I have downloaded VGGFace2 data set, and have manually added more images to its training set. The orignal dataset is of around 9,000 people. I have added more people and now I have 11,000 people.
I want to train this model of 11,000 people and use it for face verification . I am referring to issue #1 and took this code
Can this code be used for face verification in my case as I am adding more dataset to the training data itself? Also, how do I tell that 2 faces match, should I look for both of their res values?