feat: Update GPU worker allocation for improved performance in AI extraction
This commit is contained in:
parent
88c193549f
commit
48d6af13da
2 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue