Skip to content

Commit

Permalink
Update preprocessing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agosztolai authored Dec 11, 2023
1 parent b725056 commit 9504051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MARBLE/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def construct_dataset(
for i, (a, v, l, m) in enumerate(zip(anchor, vector, label, mask)):
for _ in range(number_of_resamples):
# even sampling of points
start_idx is None:
if start_idx is None:
start_idx = torch.randint(low=0, high=len(a), size=(1,))
sample_ind, _ = g.furthest_point_sampling(a, spacing=spacing, start_idx=start_idx)
sample_ind, _ = torch.sort(sample_ind) #this will make postprocessing easier
Expand Down

0 comments on commit 9504051

Please sign in to comment.