Skip to content

Commit

Permalink
[Fix]Fix pointrcnn in dev branch (#1874)
Browse files Browse the repository at this point in the history
* fix parta2 bug

* fix

* fix
  • Loading branch information
VVsssssk authored Sep 30, 2022
1 parent 422f23d commit cfd3a3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mmdet3d/models/dense_heads/point_rpn_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,13 @@ def get_bboxes(self,
for b in range(batch_size):
bbox3d = self.bbox_coder.decode(bbox_preds[b], points[b, ..., :3],
object_class[b])
mask = ~bbox3d.sum(dim=1).isinf()
bbox_selected, score_selected, labels, cls_preds_selected = \
self.class_agnostic_nms(obj_scores[b], sem_scores[b], bbox3d,
points[b, ..., :3], input_metas[b])
self.class_agnostic_nms(obj_scores[b][mask],
sem_scores[b][mask, :],
bbox3d[mask, :],
points[b, ..., :3][mask, :],
input_metas[b])
bbox = input_metas[b]['box_type_3d'](
bbox_selected.clone(),
box_dim=bbox_selected.shape[-1],
Expand Down

0 comments on commit cfd3a3a

Please # to comment.