人脸识别-openface
Liu Jie
这个作者很懒,什么都没留下…
展开
-
openface源码解释(2.1)
nn4.small2.v1.t7<!--models/openface/nn4.small2.def.lua-->代码中的注释Model: nn4.small2.def.lua描述:FaceNet的NN4网络去掉了4b、4c和4d层,更小的5层。Input size: 3x96x96来自网络的参数数量:getParameters() with embSize=128: 3733968组件: 主要是‘nn'设备:CPU和CUDAFaceNet的论文只说了“规范”原创 2020-12-16 22:06:04 · 499 阅读 · 0 评论 -
openface源码解释(2)
path.dofile()调用执行外部文件的代码块# 设置pytorch中默认的浮点类型torch.setdefaulttensortype('torch.FloatTensor')# 设置随机种子,保证每次生成的随机数都是一样的opt.manualSeed = 2torch.manualSeed(opt.manualSeed)# 加载模型,输出损失和精确度model = torch.load(opt.model)model:evaluate()...原创 2020-12-16 22:04:37 · 158 阅读 · 0 评论 -
openface源码解释(1)
detector = dlib.get_frontal_face_detector()#功能:人脸检测画框#参数:无#返回值:默认的人脸检测器faces = detector(img_gray, 0)功能:对图像画人脸框参数:img_gray:输入的图片 数字代表将原始图像是否进行放大,1表示放大1倍再检查,提高小人脸的检测效果返回值:人脸检测矩形框4点坐标predictor = dlib.shape_predictor(‘models/dlib/shape_...原创 2020-12-16 22:03:53 · 297 阅读 · 0 评论 -
openface
《OpenFace: A general-purpose face recognition library with mobile applications》原文地址:http://elijah.cs.cmu.edu/DOCS/CMU-CS-16-118.pdf源码地址:https://github.com/cmusatyalab/openface安装教程https://www.cnblogs.com/pandaroll/p/6590339.htmlopenface执行命令..原创 2020-12-16 22:03:08 · 305 阅读 · 0 评论 -
openface源码理解(4)
OpenFace: A general-purpose face recognition library with mobile applications原文地址:http://elijah.cs.cmu.edu/DOCS/CMU-CS-16-118.pdf源码地址:https://github.com/cmusatyalab/openfacedemos/classifier.py执行命令./demos/classifier.py infer ./generated-embeddings原创 2020-12-16 21:58:00 · 341 阅读 · 1 评论