MCPcopy Create free account
hub / github.com/NVIDIA/pix2pixHD / initialize

Method initialize

data/custom_dataset_data_loader.py:18–25  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

16 return 'CustomDatasetDataLoader'
17
18 def initialize(self, opt):
19 BaseDataLoader.initialize(self, opt)
20 self.dataset = CreateDataset(opt)
21 self.dataloader = torch.utils.data.DataLoader(
22 self.dataset,
23 batch_size=opt.batchSize,
24 shuffle=not opt.serial_batches,
25 num_workers=int(opt.nThreads))
26
27 def load_data(self):
28 return self.dataloader

Callers 1

CreateDataLoaderFunction · 0.95

Calls 1

CreateDatasetFunction · 0.85

Tested by

no test coverage detected