NCNN VS UI polish

This commit is contained in:
n00mkrad
2023-01-31 11:51:46 +01:00
parent 9bfb909c09
commit db2f931fa5
2 changed files with 3 additions and 7 deletions

View File

@@ -101,7 +101,9 @@ namespace Flowframes
if (canceled) return;
Program.mainForm.SetStatus("Running real-time interpolation...");
await AiProcess.RunRifeNcnnVs(currentSettings.framesFolder, "", currentSettings.interpFactor, currentSettings.model.Dir, true);
Program.mainForm.SetStatus("Ready");
Program.mainForm.SetWorking(false);
}
@@ -208,7 +210,6 @@ namespace Flowframes
if (canceled) return;
currentlyUsingAutoEnc = Utils.CanUseAutoEnc(stepByStep, currentSettings);
IoUtils.CreateDir(outpath);
List<Task> tasks = new List<Task>();

View File

@@ -366,13 +366,8 @@ namespace Flowframes.Os
{
IoUtils.CreateDir(outPath);
Process rifeNcnnVs = OsUtils.NewProcess(!OsUtils.ShowHiddenCmd());
Logger.Log($"Note: RIFE-NCNN-VS is experimental and may not work as expected with certain Flowframes features, such as image sequence exporting.");
string avDir = Path.Combine(Paths.GetPkgPath(), Paths.audioVideoDir);
string pipedTargetArgs = $"{Path.Combine(avDir, "ffmpeg").Wrap()} -y {await Export.GetPipedFfmpegCmd(rt)}";
string pkgDir = Path.Combine(Paths.GetPkgPath(), Implementations.rifeNcnnVs.PkgDir);
int gpuId = Config.Get(Config.Key.ncnnGpus).Split(',')[0].GetInt();
@@ -395,7 +390,7 @@ namespace Flowframes.Os
if (rt)
{
Logger.Log($"Starting. Use Space to pause, Left Arrow and Right Arrow to seek, albeit seeking takes some time.");
Logger.Log($"Starting. Use Space to pause, Left Arrow and Right Arrow to seek, though seeking can be slow.");
AiStartedRt(rifeNcnnVs, inPath);
}
else