From 48d6af13daee7f23515951fa909ef8a9028aa64d Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Sat, 9 May 2026 19:15:00 +0200 Subject: [PATCH] feat: Update GPU worker allocation for improved performance in AI extraction --- imagecatalog/DataModel.cs | 10 +++++----- imagecatalog/Services/AiExtractionService.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/imagecatalog/DataModel.cs b/imagecatalog/DataModel.cs index dc12d88..217158f 100644 --- a/imagecatalog/DataModel.cs +++ b/imagecatalog/DataModel.cs @@ -2228,11 +2228,11 @@ namespace ImageCatalog_2 var requestedWorkers = useGpu ? normalized switch { - 1 => 1, - 2 => 2, - 3 => 4, - 4 => 6, - _ => 8 + 1 => 2, + 2 => 4, + 3 => 8, + 4 => 12, + _ => 16 } : normalized switch { diff --git a/imagecatalog/Services/AiExtractionService.cs b/imagecatalog/Services/AiExtractionService.cs index d9a63ae..f65bd0a 100644 --- a/imagecatalog/Services/AiExtractionService.cs +++ b/imagecatalog/Services/AiExtractionService.cs @@ -217,11 +217,11 @@ public class AiExtractionService : IAiExtractionService var requestedWorkers = useGpu ? normalized switch { - 1 => 1, - 2 => 2, - 3 => 4, - 4 => 6, - _ => 8 + 1 => 2, + 2 => 4, + 3 => 8, + 4 => 12, + _ => 16 } : normalized switch {