Giter Club home page Giter Club logo

face-alignment's Introduction

Face Alignment

Introduction

Using Pytorch as a framework, based on Linear model,ResNet18 or MobileNetV2

1. Train Linear Model:

  • Data preparation:

    • Run python ./Data/ODATA/linear.py
  • Training steps:

    • Run tensorboard --logdir=/home/kenny/Desktop/Face-Alignment/CheckPoints/tensorboard_linear &
    • Run python Train_linear.py -h get usage
    • Run default parms python Train_linear.py
    • Checkpoint checkpoint_epoch_x.pth.tarin./CheckPoints/snapshot_linear/
    • You can get training log file from ./CheckPoints/train_linear.logs
  • Testing steps:

    • Run python Test_linear.py -h get usage
    • Run default parms python Test_linear.py

2. Train ResNet18 Model:

  • Data preparation:

    • Run python ./Data/ODATA/resnet.py
  • Training steps:

    • Run tensorboard --logdir=/home/kenny/Desktop/Face-Alignment/CheckPoints/tensorboard_resnet &
    • Run python Train_resnet.py -h get usage
    • Run default parms python Train_resnet.py
    • Checkpoint checkpoint_epoch_x.pth.tarin./CheckPoints/snapshot_resnet/
    • You can get training log file from ./CheckPoints/train_resnet.logs
  • Testing steps:

    • Run python Test_resnet.py -h get usage
    • Run default parms python Test_resnet.py

3. Train MobileNetV2 Model(refer to PFLD):

  • Data preparation:

    • Run python ./Data/ODATA/pfld.py
  • Training steps:

    • Run tensorboard --logdir=/home/kenny/Desktop/Face-Alignment/CheckPoints/tensorboard_pfld &
    • Run python Train_pfld.py -h get usage
    • Run default parms python Train_pfld.py
    • Checkpoint checkpoint_epoch_x.pth.tarin./CheckPoints/snapshot_pfld/
    • You can get training log file from ./CheckPoints/train_pfld.logs
  • Testing steps:

    • Run python Test_pfld.py -h get usage
    • Run default parms python Test_pfld.py

Result

Predict landmarks:Green Points
Ground Truth landmarks:Red Points

Linear Model:

  • Loss

  • Predict

ResNet18:

  • Loss

  • Predict

MobileNetV2(refer to PFLD):

  • Loss

  • Predict

Reference

face-alignment's People

Contributors

ideask avatar

Watchers

James Cloos 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.