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
8195e925
Commit
8195e925
authored
Mar 03, 2023
by
xin.wang.waytous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracker-cache-clean
parent
9a613def
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
CMakeLists.txt
CMakeLists.txt
+3
-0
main.cpp
main.cpp
+5
-2
byte_tracker.cpp
src/libs/trackers/byte_tracker.cpp
+3
-0
No files found.
CMakeLists.txt
View file @
8195e925
...
@@ -16,6 +16,9 @@ include_directories(${OpenCV_INCLUDE_DIRS})
...
@@ -16,6 +16,9 @@ include_directories(${OpenCV_INCLUDE_DIRS})
link_directories
(
/usr/local/cuda/lib64
)
link_directories
(
/usr/local/cuda/lib64
)
include_directories
(
/usr/local/cuda/include
)
include_directories
(
/usr/local/cuda/include
)
link_directories
(
/usr/lib/x86_64-linux-gnu/
)
include_directories
(
/usr/include/x86_64-linux-gnu/
)
# eigen3
# eigen3
find_package
(
Eigen3 REQUIRED
)
find_package
(
Eigen3 REQUIRED
)
link_directories
(
${
EIGEN3_LIBRARIES_DIRS
}
)
link_directories
(
${
EIGEN3_LIBRARIES_DIRS
}
)
...
...
main.cpp
View file @
8195e925
...
@@ -36,7 +36,10 @@ int main(int argc, char** argv){
...
@@ -36,7 +36,10 @@ int main(int argc, char** argv){
std
::
string
configPath
=
argv
[
3
];
std
::
string
configPath
=
argv
[
3
];
std
::
string
srcPath
=
argv
[
4
];
std
::
string
srcPath
=
argv
[
4
];
std
::
string
savePath
=
argv
[
5
];
std
::
string
savePath
=
argv
[
5
];
int
infer_count
=
1000
;
int
infer_count
=
100
;
if
(
argc
>=
7
){
infer_count
=
std
::
stoi
(
argv
[
6
]);
}
auto
t
=
interfaces
::
BaseTaskRegisterer
::
GetInstanceByName
(
taskName
);
auto
t
=
interfaces
::
BaseTaskRegisterer
::
GetInstanceByName
(
taskName
);
if
(
!
t
->
Init
(
configPath
)){
if
(
!
t
->
Init
(
configPath
)){
printf
(
"Init problems!
\n
"
);
printf
(
"Init problems!
\n
"
);
...
@@ -66,7 +69,7 @@ int main(int argc, char** argv){
...
@@ -66,7 +69,7 @@ int main(int argc, char** argv){
t
->
Exec
(
inputs
,
outputs
);
t
->
Exec
(
inputs
,
outputs
);
}
}
auto
e2
=
std
::
chrono
::
system_clock
::
now
();
auto
e2
=
std
::
chrono
::
system_clock
::
now
();
std
::
cout
<<
"
100 times
avg infer time: "
<<
std
::
cout
<<
"avg infer time: "
<<
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
e2
-
e1
).
count
()
/
1000.
/
infer_count
<<
" ms"
<<
std
::
endl
;
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
e2
-
e1
).
count
()
/
1000.
/
infer_count
<<
" ms"
<<
std
::
endl
;
if
(
inputs
.
size
()
!=
outputs
.
size
()){
if
(
inputs
.
size
()
!=
outputs
.
size
()){
cv
::
Mat
vis
=
images
[
0
];
cv
::
Mat
vis
=
images
[
0
];
...
...
src/libs/trackers/byte_tracker.cpp
View file @
8195e925
...
@@ -34,6 +34,9 @@ bool ByteTracker::Exec()
...
@@ -34,6 +34,9 @@ bool ByteTracker::Exec()
return
false
;
return
false
;
}
}
auto
objects
=
input
->
detections
;
auto
objects
=
input
->
detections
;
if
(
frame_id
%
max_time_lost
==
0
){
this
->
removed_tracks
.
clear
();
}
////////////////// Step 1: Get detections //////////////////
////////////////// Step 1: Get detections //////////////////
this
->
frame_id
++
;
this
->
frame_id
++
;
...
...
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