Giter Site home page Giter Site logo

raja-kumar / dense-face-alignment Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 2.0 72.4 MB

dense face landmark detection

License: Apache License 2.0

Python 100.00%
3d-face-reconstruction 3d-reconstruction computer-vision dense-facial-landmarks face-alignment flame landmark-detection papers-with-code

dense-face-alignment's Introduction

dense-face-alignment

Most of the existing face-alignments detects the standard 68 face landmarks. However, there is a need of dense facial landmarks for tasks such 3d face reconstruction, face recognition etc. DAD-3DHeads proposed a dense 2d landmark detector based on 3D face reconstruction. However, their performance deteriorates when face is only a part of the image. see figure below. To improve on this, I used mediapipe facial detector to detect the face, use the detected face to DADNet and then project back the detected landmarks in the original image coordinate.

dense landmarks sample

Dependencies

pip install -r requirements.txt

Note: if you are using mac silicon replace mediapipe with mediapipe-silicon in requirements.txt

How to replicate the results

python run.py -h

sample command

python run.py --data_path sample_input --num_points 445

sample command for custom points

python run.py --data_path sample_input --custom_index model_training/model/static/face_keypoints/ids1.npy

Citation

If you found this work useful for your research, please consider citing our paper

@inproceedings{kumar2023disjoint,
  title={Disjoint Pose and Shape for 3D Face Reconstruction},
  author={Kumar, Raja and Luo, Jiahao and Pang, Alex and Davis, James},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops},
  pages={3115--3125},
  year={2023}
}

Attributions

this repo is built on top of base code from DAD-3DHeads

dense-face-alignment's People

Contributors

raja-kumar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mabatin changfali

dense-face-alignment's Issues

cuda error

RuntimeError: CUDA error: no kernel image is available for execution on the device

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.