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.3.0.tar.gz
(5.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.3.0.tar.gz.
File metadata
- Download URL: nst_vgg19-0.3.0.tar.gz
- Upload date:
- Size: 5.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 |
299986bd723f7b5070b3626f73162428395eb91edececb951b5684694cda9143
|
|
| MD5 |
d5954306219f4484ef204eb9163e436c
|
|
| BLAKE2b-256 |
ecb40f112ca8ae4573992c52ceb9d260dd127baff149e2b6784d4b7e5d9688b3
|
File details
Details for the file nst_vgg19-0.3.0-py3-none-any.whl.
File metadata
- Download URL: nst_vgg19-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.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 |
14b43a45ff56c26df1070e9fa56cd5199a21c903f15f1ea66529211a7483aab8
|
|
| MD5 |
515d9983bbb9edc27c405c629f4afe9b
|
|
| BLAKE2b-256 |
62fda8807cadc1dbc189cf8b4c2defb81cd75020fed8ca16ed35382484e4668a
|