Giter VIP home page Giter VIP logo

106-facial-landmark-detection-study's Introduction

106-facial-landmark-detection

This is just the first version of the code, the latest code has not been organized. The code will be updated soon. demo

Installation

python 2.7
pytorch 0.4.1
opencv-python
dlib python

Usage

data preprocess

The marked 106-point data should be stored in the .txt format. According to the order of 106 points, the x coordinate of a certain point is stored first, and then the y coordinate is stored. One of the maps corresponds to a txt file with the same name.

python gen_img.py

It requires a origin image storage path imgpath, a txt file storage path landmark, a new txt file storage save_landmark_anno, and an image storage path after the data augmentation landmark_imgs_save_dir.

train

Assign save_landmark_anno to label_path in train.py.

python train.py

The model file is stored as my_net.pkl in the current directory.

test

Assign the test image file path to img_path in test.py.

python test.py

Then drink a cup of coffee and start enjoying the joy of success.

106-facial-landmark-detection-study's People

Contributors

shine-lcy 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.