Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion darwin/dataset/split_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _write_to_file(annotation_path: Path, annotation_files: List[Path], file_pat
for i in split_idx:
# To deal with recursive search, we want to write the difference between the annotation path
# and its parent, without the file extension
stem = str(annotation_files[i]).replace(f"{annotation_path}/", "").split(".json")[0]
stem = str(annotation_files[i]).replace(f"{annotation_path}/", "").rsplit(".json", 1)[0]
f.write(f"{stem}\n")


Expand Down