Skip to content

Commit

Permalink
distributed sampler length modififed
Browse files Browse the repository at this point in the history
  • Loading branch information
haughty-yeon authored Nov 23, 2023
1 parent 9405a82 commit 2b77b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchio/data/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def subjects_iterable(self):
@property
def num_subjects(self) -> int:
if self.subject_sampler is not None:
return len(self.subject_sampler)
return self.subject_sampler.__len__()
return len(self.subjects_dataset)

@property
Expand Down

0 comments on commit 2b77b25

Please sign in to comment.