Coder Social home page Coder Social logo

2d-face-landmark-localization's Introduction

2D-face-landmark-localization

This repository contains the code of 2D face landmark localization with PyTorch

To run this code, you need to have following libraries:

  • OpenCV - We tested our code with version > 3.0;
  • PyTorch - We tested with v0.4.0;
  • Numpy- We tested with 1.10.0;
  • Python - We tested our code with Pythonv3. If you are using Python v2, please feel free to make necessary changes to the code;

Training, evaluate and export.

Before training started, make sure the following requirements.

  • Training dataset and Test dataset must should be crop the face with some face detection algorithm such as dlib and so on.
  • We should have a file list which contains the image name and landmark's coordinates such as: face_01.jpg, 1,2,3,4,5,6 ...
  • You should argument you dataset with scael, mirror, affine, and I have put those code in the file of data_prepare.

The following example shows how to train the code:

bash
# From the repo's root directory
# Training the code
sh run.sh
bash
# From the repo's root directory
# test the model
sh eval.sh

The result

License

This project is licensed under the MIT License - see the LICENSE.md file for details

2d-face-landmark-localization's People

Contributors

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