提交
This commit is contained in:
@ -32,6 +32,10 @@ namespace DH.Devices.Vision
|
||||
bool res = false;
|
||||
try
|
||||
{
|
||||
if (!Path.GetExtension(mLInit.ModelFile).Equals(".trt", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
throw new Exception("选择的模型不是trt格式");
|
||||
}
|
||||
Model = MLGPUEngine.InitModel(mLInit.ModelFile, 1, mLInit.Score_thre, mLInit.GPUId, 3, 8);
|
||||
|
||||
//Model = MLEngine.InitModel(mLInit.ModelFile, 1, 0.45f, 0, 3);
|
||||
|
Reference in New Issue
Block a user