Pytorch Implementation of Neural Style Transfer based on the paper, A Neural Algorithm of Artistic Style.
- torch
- torchvision
- PIL
python StyleTransfer.py --content-path [path to content image] --style-path [path to style image]
Run python StyleTransfer.py -h
for optional arguments
- Use LBFGS as optimizer. Adam or SGD optimizer do not give sharp outputs.
- Remember to normalize input (using mean and std of vgg input) and denormalize output
- Keep ratio of style_wt to content_wt more than 10, preferably around 100.
- Neural Style Transfer Pytorch Tutorial https://pytorch.org/tutorials/advanced/neural_style_tutorial.html#loss-functions
- Style Transfer https://github.com/djin31/StyleTransfer