Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加了point_to_voxel和voxel_to_point的第四个入参 #68

Open
wants to merge 1 commit into
base: rc4main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mmcv/ops/scatter_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ def forward(ctx: Any,
ctx.device = feats.device.type
if ctx.device == 'npu':
import ads_c
voxel_idx = ads_c.point_to_voxel(coors, [], [])
voxel_idx = ads_c.point_to_voxel(coors, [], [], 'XYZ')
unique_res = ads_c.unique_voxel(voxel_idx)
num_voxels, uniqued_voxel_idx, prefix_sum, \
argsort_coor, _ = unique_res
voxel_coors = ads_c.voxel_to_point(uniqued_voxel_idx, [], [])
voxel_coors = ads_c.voxel_to_point(uniqued_voxel_idx,
[], [], 'XYZ')
voxel_feats, \
compare_mask = ads_c.npu_dynamic_scatter(feats, coors,
prefix_sum,
Expand Down
Loading