|
|
|
@ -105,6 +105,7 @@ bool YOLO_V8::InitParam(DL_INIT_PARAM& iParams)
|
|
|
|
|
modelType = iParams.modelType;
|
|
|
|
|
cudaEnable = iParams.cudaEnable;
|
|
|
|
|
intraOpNumThreads = iParams.intraOpNumThreads;
|
|
|
|
|
interOpNumThreads = iParams.interOpNumThreads;
|
|
|
|
|
logSeverityLevel = iParams.logSeverityLevel;
|
|
|
|
|
classes = { "jd" };
|
|
|
|
|
return true;
|
|
|
|
@ -130,6 +131,7 @@ bool YOLO_V8::CreateSession(std::string model_path, std::string model_name) {
|
|
|
|
|
|
|
|
|
|
sessionOption.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_ALL);
|
|
|
|
|
sessionOption.SetIntraOpNumThreads(intraOpNumThreads);
|
|
|
|
|
sessionOption.SetInterOpNumThreads(interOpNumThreads);
|
|
|
|
|
sessionOption.SetLogSeverityLevel(logSeverityLevel);
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|