leon преди 1 месец
родител
ревизия
dae1229e95
променени са 2 файла, в които са добавени 4 реда и са изтрити 6 реда
  1. 2 3
      src/infer/trt/depth/depth.cu
  2. 2 3
      src/infer/trt/depth/depth.hpp

+ 2 - 3
src/infer/trt/depth/depth.cu

@@ -142,10 +142,9 @@ Result DepthModelImpl::forward(const tensor::Image &image, void *stream)
 }
 
 
-Infer *loadraw(const std::string &engine_file, ModelType model_type, const std::vector<std::string>& names, float confidence_threshold,
-    float nms_threshold) 
+Infer *loadraw(const std::string &engine_file) 
 {
-    DepthModelImpl *impl = new YoloModelImpl();
+    DepthModelImpl *impl = new DepthModelImpl();
     if (!impl->load(engine_file)) 
     {
         delete impl;

+ 2 - 3
src/infer/trt/depth/depth.hpp

@@ -61,7 +61,7 @@ namespace depth
         }
     
         void preprocess(const tensor::Image &image, affine::LetterBoxMatrix &affine, void *stream = nullptr);
-        void postprocess(int width, int height, void *stream = nullptr)
+        void postprocess(int width, int height, void *stream = nullptr);
         
     
         bool load(const std::string &engine_file);
@@ -70,8 +70,7 @@ namespace depth
     
 };
 
-Infer *loadraw(const std::string &engine_file, ModelType model_type, const std::vector<std::string>& names, float confidence_threshold,
-    float nms_threshold);
+Infer *loadraw(const std::string &engine_file);
 
 std::shared_ptr<Infer> load_depth(const std::string &engine_file, int gpu_id);