Refactor Implementations.cs to use enums, backwards compat to GetAi(string name)

This commit is contained in:
N00MKRAD
2024-08-21 14:45:46 +02:00
parent 0b500563ca
commit 713c64e6ec
18 changed files with 120 additions and 92 deletions

View File

@@ -132,7 +132,7 @@ namespace Flowframes.IO
return modelFiles;
}
public static async Task DownloadModelFiles (AI ai, string modelDir, bool log = true)
public static async Task DownloadModelFiles (AiInfo ai, string modelDir, bool log = true)
{
string aiDir = ai.PkgDir;
@@ -198,7 +198,7 @@ namespace Flowframes.IO
{
List<string> modelPaths = new List<string>();
foreach (AI ai in Implementations.NetworksAll)
foreach (AiInfo ai in Implementations.NetworksAll)
{
string aiPkgFolder = Path.Combine(Paths.GetPkgPath(), ai.PkgDir);
ModelCollection aiModels = AiModels.GetModels(ai);