Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1101 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
I updated a few scripts today. Wanted to call out Boulder as I updated TransformsPack so now 'SSIM2' works over there or deep_resize().
deep_resize() also supports now ratio resize, so deep_resize(2) will mean to double the size, likewise deep_resize(0.5) is halving the size. As I said I finally added accumulated scene stats to SoftLimiter, making the limiting work on a per-scene basis. My plan is to include per-scene filtering in more functions so if you have a request for one of my filters let me know. Now all the scripts are up-to-date with internal (oops, nope, ExTools needs a minor update). From now on I will add global stats parser to SceneStats, work on Zopti optimizations and finally finish TransformsPack final.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 23rd April 2022 at 14:14. |
|
|
|
|
|
#1102 | Link |
|
Registered User
Join Date: Dec 2012
Posts: 65
|
Code:
setmemorymax(6000)
ffms2("video.mkv",cache=true)
ContinuityFixer(left=4, top=0, right=5, bottom=0, radius=0)
FillBorders(left=3,top=0, right=4, bottom=0, mode=0, y=2, u=3, v=3)
EdgeCleaner(strength=10, rep=false, rmode=17, smode=0, hot=false)
W=1920
H=1080
nnedi3_rpow2(rfactor=2, nsize=0, nns=4, qual=2, etype=0, pscrn=4, cshift="spline36resize", threads=8)
Blackmanresize(W, H, taps=4,0,0,-0,0)
ConvertTo16bit()
mthr = 16
bi = BitsPerComponent(last)
mthrHBD = ex_bs(mthr, 8, bi, true)
mlight1=last.flatmask(2, scale=5.0, lo=4, MSR=70, invert=false)
mdark1=last.flatmask(3, scale=7.0, lo=4, MSR=50, invert=false)
mask=last.ConditionalFilter(mlight1, mdark1, "AverageLuma()",">","60").ex_lut(Format("x {mthrHBD} <= x 0.5 * x 2 * ?"), UV=1).RemoveGrain((W>960) ? 20 : 11, -1)
deg1 = last.SMDegrain(tr=3,thSAD=340, thSADC=150, thSCD1=250,thSCD2=96, contrasharp=false, refinemotion=true, chroma=true, plane=4)
deg2 = last.SMDegrain(tr=2,thSAD=121, thSADC=50, thSCD1=156,thSCD2=96, contrasharp=false, refinemotion=true, chroma=true, plane=4)
deg=ConditionalFilter(deg1, deg2, "AverageLuma()",">","60")
ex_merge(deg ,last ,mask, luma=true, Y=3, UV=3)
LSFmod(ss_x=1.0,ss_y=1.0,strength=4,Smode=5)
FineDehalo(rx=2.8, ry=2.8, thmi=80, thma=128, thlimi=50, thlima=100, darkstr=0.0, brightstr=1.0, showmask=0, contra=0.0, excl=true)#.aWarpSharp2(depth=2)
db=last.neo_f3kdb(sample_mode=2, Y=64, Cb=64, Cr=64, grainy=44, grainC=0, range=15, dynamic_grain=false)
ex_merge(db, last, mask, luma=true, Y=3, UV=3) # пкрвый клип (дебандинг) второй клип(чистые линии)
z_ConvertFormat(colorspace_op="470bg:601:470bg:f=>709:709:709:f",dither_type="none")
ConvertBits(bits=10)
Prefetch(8)
__________________
Ryzen 2700x | ASUS ROG Strix GTX 1080 Ti | 16 Gb DDR4
Windows 10 x64 20H2 KD-55XE9005 | Edifier R2800 |
|
|
|
|
|
#1103 | Link | |
|
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,836
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... Last edited by Boulder; 23rd April 2022 at 17:59. |
|
|
|
|
|
|
#1104 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Prerequisites only as it needs SimilarityMetrics, fmtconv, vsTCanny... Speed wise I guess slower but haven't benchmarked. Hopefully I didn't break something/logic.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
|
|
|
|
|
#1105 | Link |
|
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,836
|
Something I noticed - 'Didée' as a string doesn't work correctly as it requires UTF8 support. VDub2 won't put the 'é' there in the script editor.
EDIT: and show=true won't help to see what is really being used since it shows whatever string is given in the function call.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... Last edited by Boulder; 23rd April 2022 at 19:11. |
|
|
|
|
|
#1106 | Link | |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Quote:
Do you mean to show also 'b' and 'c' coefficients? I know them by memory mostly, expected people to also familiarize but I can add them no problem.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
|
|
|
|
|
|
#1107 | Link | |
|
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,836
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
|
|
|
|
|
#1108 | Link |
|
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 3,075
|
@DogWay
I recently bought the Aniplex version of Full Metal Alchemist Brotherhood (an anime) and (I could easily guess) it's an upsampled version of the broadcast show. There are many aliased black line arts (with some halo too) and what was some grain (not excessive though) now became pixel blocks, mostly in dark areas. Is there anything I could do with your tools? Some examples: ![]()
__________________
@turment on Telegram |
|
|
|
|
|
#1109 | Link | |
|
Registered User
Join Date: Dec 2020
Posts: 100
|
Quote:
Code:
from vsutil import depth, split, join import vapoursynth as vs core = vs.core src = core.dgdecodenv.DGSource(r"D:\Encodes\FMAB\00000.dgi") src32 = depth(src, 32) y, u, v = split(src32) dsc = core.descale.Debicubic(y, width=960, height=540, b=0, c=1) w2x = core.caffe.Waifu2x(dsc, noise=-1, scale=2, model=6, cudnn=True, tta=False) w2x = join([w2x, u, v]) depth(w2x, 10).set_output() |
|
|
|
|
|
|
#1110 | Link |
|
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,827
|
Lineart looks great now!
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
|
|
|
|
#1111 | Link | |
|
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 3,075
|
Quote:
I am really a noob with VS. Anyway, is it the CUDA filter version? P.S: Results are awesome.
__________________
@turment on Telegram Last edited by tormento; 29th April 2022 at 18:20. |
|
|
|
|
|
|
#1112 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Yes, I was going to recommend de-scalers, probably the aliasing is due to a bad upscaling, so it should be fixed by returning it to the original size and optionally upscaling with a better (AI) upscaler.
Julek example is wonders, not even it cleaned the aliasing but also the ringing. A port attempt: Code:
src = DGSource("D:\Encodes\FMAB\00000.dgi")
src32 = ConvertBits(src, 32)
dsc = DeBicubicResizeMT(ExtractY(src32), 960, 540, b=0, c=1)
# w2x = Waifu2x(dsc, nr=0, scale=2, models="C:\opt\waifu2xAvisynth-models\models", jobs=4)
w2x = nnedi3resize(dsc, 1920,1080)
w2x = CombinePlanes(w2x, src32, planes="YUV",Pixel_Type="YUV420PS")
Adaptive_sharpen(w2x,0.5)
ConvertBits(10, dither=1)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 29th April 2022 at 18:27. |
|
|
|
|
|
#1114 | Link |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
I don't know, it's this build but only for AVS 2.6 x86.
There are other AI upscalers in AVS+ like FCBI, SuperResXBR or FSRCC. But I don't think any is modeled for anime. EDIT (alternative with less ringing): Code:
src = DGSource("D:\Encodes\FMAB\00000.dgi")
src32 = ConvertBits(last, 32)
dsc = deep_resize(ExtractY(src32), 960, 540)
w2x = deep_resize(dsc, 1920,1080,grain=0,deconv=0)
w2x = CombinePlanes(w2x, src32, planes="YUV",Pixel_Type="YUV420PS")
w2x
ConvertBits(10, dither=1)
aWarpSharp2(depth=4,type=1,blur=3,thresh=128,chroma=2)
FastLineDarkenMOD(prot=0, thinning=10, strength=30)
# some denoise
sec = ex_bs(0.51, 8, 10, fulls=true, flt=true)
ex_lutxy(ex_median("median5"), Format("x y == x dup y x - sgn {sec} * + ?"), UV=3)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 29th April 2022 at 19:16. |
|
|
|
|
|
#1116 | Link | |
|
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 3,075
|
Quote:
I can "stupidly" apply your script if you give me some coordinates.
__________________
@turment on Telegram |
|
|
|
|
|
|
#1117 | Link | |
|
Registered User
Join Date: Dec 2020
Posts: 100
|
Quote:
In advance I can tell you that we have 3 cunet options: caffe (CUDA ver) which has a brightness bug w2xnvk (Vulkan ver), which is slower than caffe, but has a bug-free release. mlrt (CUDA ver) which is the fastest of them, but has the same bug as caffe It's possible to mitigate the effects of the bug with Expr, or just use w2xnvk R3.2 |
|
|
|
|
|
|
#1118 | Link | |
|
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 3,075
|
Quote:
__________________
@turment on Telegram |
|
|
|
|
|
|
#1119 | Link | |
|
Registered User
Join Date: Nov 2009
Posts: 2,375
|
Quote:
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
|
|
|
|
|
|
#1120 | Link |
|
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,836
|
Is there a clear method for defining the upscale method? I have some film sources which are clearly rather poor upscales and would like to downscale back to the original resolution for the encode.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
|
|
![]() |
| Tags |
| avisynth, dogway, filters, hbd, packs |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|