bm3dvk2
Block-Matching and 3D filtering, using Vulkan compute.
Ported from VapourSynth-BM3D. BM3D (spatial) and V-BM3D (temporal), basic and final estimates are consolidated into a single function. Temporal results are aggregated internally, so no separate aggregation call is needed.
Parameters
bm3dvk2.BM3D(vnode clip[, vnode ref=None, str profile="fast", float[] sigma=[10, 10, 10], int radius, int block_size, int block_step, int group_size, int bm_range, int bm_step, int ps_num, int ps_range, int ps_step, float th_mse, float hard_thr, int matrix=2])
-
clip: Clip to process. Gray or RGB of 16/32 bit float is supported, at most 65536 in width and height. RGB is converted to the opponent color space internally and converted back for output. 16 bit float input is processed with half precision arithmetic where the device supports it, which holds content within the usual [0, 1] range: samples far above it, even a single one, can overflow (from about 370-1000 with the profile defaults, down to about 20 at block_size=64 and group_size=256), so use 32 bit float for such content. Some estimates are accumulated with a fixed absolute precision of about 2^-17, so content scaled far below [0, 1] as a whole (to about 1e-4 of that range or less, with sigma scaled to match) loses accuracy; keep content in [0, 1].
-
ref: Reference clip, of the same format, dimensions and length as
clip. When omitted, the basic estimate (collaborative hard-thresholding) is produced. When specified, the final estimate (collaborative Wiener filtering) is produced, withref(usually a basic estimate) guiding block-matching and the Wiener filter. -
profile: Preset of the defaults below:
"fast","lc"(low complexity),"np"(normal),"high"or"vn"(very noisy). -
sigma: Strength of denoising per plane, in 8 bit scale, valid range [0, +inf). Unassigned planes take the value of the previous one. Planes of 0 are left unfiltered, and when it is 0 for every plane, the input is returned unprocessed.
-
radius: Temporal radius, valid range [0, 16]. 0 denoises spatially (BM3D), greater values denoise temporally over
radius * 2 + 1frames (V-BM3D). Defaults to the radius of the profile, and the defaults of the other parameters follow the selected mode. -
block_size: Size of a block, valid range [1, 64]. It must not exceed the width or height of
clip, which also applies to the profile default. -
block_step: Step between reference blocks, valid range [1, block_size].
-
group_size: Maximum number of blocks in a group, valid range [1, 256].
-
bm_range: Radius of the block-matching search window, valid range [1, +inf).
-
bm_step: Step between block-matching search positions, valid range [1, bm_range].
-
ps_num: Number of the best matches of a frame that center the predictive search in the next frame, valid range [1, group_size]. Temporal only.
-
ps_range: Radius of the predictive search window, valid range [1, +inf). Temporal only.
-
ps_step: Step between predictive search positions, valid range [1, ps_range]. Temporal only.
-
th_mse: Threshold of mean square error for block-matching, valid range [0, +inf). Defaults depend on the profile and
sigma[0]. Withblock_sizeabove 8, block distances carry a rounding error that grows with the square of the sample range, so for content far outside [0, 1] and a smallth_mse, identical blocks may go unmatched. Even within [0, 1], blocks whose distances nearly tie atth_mseor at thegroup_sizecutoff may be grouped differently from the CPU implementation, so smooth, noisy content can differ from it locally by about 1e-3. -
hard_thr: Threshold of hard-thresholding, valid range (0, +inf). Basic estimate only.
-
matrix: Matrix coefficients of Gray input, used to normalize
sigmaandth_mse: 0 (GBR), 1 (BT.709), 2 (unspecified, chosen by resolution), 4 (FCC), 5 (BT.470BG), 6 (SMPTE 170M), 7 (SMPTE 240M), 9 (BT.2020 NCL), 10 (BT.2020 CL) or 100 (opponent color space). RGB input always uses the opponent color space. Gray input frames with the propertyBM3D_OPP=1(opponent color space planes, e.g. frombm3d.RGB2OPP) must use 100, or their frame requests fail.
Profile defaults
Values are basic / final.
| profile | radius | block_size | block_step | group_size | bm_range | ps_num | ps_range | hard_thr |
|---|---|---|---|---|---|---|---|---|
| radius = 0 | ||||||||
| fast | 8 / 8 | 8 / 7 | 8 / 8 | 9 / 9 | 2.7 | |||
| lc | 8 / 8 | 6 / 5 | 16 / 16 | 9 / 9 | 2.7 | |||
| np | 8 / 8 | 4 / 3 | 16 / 32 | 16 / 16 | 2.7 | |||
| high | 8 / 8 | 3 / 2 | 16 / 32 | 16 / 16 | 2.7 | |||
| vn | 8 / 11 | 4 / 6 | 32 / 32 | 16 / 16 | 2.8 | |||
| radius > 0 | ||||||||
| fast | 1 | 8 / 8 | 8 / 7 | 8 / 8 | 7 / 7 | 2 / 2 | 4 / 5 | 2.7 |
| lc | 2 | 8 / 8 | 6 / 5 | 8 / 8 | 9 / 9 | 2 / 2 | 4 / 5 | 2.7 |
| np | 3 | 8 / 8 | 4 / 3 | 8 / 8 | 12 / 12 | 2 / 2 | 5 / 6 | 2.7 |
| high | 4 | 8 / 8 | 3 / 2 | 8 / 8 | 16 / 16 | 2 / 2 | 7 / 8 | 2.7 |
| vn | 4 | 8 / 11 | 4 / 6 | 16 / 16 | 12 / 12 | 2 / 2 | 5 / 6 | 2.8 |
bm_step and ps_step default to 1. th_mse defaults to sigma[0] * 80 + 400 / sigma[0] * 10 + 200, or sigma[0] * 150 + 1000 / sigma[0] * 40 + 400 for "vn".
Installation
pip install -U vapoursynth-bm3dvk2
Metadata
Release files for vapoursynth-bm3dvk2 2.0
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 |
|---|---|---|---|---|
| vapoursynth_bm3dvk2-2.0.tar.gz | 196.5 kB | With provenance | Details for vapoursynth_bm3dvk2-2.0.tar.gz |
Built distributions (wheels)
Total release size: 3.9 MB
Release files / vapoursynth_bm3dvk2-2.0.tar.gz
| Download URL | vapoursynth_bm3dvk2-2.0.tar.gz |
|---|---|
| Size | 196.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18d963b1e0db8878011568ab8ced263ae2dbb6a84b54ae6422fd7c7cbecb7bda
|
|
BLAKE2b-256 checksum How to use checksums |
a4b44be6d5271eb5945312127962ebc3039788dd42e7573051ce547e659ff054
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-win_amd64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 338.6 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fad861c45de784135a89f557e343c29873af538b43ab86b13cb7639caeca278e
|
|
BLAKE2b-256 checksum How to use checksums |
fc6e7e24843ff824731de0ea018d3481a28591f6ef3008d5345158405cf6d120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
42f1b497db0a665af55fa1d7c5445a9480c29bbaf2263583764c4ff45e440243
|
|
BLAKE2b-256 checksum How to use checksums |
9658cf8bf824d2556ee5b1fbadbdfe80dfa361c79db4c3ba5fb048cc84bd0602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5180142711592139b8134e0cdbf01f215bda149e5a35101441a4920f43cd5a73
|
|
BLAKE2b-256 checksum How to use checksums |
1c9660d811dd579abcb890bd29a79b3c41e25247376ca36878b85143f9ae2874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 236.2 kB |
| Tags | Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b598f487a891ec5b02232e353ed3c814ec65f06e1bc1e0350faa729628dfcd4f
|
|
BLAKE2b-256 checksum How to use checksums |
f9c52ed9ececebbc9b968e3a988e24e71e434b3438632d995a6b8a92d604e465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 232.4 kB |
| Tags | Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
2cf71e80202835d9ad77cbe1bde6aa4ba3f556f9e94177520dd88f000dbcc927
|
|
BLAKE2b-256 checksum How to use checksums |
068b45cc470e2babc49ff2dc2cca244ddfd84edcd96498c5f41769e058bf13fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-macosx_11_0_arm64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 220.3 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b6edefd4b150cb86c45980bc03b712b5e545b1987bc7155d5e3134929c5cc53c
|
|
BLAKE2b-256 checksum How to use checksums |
25211b4b688284c5a49fa895463794091545d295871d2182778b209b0ae1950b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / vapoursynth_bm3dvk2-2.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | vapoursynth_bm3dvk2-2.0-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 216.7 kB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
c757cd18b46884ac7660efcb3a94e9a24a7d05c80048a9f8f68fb0018a39401f
|
|
BLAKE2b-256 checksum How to use checksums |
c15ab54feec2849cbcd9c2daf6be0fe004d4f05fb233dbbb363202f3286c4831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for vapoursynth-bm3dvk2 2.0
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.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for vapoursynth_bm3dvk2-2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA 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.