fastdev.datasets.modelnet

Module Contents

class fastdev.datasets.modelnet.ModelNetDatasetConfig[source]

Configuration for ModelNetDataset.

data_root: str[source]
download_if_not_exist: bool = False[source]
preprocess_data: bool = True[source]
recache: bool = False[source]
num_categories: Literal[10, 40] = 40[source]
num_points: int = 1024[source]
resample: bool = True[source]
return_normals: bool = False[source]
__post_init__()[source]
class fastdev.datasets.modelnet.ModelNetDataset(config: ModelNetDatasetConfig, split: Literal['train', 'test'] = 'train')[source]

Bases: torch.utils.data.Dataset

ModelNet dataset.

  • By setting download_if_not_exist=True, the dataset will be downloaded from Hugging Face Hub.

  • The modelnet40 dataset has already been FPS sampled, no need to run FPS sampling again.

Parameters:
config[source]
__len__()[source]
__getitem__(index)[source]
static download_data(data_root: str)[source]
Parameters:

data_root (str)