Giter Club home page Giter Club logo

python-tensorflow-face-v2.0's Introduction

Python-Tensorflow-Face-v2.0

  1. 本文以Triplet网络为基础,改进了原有的通过训练分类器来检测人脸的方法,大大提高了识别的准确度。
  2. 本人使用训练数据集为微软MS-Celeb-1M数据集,[下载地址].(https://www.msceleb.org/download/aligned)
  3. 下载的数据集为.tsv格式,需要还原成jpg格式图片。需要把extracted.py拷贝到tsv文件同目录下,然后运行:
    $ python extracted.py --outputDir=data FaceImageCroppedWithAlignment.tsv
    尽量留有足够大的硬盘空间。
  4. 还需要对数据集进行清理,可到这链接 (密码:9ykp)下载干净的列表,并把下载的txt文件、faceshutil.py和data文件夹放在同一目录下,运行py文件即可
  5. 把get_align_face.py放到out同目录下,进行最后的人脸对齐。得到的train_faces文件夹放在项目同级文件夹下。
  6. 程序运行流程:
    1. 首先运行makefile.py文件,生成一些目录。
    1. 链接( 密码:8tgk)下载LFW数据集,放在 ./temp/lfw/文件夹下,最后的目录是./tmp/lfw/lfw。这是为了测试准确率。
    1. 运行run.py文件,如果想要继续接着训练,需要把new改为True.这样做的目的是可以间断训练,每次训练完一段时间退出,可以接着训练。
    1. 训练完成后,可以运行lfw_test.py文件查看准确率。
  1. 训练好的模型可以放到这个项目中https://github.com/yeziyang1992/Face_Recognition_Client 检验。
  2. 如有问题探讨,邮箱联系:[email protected]

python-tensorflow-face-v2.0's People

Contributors

yeziyang1992 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.