mirror of https://github.com/open-mmlab/mmocr.git
[Fix] [DP] Automatically create nonexistent directory for base configs
parent
00254f0390
commit
9785dc616c
|
@ -127,6 +127,7 @@ class BaseDataConverter:
|
|||
break
|
||||
if c.lower() == 'n':
|
||||
return
|
||||
mkdir_or_exist(osp.dirname(cfg_path))
|
||||
with open(cfg_path, 'w') as f:
|
||||
f.write(
|
||||
f'{self.dataset_name}_{self.task}_data_root = \'{self.data_root}\'\n' # noqa: E501
|
||||
|
|
Loading…
Reference in New Issue