Neural Style Transfer using VGG19
Project description
NST_VGG19
Neural Style Transfer using VGG19.
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
Release history Release notifications | RSS feed
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.0.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nst_vgg19-0.2.0.tar.gz.
File metadata
- Download URL: nst_vgg19-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2aa10ad100ddd953982adc3ed38180ade626d68c6c2e05c9efe3dd6556ed05
|
|
| MD5 |
decd2d45e23c42a83ccf7379ca9991d8
|
|
| BLAKE2b-256 |
fcb396bfd7423b0d759d62a9d1ec255a98ddb01d0a7750ae3906cc8b9271eb4a
|
File details
Details for the file nst_vgg19-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nst_vgg19-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a20abfb5c5acff9a088a4126b314b1dffdf37ef901fd955f93757e153ddc2aef
|
|
| MD5 |
26fbd973ee4c9c35b08fc22affcb0872
|
|
| BLAKE2b-256 |
2048e1aa34c7957b32b6b89b2badc2a557abbb8585cb0fac848c3541b2d73457
|