Coder Social home page Coder Social logo

sfsnet's Introduction

SfSNet : Learning Shape, Reflectance and Illuminance of Faces in the Wild [Project Page]

Soumyadip Sengupta, Angjoo Kanazawa, Carlos D. Castillo, David W. Jacobs. In CVPR, 2018 (Spotlight).

Overview

  • (0) Test script: test_SfSNet.m
  • (1) Test images along with mask: Images_mask
  • (2) Test images without mask: Images

Run 'test_SfSNet' on Matlab to run SfSNet on the supplied test images.

Dependencies

This code requires a working installation of Caffe and Matlab interface for Caffe. For guidelines and help with installation of Caffe, consult the installation guide and Caffe users group.

Please set the variable PATH_TO_CAFFE_MATLAB, in line 3 of test_SfSNet.m as $PATH_TO_CAFFE/matlab (path to matlab folder for the caffe installation)

Notes

We detect keypoints on the face using All-in-One Network and compute a mask from it. Unfortunately the code is not distributable. Ideally, you can use any keypoint detector and generate a mask based on the facial contour.

For the ease of use, we include a matlab function functions/create_mask_fiducial.m which computes a mask given keypoints. The keypoint definitions are shown in functions/facial_landmarks_68markup-768x619.jpg. Dlib C++ Library can be used to detect 68 keypoints based on this definition.

Training Code

We provided neccessary .prototxt training and solver files, along with python loss layers needed to train SfSNet. Please check SfSNet_train for more details.

Training Data

We provide 250k synthetic face images with Ground-Truth normal, albedo and lighting at 512x512 resolution generated with 3DMM. Caution the file size is ~120GB. This data is provided only for research purposes.

Note: Please fill out this form to request access to the synthetic data.

For real data, please download the aligned and cropped CelebA face dataset.

Citation

If you use this code for your research, please consider citing:

@InProceedings{sfsnetSengupta18,
  title={SfSNet: Learning Shape, Refectance and Illuminance of Faces in the Wild},
  author = {Soumyadip Sengupta and Angjoo Kanazawa and Carlos D. Castillo and David W. Jacobs},
  booktitle={Computer Vision and Pattern Regognition (CVPR)},
  year={2018}
}

sfsnet's People

Contributors

akanazawa avatar senguptaumd 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.