All Projects → chaofengc → Face-Sketch

chaofengc / Face-Sketch

Licence: MIT license
Face Sketch Synthesis with Style Transfer using Pyramid Column Feature, WACV2018

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Face-Sketch

sRender
Facial Sketch Render, ICASSP 2021
Stars: ✭ 20 (-61.54%)
Mutual labels:  style-transfer, face-sketch-synthesis
MeuralPaint
TensorFlow implementation of CNN fast neural style transfer ⚡️ 🎨 🌌
Stars: ✭ 19 (-63.46%)
Mutual labels:  style-transfer
Ai Art
PyTorch (and PyTorch Lightning) implementation of Neural Style Transfer, Pix2Pix, CycleGAN, and Deep Dream!
Stars: ✭ 153 (+194.23%)
Mutual labels:  style-transfer
Warpgan
(CVPR 2019 Oral) Style Transfer with Geometric Deformation
Stars: ✭ 215 (+313.46%)
Mutual labels:  style-transfer
Cartoonify
Deploy and scale serverless machine learning app - in 4 steps.
Stars: ✭ 157 (+201.92%)
Mutual labels:  style-transfer
MIDI-VAE
No description or website provided.
Stars: ✭ 56 (+7.69%)
Mutual labels:  style-transfer
Neural Tools
Tools made for usage alongside artistic style transfer projects
Stars: ✭ 150 (+188.46%)
Mutual labels:  style-transfer
Joint-Bilateral-Learning
An unofficial implementation of Joint Bilateral Learning for Real-time Universal photorealistic Style Transfer
Stars: ✭ 52 (+0%)
Mutual labels:  style-transfer
Neural-Tile
A better tiling script for Neural-Style
Stars: ✭ 35 (-32.69%)
Mutual labels:  style-transfer
Style transfer
CNN image style transfer 🎨.
Stars: ✭ 210 (+303.85%)
Mutual labels:  style-transfer
Cyclegan Music Style Transfer
Symbolic Music Genre Transfer with CycleGAN
Stars: ✭ 201 (+286.54%)
Mutual labels:  style-transfer
Dst
Deformable Style Transfer (ECCV 2020)
Stars: ✭ 167 (+221.15%)
Mutual labels:  style-transfer
ArtsyNetworks
Deep Learning + Arts
Stars: ✭ 24 (-53.85%)
Mutual labels:  style-transfer
Zi2zi
Learning Chinese Character style with conditional GAN
Stars: ✭ 1,988 (+3723.08%)
Mutual labels:  style-transfer
transformer-drg-style-transfer
This repository have scripts and Jupyter-notebooks to perform all the different steps involved in Transforming Delete, Retrieve, Generate Approach for Controlled Text Style Transfer
Stars: ✭ 97 (+86.54%)
Mutual labels:  style-transfer
Msg Net
Multi-style Generative Network for Real-time Transfer
Stars: ✭ 152 (+192.31%)
Mutual labels:  style-transfer
Vincent Ai Artist
Style transfer using deep convolutional neural nets
Stars: ✭ 176 (+238.46%)
Mutual labels:  style-transfer
Tensorflow Fast Style Transfer
A simple, concise tensorflow implementation of fast style transfer
Stars: ✭ 224 (+330.77%)
Mutual labels:  style-transfer
Domain-Aware-Style-Transfer
Official Implementation of Domain-Aware Universal Style Transfer
Stars: ✭ 84 (+61.54%)
Mutual labels:  style-transfer
awesome-text-style-transfer
A list of resources about Text Style Transfer
Stars: ✭ 43 (-17.31%)
Mutual labels:  style-transfer

Face Sketch Synthesis with Style Transfer using Pyramid Column Feature

⚠️ Because Theano is no longer supported, this project cannot run on GPU with latest drivers. You may refer to our latest work about face sketch here: https://github.com/chaofengc/Face-Sketch-Wild.

Face Sketch Synthesis with Style Transfer using Pyramid Column Feature, WACV2018
Chaofeng Chen*, Xiao Tan*, Kwan-Yee K. Wong. (* equal contribution)

This paper addresses the problem of face sketch synthesis. Here is an example

Getting Started

Prerequisite

  • Python 2.7
  • keras 0.3.3
  • Theano 0.8.2
  • CUDA 7.5
  • CUDNN 5.0

It should be easy to install the python package with Anaconda and pip install.
Please make sure you have all the right version packages, or the code may not run properly.

Dataset

Our training data (./Data/photos and ./Data/sketches) comes from CUHK face sketch dataset [1]. It contains 188 face sketch pairs, of which 100 pairs are randomly selected from AR dataset, 88 from CUHK student dataset.

Usage

The following command line arguments is needed to run the demo

  • test image path
  • save content image path
  • save sketch result path
  • component weights: style weight, content weight, region weight

And the following arguments is optional

  • facepath, path to the train face photo
  • sketchpath, path to the train sketch. (NOTE: the corresponding sketch and photo must have the same name)
  • vggweight, path to gray version of vgg16
  • contentweight, path to weight of content network
  • featpath, path to precomputed train photo feature. (This may take large disk space, make sure you have enough space[>8GB] for it under this path)

example usage:

KERAS_BACKEND=theano python sketch_generate.py ./test/1.png ./result/content.png ./result/sketch.png 1. 0.001 0.1 

NOTE: the gpu number can be set by THEANO_FLAGS=device=gpu0

To generate results for all images in test/, run the following script

KERAS_BACKEND=theano python generate_result.py

Train the Content Network

Optional arguments

  • face_path, train photo path
  • sketch_path, train sketch path
  • save_weight_dir, path to save the weight
  • resume, whether resume the last train
  • batch_size, mini batch size

example usage:

KERAS_BACKEND=theano python train_content_net.py

Citation

If you find this code or the provided data useful in your research, please consider cite:

@inproceedings{chen2018face,
  title={Face Sketch Synthesis with Style Transfer using Pyramid Column Feature},
  author={Chen, Chaofeng and Tan, Xiao and Wong, KKY},
  booktitle={IEEE Winter Conference on Applications of Computer Vision},
  year={2018},
}

References

  1. CUHK Face Sketch Dataset
  2. Real-Time Exemplar-Based Face Sketch Synthesis
  3. Lighting and pose robust face sketch synthesis
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].