Create dupes file in interpolation step

This commit is contained in:
N00MKRAD
2021-04-06 19:47:09 +02:00
parent 2df5b8a69d
commit d5e87c43a6
3 changed files with 5 additions and 9 deletions

View File

@@ -159,13 +159,8 @@ namespace Flowframes
Logger.Log($"Copied loop frame to {loopFrameTargetPath}.", true); Logger.Log($"Copied loop frame to {loopFrameTargetPath}.", true);
} }
await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount); // Always
if (canceled) return; if (canceled) return;
if (!stepByStep)
await FrameRename.Rename();
if (current.alpha) if (current.alpha)
{ {
Program.mainForm.SetStatus("Extracting transparency..."); Program.mainForm.SetStatus("Extracting transparency...");
@@ -179,6 +174,8 @@ namespace Flowframes
public static async Task RunAi(string outpath, AI ai, bool stepByStep = false) public static async Task RunAi(string outpath, AI ai, bool stepByStep = false)
{ {
if (canceled) return; if (canceled) return;
await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount);
await FrameRename.Rename();
await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor); await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor);
Program.mainForm.SetStatus("Downloading models..."); Program.mainForm.SetStatus("Downloading models...");

View File

@@ -80,8 +80,6 @@ namespace Flowframes.Main
return; return;
} }
await FrameRename.Rename();
currentInputFrameCount = await InterpolateUtils.GetInputFrameCountAsync(current.inPath); currentInputFrameCount = await InterpolateUtils.GetInputFrameCountAsync(current.inPath);
// TODO: Check if this works lol, remove if it does // TODO: Check if this works lol, remove if it does

View File

@@ -35,10 +35,11 @@ namespace Flowframes.UI
List<string> goldPatrons = new List<string>(); List<string> goldPatrons = new List<string>();
List<string> silverPatrons = new List<string>(); List<string> silverPatrons = new List<string>();
string str = "Gold:\n"; string str = "Gold:\n";
string[] lines = csvData.SplitIntoLines(); string[] lines = csvData.SplitIntoLines().Select(x => x.Replace(";", ",")).ToArray();
for (int i = 0; i < lines.Length; i++) for (int i = 0; i < lines.Length; i++)
{ {
string line = lines[i].Replace(";", ","); string line = lines[i];
string[] values = line.Split(','); string[] values = line.Split(',');
if (i == 0 || line.Length < 10 || values.Length < 5) continue; if (i == 0 || line.Length < 10 || values.Length < 5) continue;
string name = values[0].Trim(); string name = values[0].Trim();