Coder Social home page Coder Social logo

hongwenzhang / ect-facealignment Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 16.0 96.71 MB

[TIFS 2018] Combining Data-driven and Model-driven Methods for Robust Facial Landmark Detection

CMake 0.85% Makefile 0.20% Shell 0.26% Python 23.74% HTML 0.06% CSS 0.07% Jupyter Notebook 42.74% C++ 25.83% Cuda 1.62% MATLAB 0.38% Roff 3.73% C 0.51% Dockerfile 0.02%
face-alignment facial-landmark-detection

ect-facealignment's Introduction

Combining Data-driven and Model-driven Methods for Robust Facial Landmark Detection

This is the demo code for the ECT approach described in Combining Data-driven and Model-driven Methods for Robust Facial Landmark Detection.

ECT

Requirements

  • python 2.7

Instructions

You may need to compile the caffe firstly before you run the demo code. The pre-trained caffemodel could be downloaded from here.

cd caffe/python
for req in $(cat requirements.txt); do pip install $req; done
cd ..
make all
make pycaffe
cd ..
cd landmark_detection
python run_demo.py --imgDir path/to/you/testing/images --model path/to/the/pretrained/caffemodel --verbose True

Citation

If this work is helpful in your research, please cite the following paper.

@article{zhang2018combining,
  title={Combining data-driven and model-driven methods for robust facial landmark detection},
  author={Zhang, Hongwen and Li, Qi and Sun, Zhenan and Liu, Yunfan},
  journal={IEEE Transactions on Information Forensics and Security},
  volume={13},
  number={10},
  pages={2409--2422},
  year={2018},
  publisher={IEEE}
}

Acknowledgment

The code is developed upon Caffe-heatmap, Menpo, and Menpofit. Thanks to the original authors.

ECT was extended to detect facial landmarks on artistic portraits by Yaniv et al. Have a look at their code here. The Face Of Art

ect-facealignment's People

Contributors

hongwenzhang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

ect-facealignment's Issues

The python __import__() show error. ImportError: No module named copy_reg.

Thanks for you sharing . I met one problem , when I ran the run_demo.py .

WARNING: Logging before InitGoogleLogging() is written to STDERR
W1026 14:04:18.403190 17798 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W1026 14:04:18.403214 17798 _caffe.cpp:123] Use this instead (with the named "weights" parameter):
W1026 14:04:18.403218 17798 _caffe.cpp:125] Net('../caffe/models/300w/matlab.prototxt', 1, weights='../model_data/')
W1026 14:04:18.404358 17798 upgrade_proto.cpp:71] Note that future Caffe releases will only support input layers and not input fields.
Traceback (most recent call last):
File "run_demo.py", line 126, in
main(parser.parse_args())
File "run_demo.py", line 47, in main
fit_model = pickle.load(fit_model_file)
File "/usr/lib/python2.7/pickle.py", line 1384, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/usr/lib/python2.7/pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "/usr/lib/python2.7/pickle.py", line 1130, in find_class
import(module)
ImportError: No module named copy_reg

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.