open3d.ml.torch.datasets.Toronto3D

class open3d.ml.torch.datasets.Toronto3D(dataset_path, name='Toronto3D', cache_dir='./logs/cache', use_cache=False, num_points=65536, class_weights=[35391894.0, 1449308.0, 4650919.0, 18252779.0, 589856.0, 743579.0, 4311631.0, 356463.0], ignored_label_inds=[0], train_files=['L001.ply', 'L003.ply', 'L004.ply'], val_files=['L002.ply'], test_files=['L002.ply'], test_result_folder='./test', **kwargs)

Toronto3D dataset, used in visualizer, training, or test

__init__(dataset_path, name='Toronto3D', cache_dir='./logs/cache', use_cache=False, num_points=65536, class_weights=[35391894.0, 1449308.0, 4650919.0, 18252779.0, 589856.0, 743579.0, 4311631.0, 356463.0], ignored_label_inds=[0], train_files=['L001.ply', 'L003.ply', 'L004.ply'], val_files=['L002.ply'], test_files=['L002.ply'], 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 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’.