Skip to main content

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, with ref (usually a basic estimate) guiding block-matching and the Wiener filter. Estimates of this plugin can differ between renders by up to about 1e-6 in [0, 1] (some tens of ULPs) for 32 bit float and one ULP for 16 bit float, since they are accumulated with floating-point atomics. Where blocks repeat exactly (e.g. static areas of lossy video), such differences in a basic estimate reorder tied matches, so a final estimate using it as ref can differ between renders locally by up to about 2e-2.

  • profile: Preset of the defaults below: "fast", "lc" (low complexity), "np" (normal), "high" or "vn" (very noisy).

  • sigma: Strength of denoising per plane (the opponent color planes for RGB input), 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 + 1 frames (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. Above 41 it needs more than the 16 KB of compute shared memory that Vulkan guarantees (maxComputeSharedMemorySize), and temporal denoising can need more below that too, with group_size near 256 or a large ps_num (e.g. group_size=256 from block_size=38).

  • block_step: Step between reference blocks, valid range [1, block_size].

  • group_size: Maximum number of blocks in a group, valid range [1, 256]. 1 disables block matching: each group holds only its reference block.

  • 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). 0 disables block matching as group_size=1 does, rather than matching only identical blocks. Defaults depend on the profile and sigma[0]. With block_size above 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 small th_mse, identical blocks may go unmatched. Even within [0, 1], samples quantized from 8-bit sources give many blocks exactly equal distances, which rounding that differs from the CPU implementation orders differently, so basic estimates can differ from it locally by up to a few 1e-2, as much as the CPU implementation's output changes when its input changes by one ULP. Final estimates whose ref is strongly smoothed (e.g. a basic estimate of sigma 100 or more, or of a large hard_thr) tie the same way and can differ as much.

  • hard_thr: Threshold of hard-thresholding, valid range (0, +inf). Basic estimate only.

  • matrix: Matrix coefficients of Gray input, used to normalize sigma and th_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 property BM3D_OPP=1 (opponent color space planes, e.g. from bm3d.RGB2OPP) must use 100, or requests for them, and temporally for the frames within radius of them, fail (unless sigma is 0 for every plane, which returns the input).

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".

Requirements

Besides the Vulkan 1.4 device that VapourSynth requires, the device must support subgroup arithmetic, ballot and shuffle operations, and must be able to pin the subgroup size of compute shaders (requiredSubgroupSizeStages including compute) unless its subgroup size is fixed or it is an Apple GPU.

Installation

pip install -U vapoursynth-bm3dvk2

Metadata

Release files for vapoursynth-bm3dvk2 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vapoursynth-bm3dvk2 3.0
File Size Uploaded Provenance Actions
vapoursynth_bm3dvk2-3.0.tar.gz 206.3 kB With provenance Details for vapoursynth_bm3dvk2-3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-bm3dvk2 3.0
File Actions
vapoursynth_bm3dvk2-3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vapoursynth_bm3dvk2-3.0-py3-none-win_amd64.whl
vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_x86_64.whl
vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_aarch64.whl
vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
vapoursynth_bm3dvk2-3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vapoursynth_bm3dvk2-3.0-py3-none-macosx_11_0_arm64.whl
vapoursynth_bm3dvk2-3.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for vapoursynth_bm3dvk2-3.0-py3-none-macosx_10_15_x86_64.whl

Total release size: 4.0 MB

Release files / vapoursynth_bm3dvk2-3.0.tar.gz

Download URL vapoursynth_bm3dvk2-3.0.tar.gz
Size 206.3 kB
Tags Source
SHA-256 checksum
How to use checksums
91deaa47b29dc1f0083ceb80b9c1454ae88881e18e95c4c5c4cbf719c93fbcaa
BLAKE2b-256 checksum
How to use checksums
c391a0ad0b1423f7465eba4b6bc1beb612258f14d139f809c6928ad4d20cbab7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-win_amd64.whl

Download URL vapoursynth_bm3dvk2-3.0-py3-none-win_amd64.whl
Size 347.4 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8ab194bb2d1578dd028be156813b55c5e6e96bfe8d4ab6175b22c3581685dbff
BLAKE2b-256 checksum
How to use checksums
7bd31030241f9f6c1ca456841fa9107ae3a2eeebb92930cb7619c092983a08ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_x86_64.whl

Download URL vapoursynth_bm3dvk2-3.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
8977f7c8b382b69d26ccb350ffa471d3f7d1cb72e648c663a07561d8494ecb1c
BLAKE2b-256 checksum
How to use checksums
4f3486782fa43346df662181c14f86c630335a465095db8a8d5d81276f8e2614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-musllinux_1_2_aarch64.whl

Download URL vapoursynth_bm3dvk2-3.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
1daa06cad8b0303d0566c31d15277ddd460c839900ebee99ff24cac73989e5fe
BLAKE2b-256 checksum
How to use checksums
aeef9d297d186041fc0a4b77891ec24f26a20c76a343c48ff528a0541d385268
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 246.8 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f049fbdfa759ad3fa17c3a0760601f16fda7326ed38fab90bebd008905fcd05c
BLAKE2b-256 checksum
How to use checksums
1552a756b33386049668b558aabc47be7a6505f05c839d61099f3983c80ad3a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL vapoursynth_bm3dvk2-3.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 242.5 kB
Tags Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e4e2b8f937a47eee4fbb6552d804341695e4b70f2edc46076c501fc58c4e1045
BLAKE2b-256 checksum
How to use checksums
19e291e054a9a158afe2587d1da4e82fe556b413351e3966b5c34874ddb2084a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-macosx_11_0_arm64.whl

Download URL vapoursynth_bm3dvk2-3.0-py3-none-macosx_11_0_arm64.whl
Size 230.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b87a43d55e5e97e7d2017ee3a11bf84987fc4da44bbae1c8aeaa11cab993ef9b
BLAKE2b-256 checksum
How to use checksums
4b2fd3bee62e77cbbbeed479f764051fccbedea26bd4d6aba914f0f0a7e0c4f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / vapoursynth_bm3dvk2-3.0-py3-none-macosx_10_15_x86_64.whl

Download URL vapoursynth_bm3dvk2-3.0-py3-none-macosx_10_15_x86_64.whl
Size 226.4 kB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
a460d85e5bd3344d6087039ee872f027d2675ec6956a63415dd91563290ba00a
BLAKE2b-256 checksum
How to use checksums
89cd8c43eca62e6b0743871e0b1e96227993a94f6efe47832f5079758ad8f2a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Security for vapoursynth-bm3dvk2 3.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.

Select from 8 files

Attestation for vapoursynth_bm3dvk2-3.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 29, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page