VapourSynth-BM3DHIP
This package contains the HIP implementation of the VapourSynth-BM3DCUDA filter.
Installation
pip install vapoursynth-bm3dhip
Detailed parameter information from the parent project follows.
VapourSynth-BM3DCUDA
Copyright© 2021 WolframRhodium
BM3D denoising filter for VapourSynth, implemented in CUDA.
Description
-
Please check VapourSynth-BM3D.
-
The
_rtcversion compiles GPU code at runtime, which might runs faster than standard version at the cost of a slight overhead. -
The
cpuversion is implemented in AVX and AVX2 intrinsics, serves as a reference implementation on CPU. However, bitwise identical outputs are not guaranteed across CPU and CUDA implementations.
Requirements
-
CPU with AVX support.
-
CUDA-enabled GPU(s) of compute capability 5.0 or higher (Maxwell+).
-
GPU driver 450 or newer.
The minimum requirement on compute capability is 3.5, which requires manual compilation (specifying nvcc flag -gencode arch=compute_35,code=sm_35).
The cpu version does not require any external libraries but requires AVX2 support on CPU in addition.
Parameters
{bm3dcuda, bm3dcuda_rtc, bm3dcpu}.BM3D(clip clip[, clip ref=None, float[] sigma=3.0, int[] block_step=8, int[] bm_range=9, int radius=0, int[] ps_num=2, int[] ps_range=4, bint chroma=False, int device_id=0, bool fast=True, int extractor_exp=0])
-
clip:
The input clip. Must be of 32 bit float format. Each plane is denoised separately if
chromais set toFalse. Data of unprocessed planes is undefined. Frame properties of the output clip are copied from it. -
ref:
The reference clip. Must be of the same format, width, height, number of frames as
clip.Used in block-matching and as the reference in empirical Wiener filtering, i.e.
bm3d.Final/bm3d.VFinal:basic = core.{bm3dcpu, bm3dcuda, bm3dcuda_rtc}.BM3D(src, radius=0) final = core.{bm3d...}.BM3D(src, ref=basic, radius=0) vbasic = core.{bm3d...}.BM3D(src, radius=radius_nonzero).bm3d.VAggregate(radius=radius_nonzero) vfinal = core.{bm3d...}.BM3D(src, ref=vbasic, radius=r).bm3d.VAggregate(radius=r) # alternatively, using the v2 interface basic_or_vbasic = core.{bm3dcpu, bm3dcuda, bm3dcuda_rtc}.BM3Dv2(src, radius=r) final_or_vfinal = core.{bm3d...}.BM3Dv2(src, ref=basic_or_vbasic, radius=r)
corresponds to the followings (ignoring color space handling and other differences in implementation), respectively
basic = core.bm3d.Basic(clip) final = core.bm3d.Final(basic, ref=basic) vbasic = core.bm3d.VBasic(src, radius=r).bm3d.VAggregate(radius=r, sample=1) vfinal = core.bm3d.VFinal(src, ref=vbasic, radius=r).bm3d.VAggregate(radius=r)
-
sigma: The strength of denoising for each plane.
The strength is similar (but not strictly equal) as
VapourSynth-BM3Ddue to differences in implementation. (coefficient normalization is not implemented, for example)Default
[3,3,3]. -
block_step, bm_range, radius, ps_num, ps_range:
Same as those in
VapourSynth-BM3D.If
chromais set toTrue, only the first value is in effect.Otherwise an array of values may be specified for each plane (except
radius).Note: It is generally not recommended to take a large value of
ps_numas current implementations do not take duplicate block-matching candidates into account during temporary searching, which may leads to regression in denoising quality. This issue is not present inVapourSynth-BM3D.Note2: Lowering the value of "block_step" will be useful in reducing blocking artifacts at the cost of slower processing.
-
chroma:
CBM3D algorithm.
clipmust be ofYUV444PSformat.Y channel is used in block-matching of chroma channels.
Default
False. -
device_id:
Set GPU to be used.
Default
0. -
fast:
Multi-threaded copy between CPU and GPU at the expense of 4x memory consumption.
Default
True. -
extractor_exp:
Used for deterministic (bitwise) output. This parameter is not present in the
cpuversion since the implementation always produces deterministic output.Pre-rounding is employed for associative floating-point summation.
The value should be a positive integer not less than 3, and may need to be higher depending on the source video and filter parameters.
Default
0. (non-determinism)
Notes
-
bm3d.VAggregateshould be called after temporal filtering, as inVapourSynth-BM3D. Alternatively, you may use theBM3Dv2()interface for both spatial and temporal denoising in one step. -
The
_rtcversion has three additional experimental parameters:-
bm_error_s: (string)
Specify cost for block similarity measurement.
Currently implemented costs:
SSD(Sum of Squared Differences),SAD(Sum of Absolute Differences),ZSSD(Zero-mean SSD),ZSAD(Zero-mean SAD),SSD/NORM.Default
SSD. -
transform_2d_s/transform_1d_s: (string)
Specify type of transform.
Currently implemented transforms:
DCT(Discrete Cosine Transform),Haar(Haar Transform),WHT(Walsh–Hadamard Transform),Bior1.5(transform based on a bi-orthogonal spline wavelet).Default
DCT.
These features are not implemented in the standard version due to performance and binary size concerns.
-
Statistics
GPU memory consumptions:
(ref ? 4 : 3) * (chroma ? 3 : 1) * (fast ? 4 : 1) * (2 * radius + 1) * size_of_a_single_frame
Compilation
- The CMake configuration of
BM3DCUDA_RTClinks to NVRTC static library by default, which requires CUDA 11.5 or later.
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_CUDA_FLAGS="--threads 0 --use_fast_math -Wno-deprecated-gpu-targets" -D CMAKE_CUDA_ARCHITECTURES="50;61-real;75-real;86"
cmake --build build --config Release
Metadata
Release files for vapoursynth-bm3dhip 2.17.5
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 | |
|---|---|---|---|---|
| vapoursynth_bm3dhip-2.17.5.tar.gz | 625.0 kB | With provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vapoursynth_bm3dhip-2.17.5-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| vapoursynth_bm3dhip-2.17.5-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
Total release size: 104.9 MB
Release files / vapoursynth_bm3dhip-2.17.5.tar.gz
| Download URL | vapoursynth_bm3dhip-2.17.5.tar.gz |
|---|---|
| Size | 625.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d9ccd5d2686d25ea48bb7d8195fcda8d0d99574adb143f02deac2d04732841b
|
|
BLAKE2b-256 checksum How to use checksums |
b10604c09ad0af17e86a2012d4cdd4e362654b1d2f0fd1335f1ef3c19cea8636
|
| 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 Aug 29, 2026.
Transparency logRelease files / vapoursynth_bm3dhip-2.17.5-py3-none-win_amd64.whl
| Download URL | vapoursynth_bm3dhip-2.17.5-py3-none-win_amd64.whl |
|---|---|
| Size | 11.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f90b2c996778b22fa084aa0c3ba1de0334414aeb6a8687be8ccaa42a02d2b4eb
|
|
BLAKE2b-256 checksum How to use checksums |
3bf55169f3ed9a421d6379de8a096a25842f62e294d4e8395bd9a8eb554785f3
|
| 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 Aug 29, 2026.
Transparency logRelease files / vapoursynth_bm3dhip-2.17.5-py3-none-manylinux_2_28_x86_64.whl
| Download URL | vapoursynth_bm3dhip-2.17.5-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 92.8 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
993f7815c32e962775183cd4b55ee18554b97a14d1fd98fbceb2516d7e7e9069
|
|
BLAKE2b-256 checksum How to use checksums |
5faefdc637024db11dd0cb93f4562077d8dfba9ee2e7ccea7a4f8276529c9f12
|
| 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 Aug 29, 2026.
Transparency logSecurity for vapoursynth-bm3dhip 2.17.5
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 3 files in this release have been uploaded with provenance metadata.
Attestation for vapoursynth_bm3dhip-2.17.5.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 Aug 29, 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.