A PyTorch implementation of the paper Image Style Transfer Using Convolutional Neural Network by LA Gatys et al. - CVPR 2016.
- Install all dependencies
pip install -r requirements.txt - To Run
python main.py --content_img <content_image_path> --style_img <style_image_path> - To check for other arguments, run
python main.py -h
- Style features are extracted using the
conv1_1,conv2_1,conv3_1,conv4_1,conv5_1layers and content features fromconv4_2layer of vgg19 net. Here I have used pretrained vgg19 net.
- Algorithm of style transfer as proposed by the authors.
α(alpha) iscontent weightandβ(beta) isstyle weight. Often the β is kept much larger than α, but sometimes it depends on the style image, and how much the style is to be superimposed with content.



