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.2.tar.gz
(4.9 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73afd908ae1212d17336c895a5dd8b3ce0974f014963caec6ec572d6bc064871
|
|
| MD5 |
956511b3e4e1249a6310e4f57576879d
|
|
| BLAKE2b-256 |
9aa8e26256ac7686b649a8ee86ceb176468d6cb5811f49087074e13b6ecb20c6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202c40e4bbbd8e9f31cb34938cc3a3a6afdae6c10974fb57ffb421ef08c2f759
|
|
| MD5 |
0bda2a3563b285b2a70aae398fb2b3ec
|
|
| BLAKE2b-256 |
cec9e0639c854b6da5dae6c0e3553a542444b9e7b00f5702571a1ba2f36d2c9c
|