简体   繁体   English

人脸识别中的增量学习

[英]Incremental learning in facial recognition

I am trying to implement incremental/online learning for a face recognition application.我正在尝试为人脸识别应用程序实施增量/在线学习。 I've trained a model on a dataset and it works perfectly fine, however, I need to capture new faces(classes) over time and add them to the existing dataset.我已经在数据集上训练了一个模型并且它工作得非常好,但是,我需要随着时间的推移捕获新的面孔(类)并将它们添加到现有的数据集中。 Is there any way that I can train the model with new classes without retraining from the scratch?有什么方法可以让我用新的类来训练模型而无需从头开始重新训练?

I've not found any rich resources so far and really appreciated if anyone can point me out somewhere.到目前为止,我还没有找到任何丰富的资源,如果有人能在某处指出我,我真的很感激。

My advice is to train your model using either of these two techniques:我的建议是使用以下两种技术之一训练您的模型:

Finally, you should think that you are not going to keep that model, but that you are only going to use it as a feature extractor.最后,您应该认为您不会保留该模型,而只会将其用作特征提取器。 In other words, the models will be very good at extracting facial information, not classified (that will not be their task).换句话说,模型将非常擅长提取面部信息,而不是分类(这不是他们的任务)。

Later you fix that model and you can do different things:稍后您修复该模型,您可以做不同的事情:

  • Directly use a distance as the cosine to identify the closest face with respect to a dataset (it works if you don't require an extremely certain accuracy ).直接使用距离作为余弦来识别相对于数据集最近的人脸(如果您不需要非常确定的准确度,它可以工作)。 You directly use KNN between the features of your face and your entire database and consider the recognition as the closest face.您直接在您的面部特征和整个数据库之间使用 KNN,并将识别为最接近的面部。

  • You train an additional model that uses the features of the previous one.您训练一个额外的模型,该模型使用前一个模型的特征。 You can use a neural network again, but in this case my suggestion is to use an SVM (since SVM models as LASVM is an approximation of learning online).您可以再次使用神经网络,但在这种情况下,我的建议是使用 SVM(因为 SVM 模型作为 LASVM 是在线学习的近似)。 Thus, they only have to train a small classifier every so often.因此,他们只需要每隔一段时间训练一个小的分类器。 https://machinelearningmastery.com/how-to-develop-a-face-recognition-system-using-facenet-in-keras-and-an-svm-classifier/ https://machinelearningmastery.com/how-to-develop-a-face-recognition-system-using-facenet-in-keras-and-an-svm-classifier/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM