feat: Update GPU worker allocation for improved performance in AI extraction

This commit is contained in:
MaddoScientisto 2026-05-09 19:15:00 +02:00
commit 48d6af13da
2 changed files with 10 additions and 10 deletions

View file

@ -2228,11 +2228,11 @@ namespace ImageCatalog_2
var requestedWorkers = useGpu var requestedWorkers = useGpu
? normalized switch ? normalized switch
{ {
1 => 1, 1 => 2,
2 => 2, 2 => 4,
3 => 4, 3 => 8,
4 => 6, 4 => 12,
_ => 8 _ => 16
} }
: normalized switch : normalized switch
{ {

View file

@ -217,11 +217,11 @@ public class AiExtractionService : IAiExtractionService
var requestedWorkers = useGpu var requestedWorkers = useGpu
? normalized switch ? normalized switch
{ {
1 => 1, 1 => 2,
2 => 2, 2 => 4,
3 => 4, 3 => 8,
4 => 6, 4 => 12,
_ => 8 _ => 16
} }
: normalized switch : normalized switch
{ {