All Projects → luanfujun → Deep Painterly Harmonization

luanfujun / Deep Painterly Harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189

Programming Languages

Cuda
1817 projects
lua
6591 projects
matlab
3953 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Deep Painterly Harmonization

Cupy
NumPy & SciPy for GPU
Stars: ✭ 5,625 (-6.67%)
Mutual labels:  cuda
Speedtorch
Library for faster pinned CPU <-> GPU transfer in Pytorch
Stars: ✭ 615 (-89.8%)
Mutual labels:  cuda
Chainer
A flexible framework of neural networks for deep learning
Stars: ✭ 5,656 (-6.16%)
Mutual labels:  cuda
Cudasift
A CUDA implementation of SIFT for NVidia GPUs (1.2 ms on a GTX 1060)
Stars: ✭ 555 (-90.79%)
Mutual labels:  cuda
Thundergbm
ThunderGBM: Fast GBDTs and Random Forests on GPUs
Stars: ✭ 586 (-90.28%)
Mutual labels:  cuda
Vexcl
VexCL is a C++ vector expression template library for OpenCL/CUDA/OpenMP
Stars: ✭ 626 (-89.61%)
Mutual labels:  cuda
Nvparse
Fast, gpu-based CSV parser
Stars: ✭ 533 (-91.16%)
Mutual labels:  cuda
Cuda Convnet2
Automatically exported from code.google.com/p/cuda-convnet2
Stars: ✭ 690 (-88.55%)
Mutual labels:  cuda
Luxcore
LuxCore source repository
Stars: ✭ 601 (-90.03%)
Mutual labels:  cuda
Mc Cnn
Stereo Matching by Training a Convolutional Neural Network to Compare Image Patches
Stars: ✭ 638 (-89.41%)
Mutual labels:  cuda
Xmrig Nvidia
Monero (XMR) NVIDIA miner
Stars: ✭ 560 (-90.71%)
Mutual labels:  cuda
Taskflow
A General-purpose Parallel and Heterogeneous Task Programming System
Stars: ✭ 6,128 (+1.68%)
Mutual labels:  cuda
Kmcuda
Large scale K-means and K-nn implementation on NVIDIA GPU / CUDA
Stars: ✭ 627 (-89.6%)
Mutual labels:  cuda
Cudamat
Python module for performing basic dense linear algebra computations on the GPU using CUDA.
Stars: ✭ 554 (-90.81%)
Mutual labels:  cuda
Nv Wavenet
Reference implementation of real-time autoregressive wavenet inference
Stars: ✭ 681 (-88.7%)
Mutual labels:  cuda
Lighthouse2
Lighthouse 2 framework for real-time ray tracing
Stars: ✭ 542 (-91.01%)
Mutual labels:  cuda
Twostreamfusion
Code release for "Convolutional Two-Stream Network Fusion for Video Action Recognition", CVPR 2016.
Stars: ✭ 618 (-89.75%)
Mutual labels:  cuda
Gunrock
High-Performance Graph Primitives on GPUs
Stars: ✭ 718 (-88.09%)
Mutual labels:  cuda
Warp Ctc
Pytorch Bindings for warp-ctc
Stars: ✭ 684 (-88.65%)
Mutual labels:  cuda
Slang
Making it easier to work with shaders
Stars: ✭ 627 (-89.6%)
Mutual labels:  cuda

deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization"

Disclaimer

This software is published for academic and non-commercial use only.

Setup

This code is based on torch. It has been tested on Ubuntu 16.04 LTS.

Dependencies:

CUDA backend:

Download VGG-19:

sh models/download_models.sh

Compile cuda_utils.cu (Adjust PREFIX and NVCC_PREFIX in makefile for your machine):

make clean && make

Usage

To generate all results (in data/) using the provided scripts, simply run

python gen_all.py

in Python and then

run('filt_cnn_artifact.m')

in Matlab or Octave. The final output will be in results/.

Note that in the paper we trained a CNN on a dataset of 80,000 paintings collected from wikiart.org, which estimates the stylization level of a given painting and adjust weights accordingly. We will release the pre-trained model in the next update. Users will need to set those weights manually if running on their new paintings for now.

Removed a few images due to copyright issue. Full set here for testing use only.

Examples

Here are some results from our algorithm (from left to right are original painting, naive composite and our output):

Acknowledgement

  • Our torch implementation is based on Justin Johnson's code;
  • Histogram loss is inspired by Risser et al.

Citation

If you find this work useful for your research, please cite:

@article{luan2018deep,
  title={Deep Painterly Harmonization},
  author={Luan, Fujun and Paris, Sylvain and Shechtman, Eli and Bala, Kavita},
  journal={arXiv preprint arXiv:1804.03189},
  year={2018}
}

Contact

Feel free to contact me if there is any question (Fujun Luan [email protected]).

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