Skip to content

Commit

Permalink
Fix centerpoint tta (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezhen17 authored Aug 30, 2021
1 parent 93de7c2 commit 0eb7e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
_base_ = './centerpoint_0075voxel_second_secfpn_dcn_4x8_cyclic_20e_nus.py'

model = dict(test_cfg=dict(pts=dict(use_rotate_nms=True, max_num=500)))

point_cloud_range = [-54, -54, -5.0, 54, 54, 3.0]
file_client_args = dict(backend='disk')
class_names = [
Expand Down
8 changes: 4 additions & 4 deletions mmdet3d/models/detectors/centerpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def aug_test_pts(self, feats, img_metas, rescale=False):
task_id][0][key][:, 1, ...]
elif key == 'rot':
outs[task_id][0][
key][:, 1,
...] = -outs[task_id][0][key][:, 1, ...]
key][:, 0,
...] = -outs[task_id][0][key][:, 0, ...]
elif key == 'vel':
outs[task_id][0][
key][:, 1,
Expand All @@ -136,8 +136,8 @@ def aug_test_pts(self, feats, img_metas, rescale=False):
task_id][0][key][:, 0, ...]
elif key == 'rot':
outs[task_id][0][
key][:, 0,
...] = -outs[task_id][0][key][:, 0, ...]
key][:, 1,
...] = -outs[task_id][0][key][:, 1, ...]
elif key == 'vel':
outs[task_id][0][
key][:, 0,
Expand Down

0 comments on commit 0eb7e71

Please sign in to comment.