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
b345b08c
Unverified
Commit
b345b08c
authored
Sep 26, 2022
by
Jungwan Woo
Committed by
GitHub
Sep 26, 2022
Browse files
fix pillarnet post_processing (#1125)
parent
963f4f30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
pcdet/models/detectors/pillarnet.py
pcdet/models/detectors/pillarnet.py
+16
-0
No files found.
pcdet/models/detectors/pillarnet.py
View file @
b345b08c
...
@@ -32,3 +32,19 @@ class PillarNet(Detector3DTemplate):
...
@@ -32,3 +32,19 @@ class PillarNet(Detector3DTemplate):
loss
=
loss_rpn
loss
=
loss_rpn
return
loss
,
tb_dict
,
disp_dict
return
loss
,
tb_dict
,
disp_dict
def
post_processing
(
self
,
batch_dict
):
post_process_cfg
=
self
.
model_cfg
.
POST_PROCESSING
batch_size
=
batch_dict
[
'batch_size'
]
final_pred_dict
=
batch_dict
[
'final_box_dicts'
]
recall_dict
=
{}
for
index
in
range
(
batch_size
):
pred_boxes
=
final_pred_dict
[
index
][
'pred_boxes'
]
recall_dict
=
self
.
generate_recall_record
(
box_preds
=
pred_boxes
,
recall_dict
=
recall_dict
,
batch_index
=
index
,
data_dict
=
batch_dict
,
thresh_list
=
post_process_cfg
.
RECALL_THRESH_LIST
)
return
final_pred_dict
,
recall_dict
\ No newline at end of file
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