for split in SPLITS:
OUT_PATH = os.path.join(DATA_PATH, ‘…/coco’, race_path+’_annotations’)
if not os.path.exists(OUT_PATH):
os.makedirs(OUT_PATH)
out_path = OUT_PATH + '/{}.json'.format(split)
gen_COCO_Anno(DATA_PATH, out_path, split)
for split in SPLITS:
OUT_PATH = os.path.join(DATA_PATH, ‘…/coco’, race_path+’_annotations’)
if not os.path.exists(OUT_PATH):
os.makedirs(OUT_PATH)
out_path = OUT_PATH + '/{}.json'.format(split)
gen_COCO_Anno(DATA_PATH, out_path, split)
dataset目录只有可读权限
用户对于dataset文件夹是没有写权限的,将数据挂载到自己的workspace目录下试一试呢?