Skip to content

Commit

Permalink
Update graspnet_dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-wang authored Jun 27, 2023
1 parent d4a52af commit 50dd448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dataset/graspnet_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def load_grasp_labels(root):
def minkowski_collate_fn(list_data):
coordinates_batch, features_batch = ME.utils.sparse_collate([d["coors"] for d in list_data],
[d["feats"] for d in list_data])
coordinates_batch = np.ascontiguousarray(coordinates_batch, dtype=np.int32)
coordinates_batch, features_batch, _, quantize2original = ME.utils.sparse_quantize(
coordinates_batch, features_batch, return_index=True, return_inverse=True)
res = {
Expand Down

0 comments on commit 50dd448

Please sign in to comment.