(model_cfg: ConfigDict,
dataset_cfg: ConfigDict,
root_path: str = None,
file_extension: str = 'json')
| 38 | |
| 39 | |
| 40 | def get_infer_output_path(model_cfg: ConfigDict, |
| 41 | dataset_cfg: ConfigDict, |
| 42 | root_path: str = None, |
| 43 | file_extension: str = 'json') -> str: |
| 44 | # TODO: Rename this func |
| 45 | assert root_path is not None, 'default root_path is not allowed any more' |
| 46 | model_abbr = model_abbr_from_cfg(model_cfg) |
| 47 | dataset_abbr = dataset_abbr_from_cfg(dataset_cfg) |
| 48 | return osp.join(root_path, model_abbr, f'{dataset_abbr}.{file_extension}') |
| 49 | |
| 50 | |
| 51 | def deal_with_judge_model_abbr(model_cfg, judge_model_cfg, meta=False): |
no test coverage detected