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 (Nvidia Only!)", "rife-cuda", true); public static AI rifeNcnn = new AI("RIFE_NCNN", "RIFE (NCNN)", "Vulkan/NCNN Implementation of RIFE", "rife-ncnn", false); public static AI flavrCuda = new AI("FLAVR_CUDA", "FLAVR", "Experimental Pytorch Implementation of FLAVR (Nvidia Only!)", "flavr-cuda", true); public static AI dainNcnn = new AI("DAIN_NCNN", "DAIN (NCNN)", "Vulkan/NCNN Implementation of DAIN", "dain-ncnn", true); public static List networks = new List(); public static void Init () { networks.Clear(); networks.Add(rifeCuda); networks.Add(rifeNcnn); networks.Add(flavrCuda); networks.Add(dainNcnn); } public static AI GetAi (string aiName) { foreach(AI ai in networks) { if (ai.aiName == aiName) return ai; } return networks[0]; } } }