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. |
23rd July 2020, 19:56 | #21 | Link |
Registered User
Join Date: Jul 2018
Posts: 1,070
|
Strange to see Lanczos resize as reference for video data. I think the SincResize (with max possible 'taps' parameter) is closer to reference upsize resampler for band-limited and 'conditioned' against ringing good quality video data. Lanczos is more universal, but it significally limited for reference restoring of highset frequencies in video data. Unfortunately current version avisynth looks like has (small) bug in SincResize resampler implementation and it can make compare metrics with ideal input reference image data worse.
|
27th July 2020, 05:49 | #26 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
you can run glsl shaders directly in vs with vs-placebo
https://github.com/Lypheo/vs-placebo If you're on Windows with avisynth installed, you can also import an avs script into vapoursynth with AVISource |
27th July 2020, 08:46 | #27 | Link | |
Registered User
Join Date: Dec 2014
Posts: 36
|
Quote:
sample:1080p ---->2160P, can you give me a vs script ? thx! |
|
27th July 2020, 14:44 | #28 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
My English is poor too (and it's my first language ) You should probably post in the vapoursynth subforum One difference is Alexral did some separate training (slightly different) . I'm not sure how to use those into vapoursynth directly; only .glsl shaders can be used with placebo.Shader . (You can use the AVISource workaround, but you need windows, avisynth installed) There is documentation on the page eg. Code:
import vapoursynth as vs core = vs.get_core() clip = core.lsmas.LWLibavSource(r'PATH\input.mkv') clip = core.resize.Bicubic(clip, format=vs.YUV444P16) clip = core.placebo.Shader(clip, width=clip.width*2, height=clip.height*2, shader=r'PATH\FSRCNN-Medium\FSRCNN_x2_r2_16-0-2.glsl') clip.set_output() Last edited by poisondeathray; 28th July 2020 at 19:51. Reason: "LWLibavSource" for mkv example , oops |
|
31st July 2020, 02:43 | #34 | Link | |
Registered User
Join Date: Dec 2014
Posts: 36
|
Quote:
1、Plan to support 32bit float? 2、for video, "Photo" or "Illustration",Which is better? |
|
31st July 2020, 03:19 | #35 | Link |
Registered User
Join Date: Oct 2018
Posts: 324
|
32 bit float is not supported because the processing in Avisynth Shader is done at 16 bit depth, I don't think that will change.
For video that comes from a camera you should use the "Photo" models, the "Illustration" models are for artwork, drawings, etc. |
31st July 2020, 07:57 | #37 | Link |
Registered User
Join Date: May 2018
Posts: 49
|
This is really fantastic work. Thank you so much for all of the effort! These NN upscalers can be a little unpredictable and being able to modify the script and check the results in realtime is just invaluable. Really, really, terrific work. It's incredibly fast, too. Absolutely flies on my RX 480.
|
|
|