/vs-denoise

VapourSynth denoising, regression, and motion compensation functions

Primary LanguagePythonMIT LicenseMIT

vs-denoise

VapourSynth denoising, regression, and motion-compensation functions


Wrappers for denoising, regression, and motion-compensation-related plugins and functions.

For support you can check out the JET Discord server.

How to install

Install vsdenoise with the following command:

pip install vsdenoise

Or if you want the latest git version, install it with this command:

pip install git+https://github.com/Jaded-Encoding-Thaumaturgy/vs-denoise.git



Example usage

from vsdenoise import MVTools, SADMode, MotionMode, Prefilter, BM3DCuda, Profile, nl_means

clip = ...

ref = MVTools.denoise(
    clip, thSAD=100, block_size=32, overlap=16,
    motion=MotionMode.HIGH_SAD,
    prefilter=Prefilter.DFTTEST,
    sad_mode=(
        SADMode.ADAPTIVE_SPATIAL_MIXED,
        SADMode.ADAPTIVE_SATD_MIXED,
    )
)

denoise = BM3DCuda.denoise(
    clip, sigma=0.8, tr=2, profile=Profile.NORMAL, ref=ref, planes=0
)

denoise = nl_means(denoise, tr=2, strength=0.2, ref=ref, planes=[1, 2])