Files
flowframes/Code/Data/AI.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2021-08-23 16:50:18 +02:00
using Flowframes.IO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Flowframes.Data
{
public struct AI
{
public enum Backend { Pytorch, Ncnn, Tensorflow, Other }
public Backend backend;
2021-08-23 16:50:18 +02:00
public string aiName;
public string aiNameShort;
public string friendlyName;
public string description;
public string pkgDir;
public int[] supportedFactors;
public bool multiPass; // Are multiple passes needed to get to the desired interp factor?
public AI(Backend backend, string aiName, string friendlyName, string desc, string pkgDir, int[] factors, bool multiPass = false)
2021-08-23 16:50:18 +02:00
{
this.backend = backend;
this.aiName = aiName;
this.aiNameShort = aiName.Split(' ')[0].Split('_')[0];
this.friendlyName = friendlyName;
this.description = desc;
this.pkgDir = pkgDir;
this.supportedFactors = factors;
this.multiPass = multiPass;
2021-08-23 16:50:18 +02:00
}
}
}