diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-18 13:26:17 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-18 13:26:17 +0200 |
| commit | 8d9c8e0622e80a3c56fd232b681185e04345d02e (patch) | |
| tree | 4330d9ef3ab24e803c5e00a195eb98ca398a3e34 /data | |
| parent | 0bb81d6fea7d05cf233106296bb2257bf053bea8 (diff) | |
k
Diffstat (limited to 'data')
| -rw-r--r-- | data/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/__init__.py b/data/__init__.py index 381ec59..6da79f3 100644 --- a/data/__init__.py +++ b/data/__init__.py @@ -70,7 +70,11 @@ class RecursiveDatasetDataLoader(BaseDataLoader): #BaseDataLoader.initialize(self, opt) self.opt = opt self.dataset = CreateDataset(opt) - self.dataloader = self.dataset + self.dataloader = torch.utils.data.DataLoader( + self.dataset, + batch_size=opt.batchSize, + shuffle=not opt.serial_batches, + num_workers=int(opt.nThreads)) def load_data(self): return self |
