Git Product home page Git Product logo

faceid's Introduction

Deep Face Recognition with Caffe Implementation

This branch is developed for face recognition with occlusion, the related paper is as follows.

OCCLUSION ROBUST FACE RECOGNITION BASED ON MASK LEARNING[C]
Weitao, Wan and Jiansheng, Chen
2017 IEEE International Conference on Image Processing (ICIP)

The paper can be downloaded from here.

Architecture

Our network architecture is

Results

The generated masks on faces with occlusion are

Face verification on lfw validation set with synthesized square blocks with varying sizes.

Files

  • Caffe with center loss imported from https://github.com/ydwen/caffe-face
  • Mask Layer
    • src/caffe/layers/mask_layer.cu
    • src/caffe/layers/mask_layer.cpp (CPU mode not supported for now)
    • include/caffe/layers/mask_layer.hpp
  • training network
    • face_example/train_centerMask2Pool2_ori.prototxt
    • face_example/face_solver.prototxt

Train_Model

  1. Specify your mask size in 'num_output' (the value should equal to height x width of the mask)

     layer {
       name: "mask_ip"
       type: "InnerProduct"
       bottom: "mask_conv3"
       top: "mask_ip"
       param {
         name: "mask_ip_w"
         lr_mult: 1
       }
       param {
         name: "mask_ip_b"
         lr_mult: 2
       }
       inner_product_param {
         num_output: 572     # change it based on your network
         weight_filler {
           type: "constant"
         }
         bias_filler {
           type: "constant"
         }
       }
     }
    
  2. Choose the location to insert the mask layer. I placed it after 'pool2'.

     layer {
       name: "mask"
       type: "Mask"
       bottom: "pool2"
       bottom: "mask_2d"
       top: "masked_pool2"
       mask_param {
         scale: 1
       }
     }
    

Contact

Weitao Wan([email protected])

Citation

Please consider citing the following paper if it helps your research.

@inproceedings{wan2017mask,
  title={OCCLUSION ROBUST FACE RECOGNITION BASED ON MASK LEARNING},
  author={Weitao, Wan and Jiansheng, Chen},
  booktitle={IEEE International Conference on Image Processing (ICIP)},
  pages={},
  year={2017},
  organization={IEEE}
}

License

Copyright (c) Weitao Wan

All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


README_Caffe

Caffe

Caffe is a deep learning framework made with expression, speed, and modularity in mind. It is developed by the Berkeley Vision and Learning Center (BVLC) and community contributors.

Check out the project site for all the details like

and step-by-step examples.

Join the chat at https://gitter.im/BVLC/caffe

Please join the caffe-users group or gitter chat to ask questions and talk about methods and models. Framework development discussions and thorough bug reports are collected on Issues.

Happy brewing!

License and Citation

Caffe is released under the BSD 2-Clause license. The BVLC reference models are released for unrestricted use.

Please cite Caffe in your publications if it helps your research:

@article{jia2014caffe,
  Author = {Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},
  Journal = {arXiv preprint arXiv:1408.5093},
  Title = {Caffe: Convolutional Architecture for Fast Feature Embedding},
  Year = {2014}
}

faceid's People

Contributors

shelhamer avatar jeffdonahue avatar yangqing avatar longjon avatar sguada avatar kloudkl avatar sergeyk avatar ronghanghu avatar qipeng avatar lukeyeager avatar flx42 avatar rbgirshick avatar philkr avatar dgolden1 avatar eelstork avatar mavenlin avatar jamt9000 avatar tnarihi avatar cypof avatar erictzeng avatar yosinski avatar mohomran avatar ydwen avatar jyegerlehner avatar mtamburrano avatar netheril96 avatar ducha-aiki avatar fyu avatar kkhoot avatar timmeinhardt avatar

Watchers

James Cloos avatar Irving 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.