WolframRhodium / muvsfunc

Muonium's VapourSynth functions
75 stars 19 forks source link

SuperRes.py - KNLMeansCL: 'rclip' does not match the source clip! #21

Closed theChaosCoder closed 5 years ago

theChaosCoder commented 5 years ago

Is SuperRes.py up to date? I get this error:

diff = core.knlm.KNLMeansCL(diff, rclip=highRes, **knlm_args)
vapoursynth.Error: knlm.KNLMeansCL: 'rclip' does not match the source clip!

https://github.com/WolframRhodium/muvsfunc/blob/master/Collections/SuperRes.py#L41

input = mvf.Depth(clip, 16) # 1080p YUV420 source
target_width = 3840
target_height = 2160

upsampleFilter = partial(nnrs.nnedi3_resample, target_width=target_width, target_height=target_height)
clip = SuperRes(input, target_width, target_width, upsampleFilter1=upsampleFilter)
WolframRhodium commented 5 years ago

Thank you,

clip = SuperRes(input, target_width, target_width, upsampleFilter1=upsampleFilter)

should be

clip = SuperRes(input, target_width, _targetheight, upsampleFilter1=upsampleFilter)

theChaosCoder commented 5 years ago

works now, thx for the quick fix.