Video Non-Local Bayes (VNLB)
A Python Implementation for Video Non-Local Bayesian Denoiser.
Install
The package is available through Python pip,
$ python -m pip install vnlb --user
Or the package can be downloaded through github,
$ git clone https://github.com/gauenk/vnlb/
$ cd vnlb
$ python -m pip install -r requirements.txt --user
$ python -m pip install -e ./lib --user
Usage
We expect the images to be shaped (nframes,channels,height,width) with
pixel values in range [0,...,255.]. The color channels are ordered RGB. Common examples of noise levels are 10, 20 and 50. See scripts/example.py for more details.
import vnlb
import numpy as np
# -- get data --
clean = vnlb.testing.load_dataset("davis_64x64",vnlb=False)[0]['clean'].copy()[:3]
# (nframes,channels,height,width)
# -- add noise --
std = 20.
noisy = np.random.normal(clean,scale=std)
# -- Video Non-Local Bayes --
deno,basic,dtime = vnlb.denoise(noisy,std)
# -- compute denoising quality --
deno_psnr = vnlb.utils.compute_psnrs(clean,deno)
basic_psnr = vnlb.utils.compute_psnrs(clean,basic)
print("Denoised PSNRs:")
print(deno_psnrs)
print("Basic PSNRs:")
print(basic_psnrs)
print("Execution Time (s): %2.2e" % dtime)
Comparing with C++ Code
The outputs from this VNLB code and the C++ Code are almost equal. The primary difference between to two method is the way in which we achieve parallelism. This difference impacts the final PSNR, especially on smaller images. More details are included in docs/COMPARE.md.
Credits
This code provides is a Python+GPU implementation of the video denoising method (VNLB) described in:
Additionally, the original C++ code is from Pablo Arias. For easier interfacing, a Swig-Python Wrapper of the original C++ Code is available here.
LICENSE
Licensed under the GNU Affero General Public License v3.0, see LICENSE.
Metadata
Release files for vnlb 0.1.1
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 |
|---|---|---|---|---|
| vnlb-0.1.1.tar.gz | 44.7 kB | Without provenance | Details for vnlb-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vnlb-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vnlb-0.1.1-py3-none-any.whl |
Total release size: 98.9 kB
Release files / vnlb-0.1.1.tar.gz
| Download URL | vnlb-0.1.1.tar.gz |
|---|---|
| Size | 44.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b369a6349a07060dd8dcc8ea38285b87c340679af02e475ea18e34c8897c0a2
|
|
BLAKE2b-256 checksum How to use checksums |
dfa5dc440ba5ef7a7a237f11b3cf8db97a2e30f0523ea580e94b30a2ad006441
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.48.2 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10
|
Release files / vnlb-0.1.1-py3-none-any.whl
| Download URL | vnlb-0.1.1-py3-none-any.whl |
|---|---|
| Size | 54.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2807ae86a7f12ca063d8e2551f941ea7183dbb681b7c9af06b1afb700e5d178a
|
|
BLAKE2b-256 checksum How to use checksums |
6499f1a503a0f694264d3c0edd8d466461ac30d1151f5bd66cceca22e6b710d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.48.2 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10
|
Security for vnlb 0.1.1
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.