Skip to content

Commit

Permalink
Fix id assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
TaWald committed Oct 11, 2023
1 parent 7e537d5 commit 9a83a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnunetv2/training/dataloading/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def find_broken_image_and_labels(
:returns: Tuple of a set containing the case ids of the broken npy images and a set of the case ids of broken npy segmentations.
"""
content = os.listdir(path_to_data_dir)
unique_ids = [c.split("_")[0] for c in content if c.endswith("_seg.npy")]
unique_ids = [c[:-4] for c in content if c.endswith(".npz")]
failed_data_ids = set()
failed_seg_ids = set()
for unique_id in unique_ids:
Expand Down

0 comments on commit 9a83a2e

Please sign in to comment.