neuralstyletransfer
This is the python library which takes two image content image and style image and provide the output image looks like a content image but painted in the style of provided reference style image
Usage
pip install neural-style-transfer
Import NeuralStyleTransfer class from Library
from neuralstyletransfer.style_transfer import NeuralStyleTransfer
create class object
nst = NeuralStyleTransfer()
Load the content image and style image from local path
nst.LoadContentImage(content_img_path)
nst.LoadStyleImage(style_img_path)
You can also load image from external URL by providing pathType='url' by default it is setted to 'local'
nst.LoadContentImage(content_url, pathType='url')
nst.LoadStyleImage(style_url, pathType='url')
Use default parameters to train the model
Default parameters are given below we can change it based on requirement by providing values on calling .apply method
- contentWeight=1e3
- styleWeight=1e-2
- epochs=500
output = nst.apply()
output.save('output.jpg')
Content image
Style image
Output image
Metadata
Release files for neural-style-transfer 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neural-style-transfer-1.0.6.tar.gz | 9.0 kB | Without provenance | Details for neural-style-transfer-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neural_style_transfer-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for neural_style_transfer-1.0.6-py3-none-any.whl |
Total release size: 18.8 kB
Release files / neural-style-transfer-1.0.6.tar.gz
| Download URL | neural-style-transfer-1.0.6.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5904303334536e1b7f8bd8d8c2bb654c832874e7432aabee86ed9765c3c37778
|
|
BLAKE2b-256 checksum How to use checksums |
62410b62e007b64df3041c7599e622f5c1cfec9b4af32c20c308e5666117da54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / neural_style_transfer-1.0.6-py3-none-any.whl
| Download URL | neural_style_transfer-1.0.6-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0cb5b82af0c3e4afce2d31d805c2f53be6e563b7d8a6c8fb7f29549f7c85759
|
|
BLAKE2b-256 checksum How to use checksums |
b9800c6767a8efc0f09ff182405ba18e24e63ccfc135fc8bebec6ebd747e275a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for neural-style-transfer 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.