Giter VIP home page Giter VIP logo

pfld-tf2's Introduction

PFLD Tensorflow 2

Implementation of PFLD A Practical Facial Landmark Detector by Tensorflow 2.

Usage

  1. Requirements: tensorflow >= 2.0.0, numpy, opencv, pytorch (optional)

  2. Datasets

    WFLW Dataset Download

    Wider Facial Landmarks in-the-wild (WFLW) is a new proposed face dataset. It contains 10000 faces (7500 for training and 2500 for testing) with 98 fully manual annotated landmarks.

    WFLW Training and Testing images Google Drive Baidu Drive

    WFLW Face Annotations

    Unzip above two packages and put them on ./data/WFLW/

    move Mirror98.txt to WFLW/WFLW_annotations

    $ cd data

    $ python3 SetPreparation.py

    Generate tfrecord:

    python tools/generate_tfrecord.py
  3. Train

    You can change configurations in train.py and config.py. For training, just execute one line code.

    python train.py
  4. Test

    Just read test.py and load weight you want.

  5. Camera test

    You should check if pytorch is installed, and load weight you want.

Others

  1. For loss function, attributes_w_n may all be zero, which makes loss equal to zero. So it may need to rethink about the weight.

  2. We provide a model called PFLD_wing_loss_fn which uses wing_loss and removes auxiliarynet.

  3. A model called PFLD_Ultralight is available, which uses GhostBottleneck.

Reference

  1. PFLD-pytorch
  2. PFLD-Ultralight

pfld-tf2's People

Contributors

notplus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pfld-tf2's Issues

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.