leon 1 月之前
父节点
当前提交
4faba06d42
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/infer/trt/yolo.cu

+ 1 - 1
src/infer/trt/yolo.cu

@@ -546,7 +546,7 @@ Infer *loadraw(const std::string &engine_file, ModelType model_type, float confi
                float nms_threshold) 
 {
     YoloModelImpl *impl = new YoloModelImpl();
-    if (!impl->load(engine_file, yolo_type, confidence_threshold, nms_threshold)) 
+    if (!impl->load(engine_file, model_type, confidence_threshold, nms_threshold)) 
     {
         delete impl;
         impl = nullptr;