Coder Social home page Coder Social logo

pinto0309 / pipnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shohruh72/pipnet

0.0 1.0 0.0 64.76 MB

The Facial Landmark Preprocessing Toolkit provides efficient preprocessing of facial images and landmarks, supporting image processing, landmark normalization, and data saving for training and testing.

Python 100.00%

pipnet's Introduction

PIPNet Facial Landmark Detection

This repository contains the implementation of PIPNet, a robust approach for facial landmark detection using a deep learning model based on ResNet architectures.

Click here to watch the video

Key Achievements

Exceptional Model Performance on the 300W Dataset

PIPNet model has achieved a significant milestone on the 300W dataset, one of the most challenging benchmarks in facial landmark detection. Successfully attained a minimum Normalized Mean Error (NME) of 2.6%, demonstrating the model's high accuracy and robustness in complex facial recognition tasks.

Features

  • Utilizes ResNet as the backbone for the PIPNet model.

  • Supports training, testing, and real-time demo modes.

  • Includes a 300W dataset loader and loss computation.

  • Implements a face detector for real-time landmark detection in videos.

  • Designed for easy customization and scalability to accommodate research and development needs.

Requirements

conda create -n PyTorch python=3.8
conda activate PyTorch
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-lts
pip install opencv-python==4.5.5.64
pip install PyYAML
pip install tqdm

Usage

Datasets: 300W

  • Download the datasets from official sources.
  • Run below command:
$ python converter.py --data_dir './Dataset'

Training

To train the model, run:

  • Configure your dataset path in main.py for training
$ python main.py --train --input-size 256 --batch-size 16 --epochs 60

Testing

For testing the model, use:

  • Configure your dataset path in main.py for testing
$ python main.py --test

Real-Time Demo

To run the real-time facial landmark detection:

$ python main.py --demo

Results

Backbone Epochs Test NME Pretrained weights
ResNet18 60 3.39 model
Reference

pipnet's People

Contributors

shohruh72 avatar pinto0309 avatar

Watchers

 avatar

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.