Skip to content

Commit

Permalink
Update datasets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shenqq377 authored Dec 5, 2023
1 parent 7ac2ce6 commit 70a828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataloaders/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, args):

self.image_dirs = sorted(self.image_dirs, key=lambda x: int(x.split('_')[-1].split('.nii.gz')[0]))

# remove test fold!
# test fold!
self.FOLD = get_folds(args['dataset'])
self.image_dirs = [elem for idx, elem in enumerate(self.image_dirs) if idx in self.FOLD[args['eval_fold']]]

Expand Down

0 comments on commit 70a828d

Please sign in to comment.