View Full Version : HQMC - attemped denoising filter
kedautinh12
22nd September 2021, 02:15
Hi anton, just tried your ammended script, and there is still something wrong in line 66
den = Input.lremovedustC().fft3dgpu(sigma=sigma, sigma3=sigma3, bt=bt, plane=0, ncpu=4)
and this is my script :-
fft3dgpu need GPU to work so don't have ncpu parameter
https://github.com/pinterf/FFT3dGPU/blob/1f83c176e80c4f783a7840254a938646cd4de98c/FFT3dGPU/documentation/fft3dgpu.htm#L60
guest
22nd September 2021, 02:26
fft3dgpu need GPU to work so don't have ncpu parameter
https://github.com/pinterf/FFT3dGPU/blob/1f83c176e80c4f783a7840254a938646cd4de98c/FFT3dGPU/documentation/fft3dgpu.htm#L60
Hello friend,
I actually tried it without that, and then it had a error in line 68...
So would that be an nVidia or AMD GPU that's required ??
To use this filter you need directx 9.0c or better and a graphics card
supporting directx 9 in hardware. That is at least an ATI Radeon 95xx or Nvidia
Geforce fx 5xxx. Geforce 6xxx or better is recommended.
kedautinh12
22nd September 2021, 03:11
I think both, Intel GPU onboard can work but it's too slow
anton_foy
22nd September 2021, 09:35
fft3dgpu need GPU to work so don't have ncpu parameter
https://github.com/pinterf/FFT3dGPU/blob/1f83c176e80c4f783a7840254a938646cd4de98c/FFT3dGPU/documentation/fft3dgpu.htm#L60
Sorry my mistake! I will remove "ncpu" from the script now. But still I cannot figure out what is wrong with this line.
If you have trouble with fft3dgpu I can send you the "Hqmc_exl" script with fft3dfilter instead of fft3dgpu?
kedautinh12
22nd September 2021, 22:09
I seen Vcmohan's ManyPlus is required for HQMC_EXL
guest
22nd September 2021, 23:11
I seen Vcmohan's ManyPlus is required for HQMC_EXL
Yes, I only noticed that last night...
When did that happen ???
anton_foy
22nd September 2021, 23:13
Yes, I only noticed that last night...
When did that happen ???
I put it in the description even when I added hqmc_exl to the list ;)
guest
23rd September 2021, 02:24
I put it in the description even when I added hqmc_exl to the list ;)
Hello again, anton,
OK, I (we) have had a win, I've got both version's to work in AVSMeter :)
So here :-
## HQMC_EXL ##
function HQMC_EXL(clip Input, int "thsad", float "lt", float "ct", float "ls", float "cs",
\ int "restart", float "sigma", float "sigma3", int "bt", int "blocksize", clip "auxclip")
{
lt = Default(lt,9.0)
thsad = Default(thsad,240)
blocksize = Default(blocksize,32)
ct = Default(ct,12.0)
cs = Default(cs,6.0)
ls = Default(ls,0.0)
restart = Default(restart,10)
sigma = Default(sigma,1.7)
sigma3 = Default(sigma3,3.4)
bt = Default(bt,3)
aux=Defined(auxclip)
auxclip=aux ? auxclip : input
clip = Input.hqmc(lt=lt,ct=ct,ls=ls,cs=cs,restart=restart,thsad=thsad)
den = Input.lremovedustC().fft3dfilter(sigma=sigma, sigma3=sigma3, bt=bt, plane=0, ncpu=4)
dmask = clip.coloryuv(autogain=true).SaltPepper(opt="both",UV=false,avg=true,feedback=1).ex_median().Adaptive_Sharpen(str=1.3)
\ .ex_edge(mode="dob").mt_expand(paramscale="i16").mt_expand(paramscale="i16").mt_expand(paramscale="i16").removegrain(20,-1)
mer = mt_merge(den,clip,dmask, Y=3,U=3,V=3, paramscale="i16")
ex_blend(clip, mer, mode="blend", opacity=1.0).neo_f3kdb()
return last
}
and
## HQMC_EXL ##
function HQMC_EXL(clip Input, int "thsad", float "lt", float "ct", float "ls", float "cs",
\ int "restart", float "sigma", float "sigma3", int "bt", int "blocksize", clip "auxclip")
{
lt = Default(lt,9.0)
thsad = Default(thsad,240)
blocksize = Default(blocksize,32)
ct = Default(ct,12.0)
cs = Default(cs,6.0)
ls = Default(ls,0.0)
restart = Default(restart,10)
sigma = Default(sigma,1.7)
sigma3 = Default(sigma3,3.4)
bt = Default(bt,3)
aux=Defined(auxclip)
auxclip=aux ? auxclip : input
clip = Input.hqmc(lt=lt,ct=ct,ls=ls,cs=cs,restart=restart,thsad=thsad)
den = Input.lremovedustC().fft3dgpu(sigma=sigma, sigma3=sigma3, bt=bt, plane=0)
dmask = clip.coloryuv(autogain=true).SaltPepper(opt="both",UV=false,avg=true,feedback=1).ex_median().Adaptive_Sharpen(str=1.3)
\ .ex_edge(mode="dob").mt_expand(paramscale="i16").mt_expand(paramscale="i16").mt_expand(paramscale="i16").removegrain(20,-1)
mer = mt_merge(den,clip,dmask, Y=3,U=3,V=3, paramscale="i16")
ex_blend(clip, mer, mode="blend", opacity=1.0).neo_f3kdb()
return last
}
And my scripts, for RipBot :-
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\fft3dfilter\fft3dfilter.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
LoadPlugin("%AVISYNTHPLUGINS%\manyPlus\x64\manyPlus.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools58.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack29.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack15.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\HQMC_EXL-fft3dfilter.avs")
video=HQMC_EXL(video, lt=9.0, thsad=240, blocksize=32, ct=9.0, cs=0.0, ls=0.0)
and
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\fft3dgpu\fft3dgpu.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
LoadPlugin("%AVISYNTHPLUGINS%\manyPlus\x64\manyPlus.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools58.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack29.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack15.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\HQMC_EXL-fft3dgpu.avs")
video=HQMC_EXL(video, lt=9.0, thsad=240, blocksize=32, ct=9.0, cs=0.0, ls=0.0)
FYI, the fft3dfilter script is WAY faster.
Now all I need to do is some tests, and see what they look like :)
Cheers
anton_foy
23rd September 2021, 02:32
Hello again, anton,
OK, I (we) have had a win, I've got both version's to work in AVSMeter :)
So here :-
and
And my scripts, for RipBot :-
and
FYI, the fft3dfilter script is WAY faster.
Now all I need to do is some tests, and see what they look like :)
Cheers
Thank you for that! Same on my side, the fft3dfilter is way faster than fft3dgpu but my graphics card is really crap. How much speed difference on your side between them two scripts?
guest
23rd September 2021, 02:41
Thank you for that! Same on my side, the fft3dfilter is way faster than fft3dgpu but my graphics card is really crap. How much speed difference on your side between them two scripts?
NO, thank you :)
Just a quick run in AVSMeter...
fft3dgpu avg fps : 58 - 60
fft3dfilter avg fps : 120 - 122 (so twice), using an RX 480 GPU & 3950X.
So I now have several variants of your "new" script", so I now need to test.
UPDATE :- Well, I'm a little annoyed, I have been trying to test a 5 minute chunk of a pretty "dirty" 4K HDR movie, with a couple of the HQMC-EXL variants (and a couple of other new (to me) filters, and it's just so SLOW to start processing.
They would probably be OK on smaller res videos, but for me using them on 4K is pretty much not an option, even with a 5950X doing it's best :(
kedautinh12
23rd September 2021, 02:57
I don't sudden when rx 480 lose 3950x
anton_foy
23rd September 2021, 03:12
I don't sudden when rx 480 lose 3950x
You mean fft3dfilter is slower than fft3dgpu for you?
kedautinh12
23rd September 2021, 03:25
Yeah, cause i use laptop so my GPU is RTX 3060 and CPU ryzen 5800h
kedautinh12
23rd September 2021, 03:29
I put it in the description even when I added hqmc_exl to the list ;)
Sr, i didn't noted cause i put all in one autoload folder and don't need use LoadPlugin and Import command
anton_foy
23rd September 2021, 10:14
Sr, i didn't noted cause i put all in one autoload folder and don't need use LoadPlugin and Import command
No problem same here. But for speed reasons I was think to use ex_median(mode="undot") instead of "saltpepper". If somebody know how to speed up this script and have any suggestions I will be very happy to listen :)
guest
23rd September 2021, 12:13
I think I'm going to have to go back to my older filters that did a real good job, and didn't take a LONG time....these filters might be way to complex, and trying to do too much, they're just slow. :(
anton_foy
23rd September 2021, 12:39
I think I'm going to have to go back to my older filters that did a real good job, and didn't take a LONG time....these filters might be way to complex, and trying to do too much, they're just slow. :(
Is HQMC too slow? Strange, on my computer it is faster than smdegrain, mdegrain, dfttest. Which older filter did you use?
guest
23rd September 2021, 14:35
Is HQMC too slow? Strange, on my computer it is faster than smdegrain, mdegrain, dfttest. Which older filter did you use?
I think I'm just a little disheartened that I keep trying to add more functions to the encoding app that I use, and that you guys keep improving the way these scripts & filters work, and that I have some pretty reasonable processing power, and yet when it comes to certain filters & certain media, it just doesn't gel.
It's hard to get a happy medium, when some filters use GPU's, some filters use CPU's, and each does it's job just a little bit differently to the other, and it just gets to a point where you might need to take a step backwards, and start the climb back up again.
I had what I thought was a good setup several weeks ago, and I was using certain filters & scripts, but now it's getting a bit too complicated, too many variant's, too many dependencies, and tbh, I really don't know what I'm doing, I have no experience with coding, programming, script compilation, I'm just going on a lot of trial & error, and it is tiring.
I seem to be spending more time adding new updates & new filters than I am processing the huge amount of video's I've got, that I may never finish.
I think I might need to take a break....
kedautinh12
23rd September 2021, 15:42
Good luck old man and see you again :D
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.