open3d.ml.torch.datasets.S3DIS

class open3d.ml.torch.datasets.S3DIS(dataset_path, name='S3DIS', cache_dir='./logs/cache', use_cache=False, class_weights=[3370714, 2856755, 4919229, 318158, 375640, 478001, 974733, 650464, 791496, 88727, 1284130, 229758, 2272837], num_points=40960, test_area_idx=3, ignored_label_inds=[], test_result_folder='./test', **kwargs)

S3DIS dataset, used in visualizer, training, or test

__init__(dataset_path, name='S3DIS', cache_dir='./logs/cache', use_cache=False, class_weights=[3370714, 2856755, 4919229, 318158, 375640, 478001, 974733, 650464, 791496, 88727, 1284130, 229758, 2272837], num_points=40960, test_area_idx=3, ignored_label_inds=[], test_result_folder='./test', **kwargs)

Initialize :param dataset_path: path to the dataset :type dataset_path: str :param kwargs:

Returns

The corresponding class.

Return type

class

static create_ply_files(dataset_path, class_names)
get_data(file_path, is_test=False)
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)
static header_properties(field_list, field_names)
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’.

static write_ply(filename, field_list, field_names, triangular_faces=None)