13.02.2020, 22:26
Here the script (the output is for a 10bit encoding)
You have to the download the file: https://github.com/HomeOfVapourSynthEvol...ffe-r13.7z
then you have to unzip it in [Home Hybrid]>/64bit/vsfilters/ResizeFilter and rename the folder "plugins64" in "Waifu2x-caffe".
P.S.
Le me know if you need the CUDA file: "cudnn64_7.dll"
# Loading Support Files
import ctypes
Dllref = ctypes.windll.LoadLibrary("D:/Programs/Hybrid/64bit/vsfilters/ResizeFilter/Waifu2x-caffe/cudnn64_7.dll")
# Loading Plugins
core.std.LoadPlugin(path="D:/Programs/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="D:/Programs/Hybrid/64bit/vsfilters/ResizeFilter/Waifu2x-caffe/Waifu2x-caffe.dll")
# Color Adjustment (add also Tweak in GUI)
# clip = adjust.Tweak(clip=clip, hue=0.0, sat=1.0, bright=0, cont=1.0, coring=False)
# adjusting color space from YUV420P8 to RGBS for Waifu2x-caffe
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="470bg", range_s="limited")
# resizing using Waifu2x-caffe
clip = core.caffe.Waifu2x(clip=clip, scale=2, noise=2, model=3, cudnn=True, processor=0, tta=False, block_w = 360, block_h = 272, batch = 1)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="470bg", range_s="limited")
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=720, interlaced=False, interlacedd=False)
You have to the download the file: https://github.com/HomeOfVapourSynthEvol...ffe-r13.7z
then you have to unzip it in [Home Hybrid]>/64bit/vsfilters/ResizeFilter and rename the folder "plugins64" in "Waifu2x-caffe".
[Home Hybrid]/64bit/vsfilters/ResizeFilter/
P.S.
Le me know if you need the CUDA file: "cudnn64_7.dll"