Disable pytorch implems by default, enable explicitly with -py/--enable_python flag

This commit is contained in:
N00MKRAD
2024-09-06 16:11:49 +02:00
parent 3e7fdc31b9
commit 61a65d592f
2 changed files with 5 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ namespace Flowframes
public class Cli public class Cli
{ {
public static bool ShowConsole = false; public static bool ShowConsole = false;
public static bool DisablePython = false; public static bool DisablePython = true;
public static bool ShowMdlDownloader = false; public static bool ShowMdlDownloader = false;
public static bool DontSaveConfig = false; public static bool DontSaveConfig = false;
public static bool AutoRun = false; public static bool AutoRun = false;
@@ -50,6 +50,10 @@ namespace Flowframes
"np|no_python", "Disable Python implementations", "np|no_python", "Disable Python implementations",
v => DisablePython = v != null v => DisablePython = v != null
}, },
{
"py|enable_python", "Enable Python implementations",
v => DisablePython = !(v != null)
},
{ {
"md|open_model_downloader", "Open model downloader GUI on startup", "md|open_model_downloader", "Open model downloader GUI on startup",
v => ShowMdlDownloader = v != null v => ShowMdlDownloader = v != null

View File

@@ -144,8 +144,6 @@ namespace Flowframes.Os
py.Start(); py.Start();
py.WaitForExit(); py.WaitForExit();
string output = py.StandardOutput.ReadToEnd(); 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); Logger.Log("[DepCheck] Pytorch Check Output: " + output.Trim(), true);
return output; return output;
} }