mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Create dupes file in interpolation step
This commit is contained in:
@@ -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...");
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user