Skip to content

Commit 935a816

Browse files
authored
fix path error for windows in convert_cityscapes_autolabeling.py (#1195)
1 parent 1d05225 commit 935a816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main(args):
5959
mask[binary_mask] = v
6060
new_mask = Image.fromarray(mask.astype(np.uint8)).convert('P')
6161
new_mask.putpalette(color_map)
62-
file_split = file.split('/')
62+
file_split = file.split(os.sep)
6363
path = os.path.join(dataset_root, 'convert_autolabelled',
6464
file_split[-2])
6565
if not os.path.exists(path):

0 commit comments

Comments
 (0)