Skip to content

Commit c641cc1

Browse files
committed
fixup! fixup! fixup! fixup! fixup! Normalize Windows style paths to parse folder
1 parent ae3ed35 commit c641cc1

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

roboflow/util/folderparser.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def _list_files(folder):
6161
for file in files:
6262
file_path = os.path.join(root, file)
6363
rel = os.path.relpath(file_path, folder)
64-
print("FILENAME", file_path, rel)
6564
filedescriptors.append(_describe_file(f"/{rel}"))
6665
filedescriptors = sorted(filedescriptors, key=lambda x: _alphanumkey(x["file"]))
6766
return filedescriptors
@@ -279,7 +278,6 @@ def _load_labelmaps(folder, labelmaps):
279278
except Exception:
280279
# raise Exception(f"failed to load labelmap {labelmap['file']}")
281280
pass
282-
print("LABEL MAP", folder, labelmap)
283281
return [lm for lm in labelmaps if lm.get("labelmap")]
284282

285283

tests/util/test_folderparser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def test(sharksfolder):
3636
testImagePath = "/train/images/sharks_mp4-20_jpg.rf.5359121123e86e016401ea2731e47949.jpg"
3737
testImage = [i for i in parsed["images"] if i["file"] == testImagePath][0]
3838
expectAnnotationFile = "/train/labels/sharks_mp4-20_jpg.rf.5359121123e86e016401ea2731e47949.txt"
39-
print("AAA", testImagePath, testImage)
4039
assert testImage["annotationfile"]["file"] == expectAnnotationFile
4140
assert testImage["annotationfile"]["labelmap"] == {0: "fish", 1: "primary", 2: "shark"}
4241

0 commit comments

Comments
 (0)