--no_python CLI arg to disable python check and implems

This commit is contained in:
N00MKRAD
2024-08-11 20:32:36 +02:00
parent 3138e7ffcf
commit 8df4e31b72
5 changed files with 27 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ namespace Flowframes.Data
{
class Implementations
{
public static bool DisablePython = false;
public static AI rifeCuda = new AI()
{
Backend = AI.AiBackend.Pytorch,
@@ -70,7 +72,6 @@ namespace Flowframes.Data
SupportedFactors = new int[] { 2 },
};
public static List<AI> NetworksAll
{
get
@@ -83,7 +84,7 @@ namespace Flowframes.Data
{
get
{
bool pytorchAvailable = Python.IsPytorchReady();
bool pytorchAvailable = !DisablePython && Python.IsPytorchReady();
if (pytorchAvailable)
return NetworksAll;