Skip to content

Artistic style transfer program written in PyTorch

Notifications You must be signed in to change notification settings

lkawka/style-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Style Transfer

The program performs a style transfer from one image to another. Input consists of two images: style image (with a style that we want to transfer) and content image (change the style of).

style_image content_image output_image

It is an implementation of the method proposed by Gatys et al. Deep learning framework selected for this project is PyTorch. If CUDA is available on your device, the program will automatically switch to GPU.

Example usage:

python3 style_transfer.py --content-path content.jpg --style-path style.jpg --output-path out.jpg

The training loop goes through 1000 iterations, but you can change that with the n-iterations parameter. You can also speed up the entire process by decreasing image size with the size parameter.

About

Artistic style transfer program written in PyTorch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published