Skip to main content

Neural Style Transfer using VGG19

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nst_vgg19-0.2.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nst_vgg19-0.2.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file nst_vgg19-0.2.2.tar.gz.

File metadata

  • Download URL: nst_vgg19-0.2.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nst_vgg19-0.2.2.tar.gz
Algorithm Hash digest
SHA256 73afd908ae1212d17336c895a5dd8b3ce0974f014963caec6ec572d6bc064871
MD5 956511b3e4e1249a6310e4f57576879d
BLAKE2b-256 9aa8e26256ac7686b649a8ee86ceb176468d6cb5811f49087074e13b6ecb20c6

See more details on using hashes here.

File details

Details for the file nst_vgg19-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: nst_vgg19-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nst_vgg19-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 202c40e4bbbd8e9f31cb34938cc3a3a6afdae6c10974fb57ffb421ef08c2f759
MD5 0bda2a3563b285b2a70aae398fb2b3ec
BLAKE2b-256 cec9e0639c854b6da5dae6c0e3553a542444b9e7b00f5702571a1ba2f36d2c9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page