feat: Implement AI workload settings and enhance AI processing summaries
This commit is contained in:
parent
4230300518
commit
88c193549f
8 changed files with 326 additions and 28 deletions
|
|
@ -117,6 +117,11 @@ internal static class CommandLineOperationRunner
|
|||
{
|
||||
model.IncludeNumberAiThumbnails = options.IncludeThumbnails.Value;
|
||||
}
|
||||
|
||||
if (options.NumberAiWorkloadLevel.HasValue)
|
||||
{
|
||||
model.NumberAiWorkloadLevel = options.NumberAiWorkloadLevel.Value;
|
||||
}
|
||||
}
|
||||
|
||||
private static string NormalizeOperation(string operation)
|
||||
|
|
@ -172,6 +177,10 @@ internal static class CommandLineOperationRunner
|
|||
case "--no-tn":
|
||||
options.IncludeThumbnails = false;
|
||||
break;
|
||||
case "--workload":
|
||||
case "--ai-workload":
|
||||
options.NumberAiWorkloadLevel = int.Parse(ReadValue(args, ref i, arg));
|
||||
break;
|
||||
case "--headless":
|
||||
case "--cli":
|
||||
break;
|
||||
|
|
@ -209,6 +218,10 @@ internal static class CommandLineOperationRunner
|
|||
case "--csv":
|
||||
options.CsvPath = value;
|
||||
break;
|
||||
case "--workload":
|
||||
case "--ai-workload":
|
||||
options.NumberAiWorkloadLevel = int.Parse(value);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException($"Unknown argument: {arg}");
|
||||
}
|
||||
|
|
@ -226,7 +239,7 @@ internal static class CommandLineOperationRunner
|
|||
|
||||
private static void WriteUsage()
|
||||
{
|
||||
Console.WriteLine("Usage: ImageCatalog --config <settings.xml> --operation <image-processing|number-ai|face-ai|race-upload> [--models <folder>] [--csv <path>] [--cpu|--gpu] [--include-thumbnails|--no-thumbnails]");
|
||||
Console.WriteLine("Usage: ImageCatalog --config <settings.xml> --operation <image-processing|number-ai|face-ai|race-upload> [--models <folder>] [--csv <path>] [--cpu|--gpu] [--include-thumbnails|--no-thumbnails] [--workload <1-5>]");
|
||||
}
|
||||
|
||||
private sealed class CommandLineOptions
|
||||
|
|
@ -238,5 +251,6 @@ internal static class CommandLineOperationRunner
|
|||
public string CsvPath { get; set; } = string.Empty;
|
||||
public bool? UseGpu { get; set; }
|
||||
public bool? IncludeThumbnails { get; set; }
|
||||
public int? NumberAiWorkloadLevel { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue