Skip to content

alexanderbrodko/nst_vgg19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NST_VGG19

Neural Style Transfer using VGG19.

collage

Original paper link.

VGG19 weights from torchvision.

Installation

pip install nst_vgg19

Usage

nst photo.jpg --style style-image.png --output result.png

Usage in python

from nst_vgg19 import NST_VGG19

# images must be Numpy arrays. Use np.array(pil_image)

style_image = load_image('style.png')
content_image_1 = load_image('img1.jpg')
content_image_2 = load_image('img2.png')

nst = NST_VGG19(style_image)

result_1 = nst(content_image_1)
result_2 = nst(content_image_2)

About

Python module for Neural Style Transfer with VGG19

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages