def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        evaluate_filename = self.evaluation_setup_filename(setup_part='evaluate', scene_label=self.scene_labels()[0])
        eval_file = MetaDataContainer(filename=evaluate_filename)
        if eval_file.exists():
            meta_data = MetaDataContainer()
            eval_file.load()
            for item in eval_file:
                self.process_meta_item(item=item, absolute_path=False)
            meta_data += eval_file
            meta_data.save(filename=self.meta_file)
            self.load()
        elif os.path.isdir(os.path.join(self.local_path, 'meta')):
            annotation_files = Path().file_list(path=os.path.join(self.local_path, 'meta'), extensions=['ann'])
            meta_data = MetaDataContainer()
            for annotation_filename in annotation_files:
                data = MetaDataContainer(filename=annotation_filename).load()
                for item in data:
                    self.process_meta_item(item=item, absolute_path=False)
                meta_data += data
            meta_data.save(filename=self.meta_file)
            self.load()
    return self
Prepare dataset for the usage.

Returns
-------
self
def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        evaluate_filename = self.evaluation_setup_filename(setup_part='evaluate', scene_label=self.scene_labels()[0])
        eval_file = MetaDataContainer(filename=evaluate_filename)
        if eval_file.exists():
            meta_data = MetaDataContainer()
            eval_file.load()
            for item in eval_file:
                self.process_meta_item(item=item, absolute_path=False)
            meta_data += eval_file
            meta_data.save(filename=self.meta_file)
            self.load()
        elif os.path.isdir(os.path.join(self.local_path, 'meta')):
            annotation_files = Path().file_list(path=os.path.join(self.local_path, 'meta'), extensions=['ann'])
            meta_data = MetaDataContainer()
            for annotation_filename in annotation_files:
                data = MetaDataContainer(filename=annotation_filename).load()
                for item in data:
                    self.process_meta_item(item=item, absolute_path=False)
                meta_data += data
            meta_data.save(filename=self.meta_file)
            self.load()
    return self