Get the paths to the output files. Every file should exist if the task succeeds. Args: file_extension (str): The file extension of the output files. Default: 'json'.
(self, file_extension: str = 'json')
| 101 | os.path.join(self.work_dir, self.log_subdir), file_extension) |
| 102 | |
| 103 | def get_output_paths(self, file_extension: str = 'json') -> List[str]: |
| 104 | """Get the paths to the output files. Every file should exist if the |
| 105 | task succeeds. |
| 106 | |
| 107 | Args: |
| 108 | file_extension (str): The file extension of the output files. |
| 109 | Default: 'json'. |
| 110 | """ |
| 111 | output_paths = [] |
| 112 | for model, datasets in zip(self.model_cfgs, self.dataset_cfgs): |
| 113 | for dataset in datasets: |
| 114 | output_paths.append( |
| 115 | get_infer_output_path( |
| 116 | model, dataset, |
| 117 | os.path.join(self.work_dir, self.output_subdir), |
| 118 | file_extension)) |
| 119 | return output_paths |
no test coverage detected