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;