Skip to content

digbose92/Style_transfer_combo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Style_transfer_combo

Pytorch based implementations of style transfer algorithms .

Completed:

Running the code:

The style transfer code can be run using run_style_transfer.py as follows:

  • For enabling GPU use:
    python run_style_transfer.py --style_path '../images/wheat_field_van_gogh.jpg' --content_path '../images/santa_monica.jpg' --result_dir '../images' --max_epochs 60 --device 'cuda'
  • For using CPU use: python run_style_transfer.py --style_path '../images/wheat_field_van_gogh.jpg' --content_path '../images/santa_monica.jpg' --result_dir '../images' --max_epochs 60 --device 'cpu'

Results:

Left to Right (Style Image, Content Image, Result)

The above results have been generated after running the model in CPU. Due to limited memory of NVIDIA 940 MX GPU (4 GB) at my disposal, the optimization has been done using CPU.

TODO:

  • Supporting more architectures like mobilenet
  • Training the model with coco images
  • Automatic weight selection
  • Photorealistic image generation

Releases

No releases published

Packages

No packages published

Languages