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
17c1c6df
Commit
17c1c6df
authored
Mar 07, 2023
by
xin.wang.waytous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byte_tracker-lost-out
parent
7d7002ef
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
0 deletions
+18
-0
rgb_yolov5.yaml
configs/tasks/bsw/rgb_yolov5.yaml
+1
-0
fusion_model.yaml
configs/tasks/fusion/fusion_model.yaml
+1
-0
trades.yaml
configs/tasks/mots/trades.yaml
+1
-0
yolov5.yaml
configs/tasks/thermal/yolov5.yaml
+1
-0
byte_tracker.cpp
src/libs/trackers/byte_tracker.cpp
+13
-0
byte_tracker.h
src/libs/trackers/byte_tracker.h
+1
-0
No files found.
configs/tasks/bsw/rgb_yolov5.yaml
View file @
17c1c6df
...
...
@@ -68,5 +68,6 @@ units:
high_thresh
:
0.2
match_thresh
:
0.8
init_frames
:
0
out_lost_threshold
:
3
configs/tasks/fusion/fusion_model.yaml
View file @
17c1c6df
...
...
@@ -147,6 +147,7 @@ units:
high_thresh
:
0.2
match_thresh
:
0.8
init_frames
:
0
out_lost_threshold
:
3
configs/tasks/mots/trades.yaml
View file @
17c1c6df
...
...
@@ -59,6 +59,7 @@ units:
high_thresh
:
0.2
match_thresh
:
0.8
init_frames
:
0
out_lost_threshold
:
3
...
...
configs/tasks/thermal/yolov5.yaml
View file @
17c1c6df
...
...
@@ -87,6 +87,7 @@ units:
high_thresh
:
0.2
match_thresh
:
0.8
init_frames
:
0
out_lost_threshold
:
3
...
...
src/libs/trackers/byte_tracker.cpp
View file @
17c1c6df
...
...
@@ -19,6 +19,9 @@ bool ByteTracker::Init(YAML::Node& node)
high_thresh
=
node
[
"high_thresh"
].
as
<
float
>
();
match_thresh
=
node
[
"match_thresh"
].
as
<
float
>
();
init_frames
=
node
[
"init_frames"
].
as
<
int
>
();
if
(
!
node
[
"out_lost_threshold"
].
IsNull
()){
out_lost_threshold
=
node
[
"out_lost_threshold"
].
as
<
int
>
();
}
frame_id
=
0
;
max_time_lost
=
int
(
frame_rate
/
30.0
*
track_buffer
);
...
...
@@ -250,6 +253,16 @@ bool ByteTracker::Exec()
tracked_bboxes
->
detections
.
push_back
(
t
);
}
}
// no detections in, get lost tracks out
if
(
tracked_bboxes
->
detections
.
size
()
==
0
){
for
(
auto
&
ltrack
:
this
->
lost_tracks
){
if
(
this
->
frame_id
-
ltrack
.
end_frame
()
<=
this
->
out_lost_threshold
){
auto
t
=
ltrack
.
obj_
->
copy
();
t
->
validCoordinate
();
tracked_bboxes
->
detections
.
push_back
(
t
);
}
}
}
interfaces
::
SetIOPtr
(
outputNames
[
0
],
tracked_bboxes
);
LOG_INFO
<<
"Get "
<<
tracked_bboxes
->
detections
.
size
()
<<
" tracked objs. Removed track length: "
<<
this
->
removed_tracks
.
size
();
return
true
;
...
...
src/libs/trackers/byte_tracker.h
View file @
17c1c6df
...
...
@@ -45,6 +45,7 @@ private:
int
frame_id
;
int
max_time_lost
;
int
init_frames
=
0
;
int
out_lost_threshold
=
3
;
std
::
vector
<
Track
>
tracked_tracks
;
std
::
vector
<
Track
>
lost_tracks
;
...
...
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