mirror of
https://github.com/wassname/Pointnet2_PyTorch.git
synced 2026-06-27 16:00:07 +08:00
Possible bug fixes
This commit is contained in:
@@ -77,12 +77,10 @@ class Indoor3DSemSeg(data.Dataset):
|
||||
pt_idxs = np.arange(0, self.num_points)
|
||||
np.random.shuffle(pt_idxs)
|
||||
|
||||
current_points = torch.from_numpy(self.points[idx, pt_idxs]).type(
|
||||
torch.FloatTensor
|
||||
)
|
||||
current_labels = torch.from_numpy(self.labels[idx, pt_idxs]).type(
|
||||
torch.LongTensor
|
||||
)
|
||||
current_points = torch.from_numpy(self.points[idx, pt_idxs].copy()
|
||||
).type(torch.FloatTensor)
|
||||
current_labels = torch.from_numpy(self.labels[idx, pt_idxs].copy()
|
||||
).type(torch.LongTensor)
|
||||
|
||||
return current_points, current_labels
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class ModelNet40Cls(data.Dataset):
|
||||
pt_idxs = np.arange(0, self.actual_number_of_points)
|
||||
np.random.shuffle(pt_idxs)
|
||||
|
||||
current_points = self.points[idx, pt_idxs, :]
|
||||
current_points = self.points[idx, pt_idxs].copy()
|
||||
label = torch.from_numpy(self.labels[idx]).type(torch.LongTensor)
|
||||
|
||||
if self.transforms is not None:
|
||||
|
||||
Reference in New Issue
Block a user