From 38e4156bb8307e7f64bd84b720ccb93248dd6b09 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Mon, 21 Dec 2020 14:22:12 +0100 Subject: [PATCH] Fixed UHD threshold with video downscale --- Code/OS/AiProcess.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/OS/AiProcess.cs b/Code/OS/AiProcess.cs index 9e9bc40..1028393 100644 --- a/Code/OS/AiProcess.cs +++ b/Code/OS/AiProcess.cs @@ -150,7 +150,7 @@ namespace Flowframes { string rifeDir = Path.Combine(Paths.GetPkgPath(), Path.GetFileNameWithoutExtension(Packages.rifeCuda.fileName)); string script = "inference_video.py"; - bool uhd = IOUtils.GetVideoRes(Interpolate.current.inPath).Height >= Config.GetInt("uhdThresh"); + bool uhd = InterpolateUtils.GetOutputResolution(Interpolate.current.inPath).Height >= Config.GetInt("uhdThresh"); string uhdStr = uhd ? "--UHD" : ""; string args = $" --img {framesPath.Wrap()} --exp {(int)Math.Log(interpFactor, 2)} {uhdStr} --imgformat {InterpolateUtils.GetOutExt()} --output {Paths.interpDir}";