GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - siddsriv/Facial-Keypoint-Detection: Detecting Facial Keypoints (Landmarks) using a custom CNN architecture

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
detector_architectures
detector_architectures
 
 
images
images
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
data_load.py
data_load.py
 
 
load_viz.py
load_viz.py
 
 
models.py
models.py
 
 
predict_keypoints.py
predict_keypoints.py
 
 
train_featureviz.py
train_featureviz.py
 
 
workspace_utils.py
workspace_utils.py
 
 

Repository files navigation

Facial-Keypoint-Detection

Background

Facial Keypoint detection or Landmark detection implies identifying the various keypoints present on any face. In each training and test image, there is a single face and 68 keypoints, with coordinates (x, y), for that face. These keypoints mark important areas of the face: the eyes, corners of the mouth, the nose, etc. These keypoints are relevant for a variety of tasks, such as face filters, emotion recognition, pose recognition, and so on. Here they are, numbered, and you can see that specific ranges of points match different portions of the face.

Example

Training and Feature Visualization

Training of the network and feature vizualization is done in the train_feautureviz.py file. The training went on for just 20 epochs with a batch size of 16. Adam optimizer and SmoothL1 loss were used.

Before training

After training

Feature vizualization

Examples of learned weights in kernels/filters:

Learning in action (example with a single kernel on an input image):


This particular kernel learned to detect edges (high frequency areas) in the input image.

Predicting keypoints

I use a haar cascade to detect faces and consequently use the trained model to detect the facial keypoints (x, y) coordinate pairs. The detected faces (region of interest) are preprocessed: converted to grayscale, normalized, resized (refer predict_keypoints.py for the code and complete documented walkthrough) before actually predicting the keypoints.

Results

About

Detecting Facial Keypoints (Landmarks) using a custom CNN architecture

Topics

computer-visionfacial-keypointsfeature-vizualizationlandmarksregression

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.