GithubHelp home page GithubHelp logo

lucasxlu / transfbp Goto Github PK

View Code? Open in Web Editor NEW
50.0 4.0 8.0 2.87 MB

Official Code for Paper <Transferring Rich Deep Features for Facial Beauty Prediction> (arXiv1803.07253)

Home Page: https://arxiv.org/pdf/1803.07253.pdf

Python 100.00%
tensorflow scikit-learn machine-learning deep-learning facial-beauty-prediction face-analysis

transfbp's Introduction

Transferring Rich Deep Features for Facial Beauty Prediction

Introduction

This repo provides the source code for our paper Transferring Rich Deep Features for Facial Beauty Prediction. This code has been tested on Ubuntu16 .04 with TensorFlow0.12.0, a newer version may bring you some trouble since TensorFlow's APIs always change after releasing a new version.

Proposed Method

pipeline

Experiments

Our proposed two-stage method achieves state-of-the-art performance on SCUT-FBP and Female Facial Beauty Dataset (ECCV2010) v1.0 dataset. TransFBP also achieves very competitive performance on SCUT-FBP5500 dataset.

  • Evaluation with the SCUT-FBP Dataset
Methods PC
Combined Features+Gaussian Reg 0.6482
CNN-based 0.8187
Liu et al. 0.6938
KFME 0.7988
RegionScatNet 0.83
PI-CNN 0.87
TransFBP (Ours) 0.8742
  • Evaluation with the HotOrNot Dataset
Methods PC
Eigenface 0.180
Multiscale Model 0.458
Auto Encoder 0.437
TransFBP (Ours) 0.468
  • Evaluation with the SCUT-FBP5500 Dataset
Methods PC
Geometric features + Gaussian Regression 0.6738
Geometric features + SVR 0.6668
64UniSample + SVR 0.8065
AlexNet 0.8298
ResNet18 0.8513
ResNeXt50 0.8777
TransFBP (Ours) 0.8519

Examples

eccv_pred

Resources

Citation

If you find the code or the experimental results useful in your research, please consider citing our paper as:

@article{xu2018transferring,
  title={Transferring Rich Deep Features for Facial Beauty Prediction},
  author={Xu, Lu and Xiang, Jinhai and Yuan, Xiaohui},
  journal={arXiv preprint arXiv:1803.07253},
  year={2018}
}

transfbp's People

Contributors

lucasxlu 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  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

transfbp's Issues

Sizing issue in inference using pre-trained models

Hey @lucasxlu
I tried following your instructions, however I am facing some issues in inferencing the pre-trained models.
I kept the infer.py almost same, but just changed paths for vgg-face.mat and used joblib to load the BayesRegression model. However I face the following error -

ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 8192 is different from 100352)

I think you have trained the model using some other layer(and not conv5_1) or maybe 2 FC layers concatenated with each other(4096+4096)?

Pretrained models for inference

Hey @lucasxlu ,

Thanks a lot for providing amazing results on the benchmark datasets. I was wondering on how to inference the TransFBP results on custom images. Is there a link to the pre-trained model available? As well as any instructions for inference available?

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.