mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
Refactor Implementations.cs to use enums, backwards compat to GetAi(string name)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user