Giter Site home page Giter Site logo

peternara / adaptivewingloss-face-alignment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from protossw512/adaptivewingloss

0.0 2.0 0.0 3.79 MB

[ICCV 2019] Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression - Official Implementation

Python 99.18% Shell 0.82%

adaptivewingloss-face-alignment's Introduction

AdaptiveWingLoss

Pytorch Implementation of Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression.

Update Logs:

October 28, 2019

  • Pretrained Model and evaluation code on WFLW dataset is released.

Installation

Note: Code was originally developed under Python2.X and Pytorch 0.4. This released version was revisioned from original code and was tested on Python3.5.7 and Pytorch 1.3.0.

Install system requirements:

sudo apt-get install python3-dev python3-pip python3-tk libglib2.0-0

Install python dependencies:

pip3 install -r requirements.txt

Run Evaluation on WFLW dataset

  1. Download and process WFLW dataset

    • Download WFLW dataset and annotation from Here.
    • Unzip WFLW dataset and annotations and move files into ./dataset directory. Your directory should look like this:
      AdaptiveWingLoss
      └───dataset
         │
         └───WFLW_annotations
         │   └───list_98pt_rect_attr_train_test
         │   │
         │   └───list_98pt_test
         │
         └───WFLW_images
             └───0--Parade
             │
             └───...
      
    • Inside ./dataset directory, run:
      python convert_WFLW.py
      
      A new directory ./dataset/WFLW_test should be generated with 2500 processed testing images and corresponding landmarks.
  2. Download pretrained model from Google Drive and put it in ./ckpt directory.

  3. Within ./Scripts directory, run following command:

    sh eval_wflw.sh
    
    *GTBbox indicates the ground truth landmarks are used as bounding box to crop faces.

Future Plans

  • Release evaluation code and pretrained model on WFLW dataset.

  • Release training code on WFLW dataset.

  • Release pretrained model and code on 300W, AFLW and COFW dataset.

  • Replease facial landmark detection API

Citation

If you find this useful for your research, please cite the following paper.

@InProceedings{Wang_2019_ICCV,
author = {Wang, Xinyao and Bo, Liefeng and Fuxin, Li},
title = {Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {October},
year = {2019}
}

Acknowledgments

This repository borrows or partially modifies hourglass model and data processing code from face alignment and pose-hg-train.

adaptivewingloss-face-alignment's People

Contributors

protossw512 avatar

Watchers

 avatar  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.