Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
deepinfer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangxue
deepinfer
Commits
05bdf66c
Commit
05bdf66c
authored
Mar 24, 2023
by
xin.wang.waytous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracker-out-lost-dets
parent
b8a7f804
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
CMakeLists.txt
CMakeLists.txt
+2
-2
byte_tracker.cpp
src/libs/trackers/byte_tracker.cpp
+3
-3
No files found.
CMakeLists.txt
View file @
05bdf66c
...
@@ -35,8 +35,8 @@ link_directories(/root/TensorRT/TensorRT-7.0.0.11-cuda-10.0/lib)
...
@@ -35,8 +35,8 @@ link_directories(/root/TensorRT/TensorRT-7.0.0.11-cuda-10.0/lib)
# include_directories(/usr/include/aarch64-linux-gnu)
# include_directories(/usr/include/aarch64-linux-gnu)
# yaml
# yaml
#
include_directories(/usr/local/include/yaml-cpp)
include_directories
(
/usr/local/include/yaml-cpp
)
include_directories
(
/usr/include/yaml-cpp
)
#
include_directories(/usr/include/yaml-cpp)
# glog gflags
# glog gflags
# sudo apt-get install libgoogle-glog*
# sudo apt-get install libgoogle-glog*
...
...
src/libs/trackers/byte_tracker.cpp
View file @
05bdf66c
...
@@ -253,8 +253,8 @@ bool ByteTracker::Exec()
...
@@ -253,8 +253,8 @@ bool ByteTracker::Exec()
tracked_bboxes
->
detections
.
push_back
(
t
);
tracked_bboxes
->
detections
.
push_back
(
t
);
}
}
}
}
//
no detections in,
get lost tracks out
// get lost tracks out
if
(
tracked_bboxes
->
detections
.
size
()
==
0
){
//
if(tracked_bboxes->detections.size() == 0){
for
(
auto
&
ltrack
:
this
->
lost_tracks
){
for
(
auto
&
ltrack
:
this
->
lost_tracks
){
if
(
this
->
frame_id
-
ltrack
.
end_frame
()
<=
this
->
out_lost_threshold
){
if
(
this
->
frame_id
-
ltrack
.
end_frame
()
<=
this
->
out_lost_threshold
){
auto
t
=
ltrack
.
obj_
->
copy
();
auto
t
=
ltrack
.
obj_
->
copy
();
...
@@ -262,7 +262,7 @@ bool ByteTracker::Exec()
...
@@ -262,7 +262,7 @@ bool ByteTracker::Exec()
tracked_bboxes
->
detections
.
push_back
(
t
);
tracked_bboxes
->
detections
.
push_back
(
t
);
}
}
}
}
}
//
}
interfaces
::
SetIOPtr
(
outputNames
[
0
],
tracked_bboxes
);
interfaces
::
SetIOPtr
(
outputNames
[
0
],
tracked_bboxes
);
LOG_INFO
<<
"Get "
<<
tracked_bboxes
->
detections
.
size
()
<<
" tracked objs. Removed track length: "
<<
this
->
removed_tracks
.
size
();
LOG_INFO
<<
"Get "
<<
tracked_bboxes
->
detections
.
size
()
<<
" tracked objs. Removed track length: "
<<
this
->
removed_tracks
.
size
();
return
true
;
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment