Giter Site home page Giter Site logo

tf-siamesenet's Introduction

TF-siamesenet

The main work of the article is to use the SiameseNet model to achieve the function of face recognition. The SiameseNet convolutional neural network model is as follows (detailed structure moves to GitHub, a simplified version of VGG): SiameseNet model Input and output examples

The data set uses Microsoft's MS-Celeb-1M public face data set. We directly download the aligned data set. First, there is a cleaned list on the network. The file name is: MS-Celeb-1M_clean_list.txt, about 160M. Then use the combination algorithm to generate two files, positive_pairs_path.txt and negative_pairs_path.txt, each about 1.5million pairs. Generate file example

The key question is, how to define the loss function, the loss function is Logistic Regression loss function actually, it is worth noting that the last layer of the activation function should use Sigmoid Function. The Loss function is as follows: Loss function

The next step is training, training on TITAN X for about 3 days, we can see this Loss curve: Loss curve

We can see that Loss converges very well.

What about the correct rate of our model? Haha, not very good, the correct rate on the LFW is 94%+, and the model needs to be optimized. If you have ideas to solve this problem, you can give me a message or Email me ([email protected]).

Project source code: https://github.com/hfrommane/TF-siamesenet

Chinese readme version is: https://www.jianshu.com/p/1df484d9eba9

If you like, give me a star, thanks.

tf-siamesenet's People

Contributors

hfrommane 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.