From 4e177d1323366edf95d0729a7c82bd445596bbf8 Mon Sep 17 00:00:00 2001
From: suntianyu <xuepengqiang@aiotlink.com>
Date: 星期三, 28 七月 2021 10:42:36 +0800
Subject: [PATCH] wath

---
 config.json                |    8 ++++----
 demo.cpp                   |    2 +-
 src/detecter_tools/model.h |    2 +-
 CMakeLists.txt             |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e513ed..302977c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,7 @@
 set(CUDA_Path /usr/local/cuda)
 # find_package(OpenCV REQUIRED PATHS "/opt/toolkits/opencv")
 set(OPENCV_DIR /opt/toolkits/opencv)
-set(TensorRT_DIR /opt/toolkits/TensorRT7)
+set(TensorRT_DIR /opt/toolkits/TensorRT-7.2.3.4)
 set(LOG_DIR /opt/toolkits/log4cplus)
 
 include_directories(${OPENCV_DIR}/include/opencv4)
diff --git a/config.json b/config.json
index ad37796..8a007ee 100644
--- a/config.json
+++ b/config.json
@@ -1,9 +1,9 @@
 {
   "so_file_path": "/opt/vasystem/libs/Detect/libdemo.so",
-  "runtime": "/opt/vasystem/libs/Detect:/usr/local/cuda-11.1/lib64:",  // 椤圭洰鎵�鐢ㄥ埌鐨勭幆澧�
+  "runtime": "/opt/vasystem/libs/Detect:/usr/local/cuda-11.1/lib64:", 
   "param": {
-    // "model_path": "/opt/vasystem/bin/models/baseDetector/baseDetetor.bin" // para閲岃竟鑷繁绠楁硶鍙兘鐢ㄥ埌鐨勫弬鏁�
-    "model_path": "/opt/vasystem/bin/models/baseDetector/baseDetetor_small.bin", // para閲岃竟鑷繁绠楁硶鍙兘鐢ㄥ埌鐨勫弬鏁�
-    "type":2
+    "model_path": "/data/workspace/01_Scheaven/baseDetector/test.bin",
+    //"model_path": "/opt/vasystem/bin/models/baseDetector/baseDetector.bin",
+    "type":1
   }
 }
diff --git a/demo.cpp b/demo.cpp
index 0468bb2..79ac900 100644
--- a/demo.cpp
+++ b/demo.cpp
@@ -32,7 +32,7 @@
     TImage *img = new TImage();
     TImage *img2 = new TImage();
     int i = 0;
-    cap = VideoCapture("/data/disk2/01_Scheaven/data/cam_53.avi");
+    cap = VideoCapture("../1.mp4");
 
     while(1){        /* code */
         cap >> frame;
diff --git a/src/detecter_tools/model.h b/src/detecter_tools/model.h
index 5fd61ad..33e5c8c 100644
--- a/src/detecter_tools/model.h
+++ b/src/detecter_tools/model.h
@@ -93,7 +93,7 @@
         22, 23, 24, 25, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
         46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
         67, 70, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 84, 85, 86, 87, 88, 89, 90};
-    uint32_t m_BatchSize = 10;
+    uint32_t m_BatchSize = 1;
     nvinfer1::INetworkDefinition* m_Network;
     nvinfer1::IBuilder* m_Builder ;
     nvinfer1::IHostMemory* m_ModelStream;

--
Gitblit v1.8.0