Skip to content

Commit

Permalink
fix pillarnet post_processing (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
friendship1 committed Sep 26, 2022
1 parent 963f4f3 commit b345b08
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pcdet/models/detectors/pillarnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ def get_training_loss(self):

loss = loss_rpn
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

0 comments on commit b345b08

Please sign in to comment.