diff --git a/tools/data/super-resolution/df2k_ost/preprocess_df2k_ost_dataset.py b/tools/data/super-resolution/df2k_ost/preprocess_df2k_ost_dataset.py index 7412135a54..3f601dd494 100644 --- a/tools/data/super-resolution/df2k_ost/preprocess_df2k_ost_dataset.py +++ b/tools/data/super-resolution/df2k_ost/preprocess_df2k_ost_dataset.py @@ -53,7 +53,7 @@ def extract_subimages(opt): """ input_folder = opt['input_folder'] save_folder = opt['save_folder'] - if not mmcv.mkdir_or_exist(save_folder): + if not osp.exists(save_folder): os.makedirs(save_folder) print(f'mkdir {save_folder} ...') else: