From 887853f68be4cae1096b07dfe76e476d8d529bc1 Mon Sep 17 00:00:00 2001 From: zhangyajie Date: Fri, 23 Jul 2021 01:18:40 +0800 Subject: [PATCH] fix path error for windows in convert_cityscapes_autolabeling.py --- contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py b/contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py index 7e56311792..eaeb94bf8b 100644 --- a/contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py +++ b/contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py @@ -59,7 +59,7 @@ def main(args): mask[binary_mask] = v new_mask = Image.fromarray(mask.astype(np.uint8)).convert('P') new_mask.putpalette(color_map) - file_split = file.split('/') + file_split = file.split(os.sep) path = os.path.join(dataset_root, 'convert_autolabelled', file_split[-2]) if not os.path.exists(path):