diff --git a/Code/IO/Logger.cs b/Code/IO/Logger.cs index 52ca6bd..45a9135 100644 --- a/Code/IO/Logger.cs +++ b/Code/IO/Logger.cs @@ -64,6 +64,12 @@ namespace Flowframes } } + public static void LogIfLastLineDoesNotContainMsg (string s, bool hidden = false, bool replaceLastLine = false, string filename = "") + { + if (!GetLastLine().Contains(s)) + Log(s, hidden, replaceLastLine, filename); + } + public static void WriteToFile (string content, bool append, string filename) { if (string.IsNullOrWhiteSpace(filename)) diff --git a/Code/Main/Interpolate.cs b/Code/Main/Interpolate.cs index ca89e45..c19823a 100644 --- a/Code/Main/Interpolate.cs +++ b/Code/Main/Interpolate.cs @@ -202,8 +202,7 @@ namespace Flowframes AutoEncode.busy = false; Program.mainForm.SetWorking(false); Program.mainForm.SetTab("interpolation"); - if(!Logger.GetLastLine().Contains("Canceled interpolation.")) - Logger.Log("Canceled interpolation."); + Logger.LogIfLastLineDoesNotContainMsg("Canceled interpolation."); if (!string.IsNullOrWhiteSpace(reason) && !noMsgBox) Utils.ShowMessage($"Canceled:\n\n{reason}"); } diff --git a/pkgs/rife-cuda/models.txt b/pkgs/rife-cuda/models.txt index be9156f..610e0e3 100644 --- a/pkgs/rife-cuda/models.txt +++ b/pkgs/rife-cuda/models.txt @@ -1,4 +1,4 @@ -RIFE 1.5 - Optimized for general and HD content -RIFE 1.6 - Optimized for general and HD/UHD content +RIFE 1.5 - Optimized for general content +RIFE 1.6 - Updated general model RIFE 1.7 - Optimized for 2D animation (Recommended) -RIFE 1.8 - Optimized for all content (Experimental) \ No newline at end of file +RIFE 1.8 - Updated 2D animation model (Experimental) \ No newline at end of file diff --git a/pkgs/rife-ncnn/models.txt b/pkgs/rife-ncnn/models.txt index 05c7229..610e0e3 100644 --- a/pkgs/rife-ncnn/models.txt +++ b/pkgs/rife-ncnn/models.txt @@ -1,3 +1,4 @@ -RIFE 1.5 - Optimized for general and HD content -RIFE 1.6 - Optimized for general and HD/UHD content -RIFE 1.7 - Optimized for 2D animation (Recommended) \ No newline at end of file +RIFE 1.5 - Optimized for general content +RIFE 1.6 - Updated general model +RIFE 1.7 - Optimized for 2D animation (Recommended) +RIFE 1.8 - Updated 2D animation model (Experimental) \ No newline at end of file