Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

Commit 600bd04

Browse files
committed
requested changes
1 parent 0ae1b34 commit 600bd04

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

delira/data_loading/data_loader.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import numpy as np
22
from batchgenerators.dataloading.data_loader import SlimDataLoaderBase
3-
from multiprocessing import Queue
43
from queue import Empty
54
import logging
65

@@ -26,7 +25,7 @@ def __init__(self, dataset: AbstractDataset,
2625
dataset to perform sample loading
2726
batch_size : int
2827
number of samples per batch
29-
sampler_queues : list :class:`multiprocessing.Queue`
28+
sampler_queues : list of :class:`multiprocessing.Queue`
3029
the queue,s the sample indices to load will be put to.
3130
Necessary for interprocess communication
3231
num_batches : int
@@ -81,8 +80,6 @@ def generate_train_batch(self):
8180
try:
8281
idxs = sampler_queue.get(timeout=0.2)
8382

84-
# idxs = self.sampler_queue.get()
85-
8683
result = [self._get_sample(_idx) for _idx in idxs]
8784

8885
result_dict = {}

delira/data_loading/data_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, data_loader: BaseDataLoader, transforms,
4444
the sampler to use; must be used here instead of inside the
4545
dataloader to avoid duplications and oversampling due to
4646
multiprocessing
47-
sampler_queues : list of g:class:`multiprocessing.Queue`
47+
sampler_queues : list of :class:`multiprocessing.Queue`
4848
queues to pass the sample indices to the actual dataloader
4949
num_cached_per_queue : int
5050
the number of samples to cache per queue (only necessary if not in

0 commit comments

Comments
 (0)