Move DisablePython around, benchmark NvApi init

This commit is contained in:
N00MKRAD
2024-08-15 11:34:36 +02:00
parent 49a3c87bdf
commit d0a7c0aee4
5 changed files with 15 additions and 11 deletions

View File

@@ -6,8 +6,6 @@ namespace Flowframes.Data
{
class Implementations
{
public static bool DisablePython = false;
public static AI rifeCuda = new AI()
{
Backend = AI.AiBackend.Pytorch,
@@ -84,7 +82,7 @@ namespace Flowframes.Data
{
get
{
bool pytorchAvailable = !DisablePython && Python.IsPytorchReady();
bool pytorchAvailable = !Python.DisablePython && Python.IsPytorchReady();
if (pytorchAvailable)
return NetworksAll;