Skip to content

Commit

Permalink
Merge pull request #70 from ZrBac/patch-2
Browse files Browse the repository at this point in the history
update points_in_boxes_all
  • Loading branch information
hust17yixuan authored Nov 6, 2024
2 parents 96c4d7c + 6c48402 commit e3cf445
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mmcv/ops/points_in_boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ def points_in_boxes_all(points: Tensor, boxes: Tensor) -> Tensor:
if points.device.type != 'npu':
if torch.cuda.current_device() != points_device:
torch.cuda.set_device(points_device)
elif points.device.type == 'npu':
boxes[:, :, 2] += boxes[:, :, 5] / 2.0
ext_module.points_in_boxes_all_forward(boxes.contiguous(),
points.contiguous(),
box_idxs_of_pts)
Expand Down

0 comments on commit e3cf445

Please sign in to comment.