标签:LRC github 规范 project AR 文档 test model Euler
Project Title
Brief introduction to this project.
exp: This project implements many recently face recognition algorithms based on statistical learning, including LRC[1], RRC, SRC[2], CRC[3], Euler RRC, Euler SRC[4], and Euler CRC.********
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
What things you need to install the software and how to install them.
Installing
A step by step series of examples that tell you how to get a development env running.
Say what the step will be.
Running code
Running the test
Run the test.py, and you will get output as follows if success
>> The accuracy of LRC on AR datest is: 0.7271.
Examples
import numpy as np
from dataset import AR
from model.subspace_regression import LRC
train_xs, train_ys, test_xs, test_ys = AR.exp1(mode=2)
model = LRC()
model.fit(train_xs, train_ys)
acc = model.score(test_xs, test_ys)
print(f'The accuracy of {model.__class__.__name__} on AR datest is: {acc}.\n')
# Output
>> The accuracy of LRC on AR datest is: 0.7271.
Authors
- JsHou
License
This project is licensed under the MIT License.
Acknowledge
- Thanks to the authors of the papers cited in this project.
References
[1] Naseem I, Togneri R, Bennamoun M. Linear regression for face recognition[J]. TPAMI, 2010;32(11):2106-12.
[2] Wright J, Yang AY, Ganesh A, et al. Robust face recognition via sparse representation[J]. TPAMI, 2008;31(2):210-27.
[3] Zhang L, Yang M, Feng X. Sparse representation or collaborative representation: Which helps face recognition?[C]. ICCV, 2011.
[4] Liu Y, Gao Q, Han J, et al. Euler sparse representation for image classification[C]. AAAI, 2018.
[5] Liwicki S, Tzimiropoulos G, Zafeiriou S, et al. Euler Principal Component Analysis[J]. IJCV, 2012;101(3):498-518.
标签:LRC,github,规范,project,AR,文档,test,model,Euler 来源: https://www.cnblogs.com/js2hou/p/14783760.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。