更新GPU

This commit is contained in:
Admin 2025-04-27 10:40:12 +08:00
parent f12c2f0cd9
commit 6a9e7e4343

View File

@ -409,7 +409,7 @@ namespace DH.Devices.Vision
}
MLInit mLInit;
string inferenceDevice = "CPU";
if (dc.IsEnableGPU)
if (dc.ModelType== ModelType.GPU)
{
inferenceDevice = "GPU";
mLInit = new MLInit(dc.ModelPath, isGPU, coreInx, dc.ModelconfThreshold);