Coder Social home page Coder Social logo

weitaovan / faceid Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 20.0 38.98 MB

Caffe Implementation of our ICIP 2017 paper OCCLUSION ROBUST FACE RECOGNITION BASED ON MASK LEARNING

License: Other

CMake 2.76% Makefile 0.70% Shell 0.45% MATLAB 0.93% C++ 80.23% Cuda 5.90% Python 8.95% Dockerfile 0.07%

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

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

faceid's Issues

paper哪里下载

你好
论文《OCCLUSION ROBUST FACE RECOGNITION BASED ON MASK LEARNING》哪里可以下载?

training set

你好,paper中提到
The training set is CASIA-Webface dataset and its synthetic counterpart in which 50% images
contain synthesized sunglasses and 50% images contain synthesized scarves.

可以问一下人工合成的数据你可以分享一下吗?或者你是怎么生成这些数据的?

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.