Open edshkim98 opened 3 years ago
The return type sets an index for each point in your cloud. If the indices are the same for a set of points, they shall be "clustered" together. You can convert the return type into "consecutive" indices (where pooled.max() + 1== num_clusters
via:
from torch_geometric.nn.pool.consecutive import consecutive_cluster
pooled, _ = consecutive_cluster(pooled)
From now on, we recommend using our discussion forum (https://github.com/rusty1s/pytorch_geometric/discussions) for general questions.
❓ Questions & Help
Hello, I am trying to use voxel_grid pooling function to downsample my point cloud, but I do not understand the return type.
When I execute the code above, I get a list of numbers as follow.
tensor([2095, 2742, 2420, ..., 8575, 8232, 8252])
with size 4096.However, the return values don't seem to correspond with the original point cloud or index values. Have I used the function properly? Could you please let me know what are the return values representing?
Thank you!