mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-15 16:07:45 +01:00
Disable pytorch implems by default, enable explicitly with -py/--enable_python flag
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Flowframes
|
||||
public class Cli
|
||||
{
|
||||
public static bool ShowConsole = false;
|
||||
public static bool DisablePython = false;
|
||||
public static bool DisablePython = true;
|
||||
public static bool ShowMdlDownloader = false;
|
||||
public static bool DontSaveConfig = false;
|
||||
public static bool AutoRun = false;
|
||||
@@ -50,6 +50,10 @@ namespace Flowframes
|
||||
"np|no_python", "Disable Python implementations",
|
||||
v => DisablePython = v != null
|
||||
},
|
||||
{
|
||||
"py|enable_python", "Enable Python implementations",
|
||||
v => DisablePython = !(v != null)
|
||||
},
|
||||
{
|
||||
"md|open_model_downloader", "Open model downloader GUI on startup",
|
||||
v => ShowMdlDownloader = v != null
|
||||
|
||||
@@ -144,8 +144,6 @@ namespace Flowframes.Os
|
||||
py.Start();
|
||||
py.WaitForExit();
|
||||
string output = py.StandardOutput.ReadToEnd();
|
||||
string err = py.StandardError.ReadToEnd();
|
||||
if (!string.IsNullOrWhiteSpace(err)) output += "\n" + err;
|
||||
Logger.Log("[DepCheck] Pytorch Check Output: " + output.Trim(), true);
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user