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
5 changes: 4 additions & 1 deletion monai/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def __init__(
cache_rate: float = 1.0,
num_init_workers: Optional[int] = None,
num_replace_workers: int = 0,
progress: bool = True,
) -> None:
"""
Args:
Expand All @@ -605,8 +606,10 @@ def __init__(
If num_init_workers is None then the number returned by os.cpu_count() is used.
num_replace_workers: the number of worker threads to prepare the replacement cache for every epoch.
if 0, run in main thread, no separate thread will open.
progress: whether to display a progress bar.

"""
super().__init__(data, transform, cache_num, cache_rate, num_init_workers)
super().__init__(data, transform, cache_num, cache_rate, num_init_workers, progress)
if self._cache is None:
self._cache = self._fill_cache()
if self.cache_num >= len(data):
Expand Down