Log in

View Full Version : MCTemporalDenoise


Atlantis
14th October 2019, 10:42
I'm using MCTemporalDenoise with VS inside staxrip.

Instead of using the settings preset, I want to manually add the parameters. The problem is that it does not recognize some of the parameters. For example it says

Phyton Exception: MCTemporalDenoise() got an unexpected keyword argument 'sharp'
Traceback (most recent call last)

Any idea what is happening? I know that the argument exists. It accepts some arguments and doesn't accept others.

ChaosKing
14th October 2019, 11:32
Easiest way is to check the source code https://github.com/HomeOfVapourSynthEvolution/havsfunc/blob/master/havsfunc.py#L2944

def MCTemporalDenoise(i, radius=None, pfMode=3, sigma=None, twopass=None, useTTmpSm=False, limit=None, limit2=None, post=0, chroma=None, refine=False, deblock=False, useQED=None, quant1=None,
quant2=None, edgeclean=False, ECrad=None, ECthr=None, stabilize=None, maxr=None, TTstr=None, bwbh=None, owoh=None, blksize=None, overlap=None, bt=None, ncpu=1, thSAD=None,
thSADC=None, thSAD2=None, thSADC2=None, thSCD1=None, thSCD2=None, truemotion=False, MVglobal=True, pel=None, pelsearch=None, search=4, searchparam=2, MVsharp=None, DCT=0, p=None,
settings='low'):

Avisynth and Vapoursynth arguments are not all aquivalent for MCTemporalDenoise.

Selur
25th June 2020, 16:23
Also notice that MCTemporalDenoise for Vapoursynth only has roughly half the number of parameters (Vapoursynth 43 vs Avisynth 82; might have miscounted, but the scale should be right).
Vapoursynth:
### USAGE: MCTemporalDenoise(i, radius, pfMode, sigma, twopass, useTTmpSm, limit, limit2, post, chroma, refine,
### deblock, useQED, quant1, quant2,
### edgeclean, ECrad, ECthr,
### stabilize, maxr, TTstr,
### bwbh, owoh, blksize, overlap,
### bt, ncpu,
### thSAD, thSADC, thSAD2, thSADC2, thSCD1, thSCD2,
### truemotion, MVglobal, pel, pelsearch, search, searchparam, MVsharp, DCT,
### p, settings)
Avisynth:
### USAGE: MCTemporalDenoise(i, radius, sigma, twopass, useTTmpSm, limit, limit2, post, chroma, interlaced,
### sharp, adapt, strength, SHmode, SHmethod, Slimit, Sovershoot, Tlimit, Tovershoot,
### protect, cutoff, threshold, maxdiff,
### AA, useEEDI2, reduc, maxd, AAthr, method,
### deblock, useQED, quant1, quant2,
### edgeclean, ECrad, ECthr, ECmode,
### stabilize, maxr, TTstr,
### enhance, GFthr, AGstr, bias, temp,
### bwbh, owoh, blksize, overlap,
### GPU, fixband, bt, ncpu, precision,
### thSAD, thSAD2, thSCD1, thSCD2,
### truemotion, MVglobal, pel, pelsearch, search, searchparam, MVsharp, DCT,
### p, settings,
### show, screenW, screenH)
so make sure you don't rely on the Avisynth script documentation when you use the Vapoursynth script.
Vapoursynth hasn't the 'sharp' parameter.
I hope HolyWu will keep that parameter count in the Vapoursynth version down. (selfish GUI author doesn't want to try to add support for all those options,.. ;))

Cu Selur