Get the path to the log file. Args: file_extension (str): The file extension of the log file. Default: 'json'.
(self, file_extension: str = 'json')
| 90 | return f'{self.__class__.__name__}({self.cfg})' |
| 91 | |
| 92 | def get_log_path(self, file_extension: str = 'json') -> str: |
| 93 | """Get the path to the log file. |
| 94 | |
| 95 | Args: |
| 96 | file_extension (str): The file extension of the log file. |
| 97 | Default: 'json'. |
| 98 | """ |
| 99 | return get_infer_output_path( |
| 100 | self.model_cfgs[0], self.dataset_cfgs[0][0], |
| 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 |