Giter Club home page Giter Club logo

ip_cfr-realease's Introduction

Identity-preserved Complete Face Recovering Network for Partial Face Image

Mengke Li, Yiu-ming Cheung


A pytorch implementation of Identity-preserved Complete Face Recovering Network for Partial Face Image

Contact: [email protected]

Dependency

The code is built with following libraries:

Dataset

  • CelebA (for training)
  • LFW (for testing)

Before training

We divide the CelebA dataset into training set and test set according to the identity of subjects. The images used for training are list in for example identity.txt in the following form:

image_name1.jpg label1
image_name2.jpg label2

Then read the identity.txt to load the images for training.

The images need to be pre-aligned before training. We use FAN [1] to align all images in CelebA and LFW according to the position of the eyes。

Training

  • To train IP-CFR using the train script simply specify the parameters listed in train.py as a flag or manually change them. We provide the example of training on CelebA dataset with this repo:
python train.py --root_path="E:\data"
		--dataset_name="prepared_image/img_align_celeba_crop" \
		--dataset_label="prepared_image/identity_CelebA.txt" \
		

Evaluation

If the input is a single partial image, use FAN (the face_alignment function) to find the position of the existing face informace. Then align it to the corresponding position of the training images.

References

  • [1] Bulat, Adrian, and Georgios Tzimiropoulos. "How far are we from solving the 2d & 3d face alignment problem?(and a dataset of 230,000 3d facial landmarks)." Proceedings of the IEEE International Conference on Computer Vision. 2017.

Citation

Please cite the paper if the codes are helpful for you research.

M.K. Li and Y.M. Cheung, "Identity-preserved Complete Face Recovering Network for Partial Face Image", IEEE Transactions on Emerging Topics in Computational Intelligence, in press.

ip_cfr-realease's People

Contributors

keke921 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.