Skip to content

Commit

Permalink
remove dict assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianIsensee committed Mar 27, 2024
1 parent 0db9560 commit 6ef3476
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nnunetv2/training/dataloading/base_data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def __init__(self,
pad_sides: Union[List[int], Tuple[int, ...], np.ndarray] = None,
probabilistic_oversampling: bool = False):
super().__init__(data, batch_size, 1, None, True, False, True, sampling_probabilities)
assert isinstance(data, nnUNetDataset), 'nnUNetDataLoaderBase only supports dictionaries as data'
self.indices = list(data.keys())

self.oversample_foreground_percent = oversample_foreground_percent
Expand Down

0 comments on commit 6ef3476

Please sign in to comment.