leon před 1 měsícem
rodič
revize
4faba06d42
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;