All Projects → papulke → Face Of Art

papulke / Face Of Art

Licence: mit
Code for "The Face of Art: Landmark Detection and Geometric Style in Portraits"

Projects that are alternatives of or similar to Face Of Art

Python Lrcurve
Creates a learning-curve plot for Jupyter/Colab notebooks that is updated in real-time.
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Amazon Product Recommender System
Sentiment analysis on Amazon Review Dataset available at http://snap.stanford.edu/data/web-Amazon.html
Stars: ✭ 158 (+0%)
Mutual labels:  jupyter-notebook
Transformer All In One
Stars: ✭ 156 (-1.27%)
Mutual labels:  jupyter-notebook
Xianglong
资产配置方案
Stars: ✭ 158 (+0%)
Mutual labels:  jupyter-notebook
Named Entity Recognition Bidirectionallstm Cnn Conll
Keras implementation of "Few-shot Learning for Named Entity Recognition in Medical Text"
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Tf Adversarial
Adversarial networks in TensorFlow
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Trl
Train transformer language models with reinforcement learning.
Stars: ✭ 158 (+0%)
Mutual labels:  jupyter-notebook
Episodic Curiosity
Tensorflow/Keras code and trained models for Episodic Curiosity Through Reachability
Stars: ✭ 160 (+1.27%)
Mutual labels:  jupyter-notebook
Motion Sense
MotionSense Dataset for Human Activity and Attribute Recognition ( time-series data generated by smartphone's sensors: accelerometer and gyroscope)
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Hpelm
High performance implementation of Extreme Learning Machines (fast randomized neural networks).
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Algorithmictrading
This repository contains three ways to obtain arbitrage which are Dual Listing, Options and Statistical Arbitrage. These are projects in collaboration with Optiver and have been peer-reviewed by staff members of Optiver.
Stars: ✭ 157 (-0.63%)
Mutual labels:  jupyter-notebook
Dgc Net
A PyTorch implementation of "DGC-Net: Dense Geometric Correspondence Network"
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Eicu Code
Code and website related to the eICU Collaborative Research Database
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Severstal Steel Defect Detection
Kaggle Segmentation Challenge
Stars: ✭ 160 (+1.27%)
Mutual labels:  jupyter-notebook
Hair Segmentation
hair segmentation in mobile device
Stars: ✭ 160 (+1.27%)
Mutual labels:  jupyter-notebook
Lecture Python.notebooks
Notebooks for https://python.quantecon.org
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Poetry Seq2seq
Chinese Poetry Generation
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook
Applied Deep Learning With Tensorflow
Learn applied deep learning from zero to deployment using TensorFlow 1.8+
Stars: ✭ 160 (+1.27%)
Mutual labels:  jupyter-notebook
Interspeech2019 Tutorial
INTERSPEECH 2019 Tutorial Materials
Stars: ✭ 160 (+1.27%)
Mutual labels:  jupyter-notebook
Kaggle diabetic retinopathy
Fifth place solution of the Kaggle Diabetic Retinopathy competition.
Stars: ✭ 159 (+0.63%)
Mutual labels:  jupyter-notebook

The Face of Art: Landmark Detection and Geometric Style in Portraits

Code for the landmark detection framework described in The Face of Art: Landmark Detection and Geometric Style in Portraits (SIGGRAPH 2019)

Top: landmark detection results on artistic portraits with different styles allows to define the geometric style of an artist. Bottom: results of the style transfer of portraits using various artists' geometric style, including Amedeo Modigliani, Pablo Picasso, Margaret Keane, Fernand Léger, and Tsuguharu Foujita. Top right portrait is from 'Woman with Peanuts,' ©1962, Estate of Roy Lichtenstein.

Getting Started

Requirements

  • python
  • anaconda

Download

Model

download model weights from here.

Datasets

  • The datasets used for training and evaluating our model can be found here.

  • The Artistic-Faces dataset can be found here.

  • Training images with texture augmentation can be found here. before applying texture style transfer, the training images were cropped to the ground-truth face bounding-box with 25% margin. To crop training images, run the script crop_training_set.py.

  • our model expects the following directory structure of landmark detection datasets:

landmark_detection_datasets
    ├── training
    ├── test
    ├── challenging
    ├── common
    ├── full
    ├── crop_gt_margin_0.25 (cropped images of training set)
    └── crop_gt_margin_0.25_ns (cropped images of training set + texture style transfer)

Install

Create a virtual environment and install the following:

  • opencv
  • menpo
  • menpofit
  • tensorflow-gpu

for python 2:

conda create -n foa_env python=2.7 anaconda
source activate foa_env
conda install -c menpo opencv
conda install -c menpo menpo
conda install -c menpo menpofit
pip install tensorflow-gpu

for python 3:

conda create -n foa_env python=3.5 anaconda
source activate foa_env
conda install -c menpo opencv
conda install -c menpo menpo
conda install -c menpo menpofit
pip3 install tensorflow-gpu

Clone repository:

git clone https://github.com/papulke/deep_face_heatmaps

Instructions

Training

To train the network you need to run train_heatmaps_network.py

example for training a model with texture augmentation (100% of images) and geometric augmentation (~70% of images):

python train_heatmaps_network.py --output_dir='test_artistic_aug' --augment_geom=True \
--augment_texture=True --p_texture=1. --p_geom=0.7

Testing

For using the detection framework to predict landmarks, run the script predict_landmarks.py

Acknowledgments

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].