mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-09-01 19:51:28 +02:00
Ensure AutoEnc is not paused from prev run when starting interpolation
This commit is contained in:
@@ -63,7 +63,6 @@ namespace Flowframes.Main
|
||||
|
||||
if (paused)
|
||||
{
|
||||
//Logger.Log("autoenc paused");
|
||||
await Task.Delay(200);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,9 @@ namespace Flowframes
|
||||
|
||||
public static async Task RunRifeCuda(string framesPath, float interpFactor, string mdl)
|
||||
{
|
||||
if(Interpolate.currentlyUsingAutoEnc) // Ensure AutoEnc is not paused
|
||||
AutoEncode.paused = false;
|
||||
|
||||
string rifeDir = Path.Combine(Paths.GetPkgPath(), Path.GetFileNameWithoutExtension(Packages.rifeCuda.fileName));
|
||||
string script = "rife.py";
|
||||
|
||||
@@ -165,6 +168,8 @@ namespace Flowframes
|
||||
|
||||
if (times > 1)
|
||||
AutoEncode.paused = true; // Disable autoenc until the last iteration
|
||||
else
|
||||
AutoEncode.paused = false;
|
||||
|
||||
for (int iteration = 1; iteration <= times; iteration++)
|
||||
{
|
||||
@@ -222,6 +227,9 @@ namespace Flowframes
|
||||
|
||||
public static async Task RunDainNcnn(string framesPath, string outPath, float factor, string mdl, int tilesize)
|
||||
{
|
||||
if (Interpolate.currentlyUsingAutoEnc) // Ensure AutoEnc is not paused
|
||||
AutoEncode.paused = false;
|
||||
|
||||
await RunDainNcnnProcess(framesPath, outPath, factor, mdl, tilesize);
|
||||
|
||||
if (!Interpolate.canceled && Interpolate.current.alpha)
|
||||
|
||||
Reference in New Issue
Block a user