Giter Site home page Giter Site logo

facial-keypoints's Introduction

Facial Keypoints Detection

Installation

Script is tested on Python 3.6.1. To install required libraries run:

pip install -r requirements.txt

Train data

Data is expected to be a set of face photos and CSV file where each row represents coordinates (xi, yi) of facial keypoints for image filename:

filename x0 y0 x1 y1 ... x13 y13

Coordinates are indexed according to the following scheme:

Coordinates order

Pretrained weights

You can use weights from 500 epochs training saved in weights/conv5_adam_epochs500.hdf5.
MSE error on images resized to (100, 100) shape is 5.2569.

Usage

Augmenting data

$ python app.py augment --help
Usage: app.py augment [OPTIONS] img coords dest

  Augments images stored in IMG folder with coordinates from COORDS csv file
  and saves result in grayscale to DEST folder

Training model

$ python app.py train --help  
Usage: app.py train [OPTIONS] img coords model

  Trains model on images from IMG folder with coordinates from COORDS csv
  file and saves trained model in hdf5 file MODEL

Predicting keypoints

$ python app.py predict --help
Usage: app.py predict [OPTIONS] img model coords

  Predicts facial keypoints coordinates for images from IMG folder using
  model from file MODEL and saves results in csv file COORDS

Results

These are some examples detected using pretrained weights:

Results

facial-keypoints's People

Contributors

laplab avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ranjeetds

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.