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
|
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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue