Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
b7093eca
Commit
b7093eca
authored
Jan 30, 2023
by
wangqibing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_gpu,Hungarian_Cuda
parent
533684b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
BaseTracker.h
BaseTracker/BaseTracker.h
+17
-3
No files found.
BaseTracker/BaseTracker.h
View file @
b7093eca
...
...
@@ -314,7 +314,7 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
}
else
{
auto
t09
=
std
::
chrono
::
steady_clock
::
now
();
auto
t09
=
std
::
chrono
::
steady_clock
::
now
();
std
::
vector
<
std
::
vector
<
float
>
>
tracker_states
;
std
::
vector
<
int
>
tracker_type
;
for
(
auto
&
iter
:
tracks
)
...
...
@@ -417,7 +417,14 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
*/
//Hungarian_Cuda(cuda_iou_matrix, detections.size(), tracks.size(), cuda_association);
Hungarian_Cuda
(
iou_matrix
,
detections
.
size
(),
tracks
.
size
(),
association
);
if
(
m_isGPU
==
0
)
{
HungarianMatching
(
iou_matrix
,
detections
.
size
(),
tracks
.
size
(),
association
);
}
else
{
Hungarian_Cuda
(
iou_matrix
,
detections
.
size
(),
tracks
.
size
(),
association
);
}
/*
std::ofstream cuda_ofs("/workspace/cuda_asso.txt", std::ios_base::out);
for(int ii =0; ii < detections.size(); ii++){
...
...
@@ -434,7 +441,14 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
auto
t13
=
std
::
chrono
::
steady_clock
::
now
();
auto
tdura
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
nanoseconds
>
(
t13
-
t12
);
auto
tdurams
=
tdura
.
count
()
*
1e-6
;
SDK_LOG
(
SDK_INFO
,
"HungarianMatching using time is %f "
,
tdurams
);
if
(
m_isGPU
==
0
)
{
SDK_LOG
(
SDK_INFO
,
"HungarianCPUMatching using time is %f "
,
tdurams
);
}
else
{
SDK_LOG
(
SDK_INFO
,
"HungarianGPUMatching using time is %f "
,
tdurams
);
}
for
(
size_t
i
=
0
;
i
<
detections
.
size
();
i
++
)
{
...
...
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