mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using Flowframes.IO;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Flowframes.Data
|
|
{
|
|
class Networks
|
|
{
|
|
public static AI rifeCuda = new AI("RIFE_CUDA", "RIFE", "CUDA/Pytorch Implementation of RIFE", Packages.rifeCuda, true);
|
|
public static AI rifeNcnn = new AI("RIFE_NCNN", "RIFE (NCNN)", "Vulkan/NCNN Implementation of RIFE", Packages.rifeNcnn, false);
|
|
public static AI dainNcnn = new AI("DAIN_NCNN", "DAIN (NCNN)", "Vulkan/NCNN Implementation of DAIN", Packages.dainNcnn, true);
|
|
|
|
public static List<AI> networks = new List<AI>();
|
|
|
|
public static void Init ()
|
|
{
|
|
networks.Clear();
|
|
networks.Add(rifeCuda);
|
|
networks.Add(rifeNcnn);
|
|
networks.Add(dainNcnn);
|
|
}
|
|
|
|
public static AI GetAi (string aiName)
|
|
{
|
|
foreach(AI ai in networks)
|
|
{
|
|
if (ai.aiName == aiName)
|
|
return ai;
|
|
}
|
|
|
|
return networks[0];
|
|
}
|
|
}
|
|
} |