yiminglin-ai / pytorch-mtcnn

Updated MTCNN face detector supporting pytorch 1.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MTCNN

Updated pytorch implementation of inference stage of face detection algorithm described in
Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks. example of a face detection

Requirements

  • pytorch >= 1.0
  • Pillow >= 6

How to install

git clone https://github.com/yl1991/pytorch-mtcnn.git
cd pytorch-mtcnn 
pip install -e .

How to use

from mtcnn import detect_faces
from PIL import Image

image = Image.open('image.jpg')
bounding_boxes, landmarks = detect_faces(image)

For examples see test_on_images.ipynb.

Credit

This implementation is heavily inspired by:

About

Updated MTCNN face detector supporting pytorch 1.0

License:MIT License


Languages

Language:Jupyter Notebook 99.7%Language:Python 0.3%