Skip to content

vishal1796/pytorch-fast-neural-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytorch implementation of "Perceptual Losses for Real-Time Style Transfer and Super-Resolution"

Requirement

$ conda install pytorch torchvision -c soumith

Train

Need to train one image transformation network model per one style target. According to the paper, the models are trained on the Microsoft COCO dataset.

python train.py --style_image "images/style/xyz.jpg" --dataset_path "images/content" --cuda

Generate

python fast_neural_style.py --input_image "images/input/xyz.jpg" -model "model_epoch_2.pth" --output_name "output.jpg" --cuda

Reference

Releases

No releases published

Packages

No packages published