Source : https://pytorch.org/tutorials/advanced/neural_style_tutorial.html
Code :
Example :
Original style image ("Paysage près de Chatou" by André Derain)
File style.jpg : style image resized to the size of the content image
File content.jpg : content image (Village of Oingt, France)
Command line : python transfer.py
Result : file output.png