Can now be trained with normals
This commit is contained in:
@@ -148,6 +148,8 @@ class CustomShapeNet(InMemoryDataset):
|
||||
####################################
|
||||
# This is where you define the keys
|
||||
attr_dict = dict(y=y, pos=points[:, :3 if not self.with_normals else 6])
|
||||
if not self.with_normals:
|
||||
attr_dict.update(normals=points[:, 3:6])
|
||||
####################################
|
||||
if self.collate_per_element:
|
||||
data = Data(**attr_dict)
|
||||
|
||||
Reference in New Issue
Block a user