更新GPU
This commit is contained in:
parent
f12c2f0cd9
commit
6a9e7e4343
@ -409,7 +409,7 @@ namespace DH.Devices.Vision
|
|||||||
}
|
}
|
||||||
MLInit mLInit;
|
MLInit mLInit;
|
||||||
string inferenceDevice = "CPU";
|
string inferenceDevice = "CPU";
|
||||||
if (dc.IsEnableGPU)
|
if (dc.ModelType== ModelType.目标检测GPU)
|
||||||
{
|
{
|
||||||
inferenceDevice = "GPU";
|
inferenceDevice = "GPU";
|
||||||
mLInit = new MLInit(dc.ModelPath, isGPU, coreInx, dc.ModelconfThreshold);
|
mLInit = new MLInit(dc.ModelPath, isGPU, coreInx, dc.ModelconfThreshold);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user