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.1.tar.gz
(4.8 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.1.tar.gz.
File metadata
- Download URL: nst_vgg19-0.2.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e2b46ea15195cf4e0e55acd588855256ac24aa08bbb682246f34fa2698e36b8
|
|
| MD5 |
1929dd4c23113c49d7501da137989f2e
|
|
| BLAKE2b-256 |
5fa03f4e2548b70fb97ee5bb2b739f2f7912df32bc9fc58ea0d62c35d22d11ad
|
File details
Details for the file nst_vgg19-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nst_vgg19-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.2 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 |
a64f46786d490bd06fec52717e48ae81e3c8a3e8a0a6435b25df78c5edac857c
|
|
| MD5 |
3ad9094da3253cfa4f72cabfaab31db4
|
|
| BLAKE2b-256 |
36c482bf01c6956c70913b78ef7fe344872c394fe652bf9986ce642cdfc06639
|