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

Attribute Error: module 'point_cloud_utils' has no attribute 'downsample_point_cloud_voxel_grid' #85

Open
rahul28suresh opened this issue Mar 20, 2024 · 0 comments

Comments

@rahul28suresh
Copy link

Hi there,

Thanks for your hardwork contributing to the scientific community.

I am having issues running the downsample_point_cloud_voxel_grid example.

v, n, and c seem to be correct and I can use other functions like load_mesh_vnc from pcu but not downsample_point_cloud_voxel_grid. I have posted the code below.

v = np.row_stack(rot_trans_tees_tight)
n = np.row_stack(rot_trans_tees_tight_normals)
c = np.row_stack(labels)

num_voxels_per_axis = 128
bbox_size = v.max(0) - v.min(0)
size_of_voxel = bbox_size / num_voxels_per_axis
min_points_per_voxel = 3
v_sampled, n_sampled, c_sampled = pcu.downsample_point_cloud_voxel_grid(sizeof_voxel, v, n, c,
min_points_per_voxel=min_points_per_voxel)

Error Message

 7 size_of_voxel = bbox_size / num_voxels_per_axis
  8 min_points_per_voxel = 3

----> 9 v_sampled, n_sampled, c_sampled = pcu.downsample_point_cloud_voxel_grid(sizeof_voxel, v, n, c,
10 min_points_per_voxel=min_points_per_voxel)
11 # print(size_of_voxel)

AttributeError: module 'point_cloud_utils' has no attribute 'downsample_point_cloud_voxel_grid'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant