MCPcopy Create free account
hub / github.com/dek924/PerX2CT / setup

Method setup

main.py:170–176  ·  view source on GitHub ↗
(self, stage=None)

Source from the content-addressed store, hash-verified

168 instantiate_from_config(data_cfg)
169
170 def setup(self, stage=None):
171 self.datasets = dict(
172 (k, instantiate_from_config(self.dataset_configs[k]))
173 for k in self.dataset_configs)
174 if self.wrap:
175 for k in self.datasets:
176 self.datasets[k] = WrappedDataset(self.datasets[k])
177
178 def _train_dataloader(self):
179 return DataLoader(self.datasets["train"], batch_size=self.batch_size,

Callers 4

main_testFunction · 0.80
main_test_random_cropFunction · 0.80
main.pyFile · 0.80
main_testFunction · 0.80

Calls 2

instantiate_from_configFunction · 0.85
WrappedDatasetClass · 0.85

Tested by 3

main_testFunction · 0.64
main_test_random_cropFunction · 0.64
main_testFunction · 0.64