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

Method initialize

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

Source from the content-addressed store, hash-verified

29 return 'CustomDatasetDataLoader'
30
31 def initialize(self, opt):
32 BaseDataLoader.initialize(self, opt)
33 self.dataset = CreateDataset(opt)
34 self.dataloader = torch.utils.data.DataLoader(
35 self.dataset,
36 batch_size=opt.batchSize,
37 shuffle=not opt.serial_batches,
38 num_workers=int(opt.nThreads))
39
40 def load_data(self):
41 return self.dataloader

Callers 1

CreateDataLoaderFunction · 0.95

Calls 1

CreateDatasetFunction · 0.85

Tested by

no test coverage detected