HamadYA / GhostFaceNets

This repository contains the official implementation of GhostFaceNets, State-Of-The-Art lightweight face recognition models.
https://ieeexplore.ieee.org/document/10098610
MIT License
194 stars 38 forks source link

Face recognition #40

Closed forucell closed 10 months ago

forucell commented 11 months ago

Hello. Thank you for your work. I'd like to use the model to implement face recognition.

Let's say I have 1000 collections of images. Each collection represents a person with his/her face photos. Next, I'd like to input a face photo and based on previous photos I need to recognize the person.

Please let me know how to do it.

Do I need to train model with my own dataset(collection of face photos)?

HamadYA commented 10 months ago

Hello. Thank you for your work. I'd like to use the model to implement face recognition.

Let's say I have 1000 collections of images. Each collection represents a person with his/her face photos. Next, I'd like to input a face photo and based on previous photos I need to recognize the person.

Please let me know how to do it.

Do I need to train model with my own dataset(collection of face photos)?

Hi,

You do not need to train your model on custom dataset unless you want to make your model specific for that dataset. However, common face recognition models are trained on large dataset and then generalize to other dataset and the generalization is done by:

1) Using the face recognition model as a feature extractor 2) Extract the features of the collection of face photos 3) Extract the features of the person of interest photo 4) Perform cosine similarity distance between these features and specify a threshold

I hope it is clear now

forucell commented 10 months ago

Thank you for clarification.

However, you missed the question about how to use model in API.

Could you please let me know that.

Thank you.

HamadYA commented 10 months ago

API

Hi, I hope you are well.

I am not sure how to.

HamadYA commented 10 months ago

I am closing the issue for now, if you have further questions please re-open or create a new issue.

Thank you for clarification.

However, you missed the question about how to use model in API.

Could you please let me know that.

Thank you.