Skip to content

Commit 82d9cb9

Browse files
author
lsf
committed
lsf pc update
1 parent 854b31d commit 82d9cb9

26 files changed

+2038
-1814
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Introduction
88

9-
基于 TensorRT 的 C++ 高性能推理库,未来计划支持 Openvino 和 rknn 框架的 C++ 推理
9+
基于 TensorRT 的 C++ 高性能推理库。
1010

1111

1212

apps/app_track.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "yolo/yolo.hpp"
55
#include <opencv2/opencv.hpp>
66
#include "bytetrack/BYTETracker.h"
7-
#include "deepsort/deepsort.hpp"
87
#include <cstdio>
98

109
using namespace std;
@@ -31,20 +30,6 @@ static vector<Object> det2tracks(const Yolo::BoxArray& array, const Cond& cond){
3130
}
3231

3332

34-
template<typename Cond>
35-
static DeepSORT::BBoxes det2boxes(const Yolo::BoxArray& array, const Cond& cond){
36-
37-
DeepSORT::BBoxes outputs;
38-
for(int i = 0; i < array.size(); ++i){
39-
auto& abox = array[i];
40-
41-
if(!cond(abox)) continue;
42-
outputs.emplace_back(abox.left, abox.top, abox.right, abox.bottom);
43-
}
44-
return outputs;
45-
}
46-
47-
4833
void inference_bytetrack(const string& engine_file, int gpuid, Yolo::Type type, const string& video_file){
4934

5035
auto engine = Yolo::create_infer(
@@ -53,7 +38,7 @@ void inference_bytetrack(const string& engine_file, int gpuid, Yolo::Type type,
5338
gpuid, // gpu id
5439
0.25f, // confidence threshold
5540
0.45f, // nms threshold
56-
Yolo::NMSMethod::FastGPU, // NMS method, fast GPU / CPU
41+
Yolo::NMSMethod::CUDA, // NMS method, fast GPU / CPU
5742
1024, // max objects
5843
false // preprocess use multi stream
5944
);

0 commit comments

Comments
 (0)