This is the code for the paper
Project Page | Paper | Poster | Video
Our method performs non-parametric warping to match artistic geometric style. The above shows content, style (geometry+texture), and output images for a Picasso style transfer (left) and a Salvaor Dali style transfer (right).
2021_Demo_Lowres.mov
If you find this code useful for your research, please cite
@InProceedings{Liu21LWST,
author={Xiao-Chang Liu and Yong-Liang Yang and Peter Hall},
title={Learning to Warp for Style Transfer},
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2021}
}
Dependencies:
- Geometric Warping: VLFeat and MatConvNet
- Texture Rendering: PyTorch, CUDA and cuDNN
Pre-trained Models:
- Download the model for geometric warping
cd geometric_warping
mkdir model
- Download the model for texture rendering
cd texture_rendering
python models/download_model.py
cd geometric_warping
run geo_warping.m [--STYLE_IMAGE] [--CONTENT_IMAGE]
After warping, empty background regions (if appear) are inpainted with pixels nearby.
cd texture_rendering
run multi_scale_st.sh [--STYLE_IMAGE] [--CONTENT_IMAGE] [--STYLE_WEIGHT]