torch_geometric.datasets.SHREC2016
- class SHREC2016(root: str, partiality: str, category: str, train: bool = True, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, pre_filter: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDataset来自“SHREC’16: Partial Matching of Deformable Shapes”论文的SHREC 2016部分匹配数据集。 参考形状可以通过
dataset.ref引用。注意
Data objects hold mesh faces instead of edge indices. To convert the mesh to a graph, use the
torch_geometric.transforms.FaceToEdgeaspre_transform. To convert the mesh to a point cloud, use thetorch_geometric.transforms.SamplePointsastransformto sample a fixed number of points on the mesh faces according to their face area.- Parameters:
root (str) – Root directory where the dataset should be saved.
partiality (str) – 数据集的部分性(其中之一为
"Holes","Cuts")。category (str) – 数据集的类别(其中之一是
"Cat","Centaur","David","Dog","Horse","Michael","Victoria","Wolf")。train (bool, optional) – If
True, loads the training dataset, otherwise the test dataset. (default:True)transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before every access. (default:None)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before being saved to disk. (default:None)pre_filter (callable, optional) – A function that takes in an
torch_geometric.data.Dataobject and returns a boolean value, indicating whether the data object should be included in the final dataset. (default:None)force_reload (bool, optional) – Whether to re-process the dataset. (default:
False)