Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenPCDet
Commits
b32fbddb
Commit
b32fbddb
authored
Jul 01, 2020
by
Shaoshuai Shi
Browse files
bugfixed: inference and generate results on KITTI test set
parent
12b8c131
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
pcdet/datasets/dataset.py
pcdet/datasets/dataset.py
+1
-1
pcdet/datasets/kitti/kitti_dataset.py
pcdet/datasets/kitti/kitti_dataset.py
+3
-4
tools/eval_utils/eval_utils.py
tools/eval_utils/eval_utils.py
+3
-3
No files found.
pcdet/datasets/dataset.py
View file @
b32fbddb
...
@@ -101,7 +101,7 @@ class DatasetTemplate(torch_data.Dataset):
...
@@ -101,7 +101,7 @@ class DatasetTemplate(torch_data.Dataset):
data_dict
=
self
.
data_processor
.
forward
(
data_dict
=
self
.
data_processor
.
forward
(
data_dict
=
data_dict
data_dict
=
data_dict
)
)
data_dict
.
pop
(
'gt_names'
)
data_dict
.
pop
(
'gt_names'
,
None
)
return
data_dict
return
data_dict
...
...
pcdet/datasets/kitti/kitti_dataset.py
View file @
b32fbddb
...
@@ -318,11 +318,10 @@ class KittiDataset(DatasetTemplate):
...
@@ -318,11 +318,10 @@ class KittiDataset(DatasetTemplate):
return
annos
return
annos
def
evaluation
(
self
,
det_annos
,
class_names
,
**
kwargs
):
def
evaluation
(
self
,
det_annos
,
class_names
,
**
kwargs
):
assert
'annos'
in
self
.
kitti_infos
[
0
].
keys
()
if
'annos'
not
in
self
.
kitti_infos
[
0
].
keys
()
:
from
.kitti_object_eval_python
import
eval
as
kitti_eval
return
None
,
{}
if
'annos'
not
in
self
.
kitti_infos
[
0
]:
from
.kitti_object_eval_python
import
eval
as
kitti_eval
return
'None'
,
{}
eval_det_annos
=
copy
.
deepcopy
(
det_annos
)
eval_det_annos
=
copy
.
deepcopy
(
det_annos
)
eval_gt_annos
=
[
copy
.
deepcopy
(
info
[
'annos'
])
for
info
in
self
.
kitti_infos
]
eval_gt_annos
=
[
copy
.
deepcopy
(
info
[
'annos'
])
for
info
in
self
.
kitti_infos
]
...
...
tools/eval_utils/eval_utils.py
View file @
b32fbddb
...
@@ -8,9 +8,9 @@ from pcdet.utils import common_utils
...
@@ -8,9 +8,9 @@ from pcdet.utils import common_utils
def
statistics_info
(
cfg
,
ret_dict
,
metric
,
disp_dict
):
def
statistics_info
(
cfg
,
ret_dict
,
metric
,
disp_dict
):
for
cur_thresh
in
cfg
.
MODEL
.
POST_PROCESSING
.
RECALL_THRESH_LIST
:
for
cur_thresh
in
cfg
.
MODEL
.
POST_PROCESSING
.
RECALL_THRESH_LIST
:
metric
[
'recall_roi_%s'
%
str
(
cur_thresh
)]
+=
ret_dict
[
'roi_%s'
%
str
(
cur_thresh
)
]
metric
[
'recall_roi_%s'
%
str
(
cur_thresh
)]
+=
ret_dict
.
get
(
'roi_%s'
%
str
(
cur_thresh
)
,
0
)
metric
[
'recall_rcnn_%s'
%
str
(
cur_thresh
)]
+=
ret_dict
[
'rcnn_%s'
%
str
(
cur_thresh
)
]
metric
[
'recall_rcnn_%s'
%
str
(
cur_thresh
)]
+=
ret_dict
.
get
(
'rcnn_%s'
%
str
(
cur_thresh
)
,
0
)
metric
[
'gt_num'
]
+=
ret_dict
[
'gt'
]
metric
[
'gt_num'
]
+=
ret_dict
.
get
(
'gt'
,
0
)
min_thresh
=
cfg
.
MODEL
.
POST_PROCESSING
.
RECALL_THRESH_LIST
[
0
]
min_thresh
=
cfg
.
MODEL
.
POST_PROCESSING
.
RECALL_THRESH_LIST
[
0
]
disp_dict
[
'recall_%s'
%
str
(
min_thresh
)]
=
\
disp_dict
[
'recall_%s'
%
str
(
min_thresh
)]
=
\
'(%d, %d) / %d'
%
(
metric
[
'recall_roi_%s'
%
str
(
min_thresh
)],
metric
[
'recall_rcnn_%s'
%
str
(
min_thresh
)],
metric
[
'gt_num'
])
'(%d, %d) / %d'
%
(
metric
[
'recall_roi_%s'
%
str
(
min_thresh
)],
metric
[
'recall_rcnn_%s'
%
str
(
min_thresh
)],
metric
[
'gt_num'
])
...
...
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