sainimohit23 / FaceNet-Real-Time-face-recognition

66 stars 42 forks source link

Model labels ? #14

Closed Krishnarohith10 closed 3 years ago

Krishnarohith10 commented 3 years ago

There are few questions, but it will be quick.

1) I saw you used y_val = np.zeros((batch, 2, 1)) but they are just zeros, what are the actual values to train. You don't need to provide that, just let me know what to use so that I can do it. 2) The faceRecoModel outputs a Dense Layer of 128 dims, but y_val is only (2,1) dims. How is this possible? Don't we need to have same dims? If so, what to use as y_val. Final question is, we know that we have to train on few images per person. so we need data, with inputs and outputs, as our model outputs 128 dims, means we need to provide labels of same dims 128 dims. How do get these labels to train? Or should we really train our model? Can't we just pick one photo per person and directly predicting the person embedding and store in database. Doesn't this works ?

Thank you for your repository!

Krishnarohith10 commented 3 years ago

I'm so sorry! And i am so dumb. Now I understood eveyrthing and close this issue. But just a little doubt, why are we using y(labels) as a zeros array, can't we just omit them from data and just generate data on inputs ??