All Projects → CongWeilin → Mtcnn Caffe

CongWeilin / Mtcnn Caffe

Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mtcnn Caffe

Facerecognition
This is an implematation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenenCNN algorithm.
Stars: ✭ 137 (-72.55%)
Mutual labels:  caffe, mtcnn
Mtcnn
face detection and alignment with mtcnn
Stars: ✭ 66 (-86.77%)
Mutual labels:  caffe, mtcnn
Facedetection
C++ project to implement MTCNN, a perfect face detect algorithm, on different DL frameworks. The most popular frameworks: caffe/mxnet/tensorflow, are all suppported now
Stars: ✭ 255 (-48.9%)
Mutual labels:  caffe, mtcnn
Joint Face Detection And Alignment
Caffe and Python implementation of Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks
Stars: ✭ 102 (-79.56%)
Mutual labels:  caffe, mtcnn
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (-59.12%)
Mutual labels:  caffe, mtcnn
Mtcnn caffe
Simple implementation of kpzhang93's paper from Matlab to c++, and don't change models.
Stars: ✭ 244 (-51.1%)
Mutual labels:  caffe, mtcnn
Mtcnn
全平台实时人脸检测和姿态估计,提供无需任何框架实现Realtime Face Detection and Head pose estimation on Windows、Ubuntu、Mac、Android and iOS
Stars: ✭ 351 (-29.66%)
Mutual labels:  caffe, mtcnn
O Cnn
O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
Stars: ✭ 432 (-13.43%)
Mutual labels:  caffe
Tensorrt Yolov3
TensorRT for Yolov3
Stars: ✭ 451 (-9.62%)
Mutual labels:  caffe
Gpu Rest Engine
A REST API for Caffe using Docker and Go
Stars: ✭ 412 (-17.43%)
Mutual labels:  caffe
Gocv
Go package for computer vision using OpenCV 4 and beyond.
Stars: ✭ 4,511 (+804.01%)
Mutual labels:  caffe
Mobilenetv2 Ssdlite
Caffe implementation of SSD and SSDLite detection on MobileNetv2, converted from tensorflow.
Stars: ✭ 435 (-12.83%)
Mutual labels:  caffe
Multi Object Tracker
Multi-object trackers in Python
Stars: ✭ 451 (-9.62%)
Mutual labels:  caffe
Digits
Deep Learning GPU Training System
Stars: ✭ 4,056 (+712.83%)
Mutual labels:  caffe
Mtcnn ncnn
基于ncnn框架搭建win及android端的MTCNN人脸检测工程
Stars: ✭ 471 (-5.61%)
Mutual labels:  mtcnn
Pytorch Caffe
load caffe prototxt and weights directly in pytorch
Stars: ✭ 407 (-18.44%)
Mutual labels:  caffe
Synthesizing
Code for paper "Synthesizing the preferred inputs for neurons in neural networks via deep generator networks"
Stars: ✭ 474 (-5.01%)
Mutual labels:  caffe
Adversarial Frcnn
A-Fast-RCNN (CVPR 2017)
Stars: ✭ 461 (-7.62%)
Mutual labels:  caffe
Data Science Ipython Notebooks
Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.
Stars: ✭ 22,048 (+4318.44%)
Mutual labels:  caffe
Shufflenet
This is a fast caffe implementation of ShuffleNet.
Stars: ✭ 446 (-10.62%)
Mutual labels:  caffe

mtcnn-caffe

Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks.

This project provide you a method to update multi-task-loss for multi-input source.

result

Requirement

  1. Ubuntu 14.04 or 16.04
  2. caffe && pycaffe: https://github.com/BVLC/caffe
  3. cPickle && cv2 && numpy

Train Data

The training data generate process can refer to Seanlinx/mtcnn

Sample almost similar to Seanlinx's can be found in prepare_data

  • step1. Download Wider Face Training part only from Official Website and unzip to replace WIDER_train

  • step2. Run gen_12net_data.py to generate 12net training data. Besides, gen_net_imdb.py provide you an example to build imdb, Remember changing and adding new params.

  • step3. Run gen_12net_hard_example.py to generate hard sample. Run gen_24net_data.py. Combine these output and generate imdb.

  • step4. Similar to last step, Run gen_24net_hard_example.py to generate hard sample. Run gen_48net_data.py. Combine these output and generate imdb.

Strongly suggest readers generate training data themselves. The sample training data of 12net and 24net is available( Too big for Baidu Drive to upload 48net) by sending Email

Net

The main idea is block backward propagation for different task

12net 12net 24net 24net 48net 48net

Questions

The Q&A bellow can solve most of your problem.

Q1: What data base do you use?
A1: Similar to official paper, Wider Face for detection and CelebA for alignment.

Q2: What is "12(24/48)net-only-cls.caffemodel" file for?
A2: Provide a initial weigh to train. Since caffe's initial weigh is random, a bad initial weigh may take a long ran to converge even might overfit before that.

Q3: Why preprocess images by minus 128?
A3: Separating data from (0,+) to (-,+), can make converge faster and more accurate. Refer to Batch Normalization Accelerating Deep Network Training by Reducing Internal Covariate Shift

Q4: Do you implement OHEM(Online-Hard-Example-Mining)?
A4: No. OHEM is used when training data is not that much big. Refer to faster-rcnn's writer RBG's paper

Q5: Ratio positive/negative samples for 12net?
A5: This caffemodel used neg:pos=3:1. Because 12net's function is to eliminate negative answers, similar to exclusive method, we should learn more about negative elininate the wrong answer.

Q6: Why your stride is different to official?
A6: If you input a (X,X) image, the output Y = (X-11)/2. Every point on output represent a ROI on input. The ROI's left side moving range = (0, X-12) on input, and (0, Y-1) on output. So that stride = (X-12)/(Y-1) ≈≈ 2 in this net.

Q7: What is roi(cls/pts).imdb used for?
A7: Use imdb can feed training data into training net faster. Instead of random search data from the hard-disk, reading data from a large file once to memory will save you a lot of time. imdb was created by python module-cPickle.

Q8: What is tools_matrix.py different from tools.py?
A8: Matrix version use linear matrix to make calculation faster(160ms on FDDB). If you are green hand in this area, read Non-Matrix version to understand each process.

Q9: I want your training data for emergency use. How to use them? How to train? ...
A9: ???

Current Status

CongWeilin updated in 2017/3/5

Update tools_matrix.py to make calculate faster, about 160ms/image.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].