From b51ee375e5ce175a0921a9a77d90d0dc4deeb93b Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Sat, 3 Apr 2021 12:20:52 +0200 Subject: [PATCH] Create frames ini in interpolation step, to allow manual scenes/dedupe --- Code/Main/Interpolate.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Code/Main/Interpolate.cs b/Code/Main/Interpolate.cs index cdfbfaa..85fde36 100644 --- a/Code/Main/Interpolate.cs +++ b/Code/Main/Interpolate.cs @@ -149,12 +149,7 @@ namespace Flowframes if(!Config.GetBool("enableLoop")) await Utils.CopyLastFrame(currentInputFrameCount); - // if (Config.GetInt("dedupMode") > 0) - await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount); - - if (canceled) return; - - await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor); + await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount); // Always if (canceled) return; @@ -184,6 +179,10 @@ namespace Flowframes public static async Task RunAi(string outpath, AI ai, bool stepByStep = false) { + if (canceled) return; + + await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor); + Program.mainForm.SetStatus("Downloading models..."); await ModelDownloader.DownloadModelFiles(ai.pkgDir, current.model); if (canceled) return;