diff --git a/labelme/app.py b/labelme/app.py index 4182770f4..1dae25c53 100644 --- a/labelme/app.py +++ b/labelme/app.py @@ -2143,7 +2143,7 @@ def scanAllImages(self, folderPath): for root, dirs, files in os.walk(folderPath): for file in files: if file.lower().endswith(tuple(extensions)): - relativePath = osp.join(root, file) + relativePath = os.path.normpath(osp.join(root, file)) images.append(relativePath) images = natsort.os_sorted(images) return images