open3d.ml.torch.datasets.Custom3D¶
-
class
open3d.ml.torch.datasets.
Custom3D
(dataset_path, name='Custom3D', cache_dir='./logs/cache', use_cache=False, num_points=65536, ignored_label_inds=[], test_result_folder='./test', **kwargs)¶ A template for customized dataset. Can be modified by users.
-
__init__
(dataset_path, name='Custom3D', cache_dir='./logs/cache', use_cache=False, num_points=65536, ignored_label_inds=[], test_result_folder='./test', **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
static
get_label_to_names
()¶ Returns a label to names dict.
- Returns
A dict where keys are label numbers and vals are the corresponding names.
-
get_split
(split)¶ Returns a dataset split.
- Parameters
split – A string identifying the dataset split. Usually one of
'test', 'validation', 'all'. ('training',) –
- Returns
A dataset split object providing the requested subset of the data.
-
get_split_list
(split)¶
-
is_tested
(attr)¶ Checks whether a datum has been tested.
- Parameters
attr – The attributes associated with the datum
- Returns
True if the test result has been stored for the datum with the specified attribute or else returns False.
-
save_test_result
(results, attr)¶ Saves the output of a model.
- Parameters
results – The output of a model for the datum associated with ‘attr’.
attr – The attributes that correspond to the outputs ‘results’.
-