MCPcopy Create free account
hub / github.com/GasaiYU/PartRM / __init__

Method __init__

preprocess/src/data/objaverse.py:30–50  ·  view source on GitHub ↗
(
        self, 
        batch_size=8, 
        num_workers=4, 
        train=None, 
        validation=None, 
        test=None, 
        **kwargs,
    )

Source from the content-addressed store, hash-verified

28
29class DataModuleFromConfig(pl.LightningDataModule):
30 def __init__(
31 self,
32 batch_size=8,
33 num_workers=4,
34 train=None,
35 validation=None,
36 test=None,
37 **kwargs,
38 ):
39 super().__init__()
40
41 self.batch_size = batch_size
42 self.num_workers = num_workers
43
44 self.dataset_configs = dict()
45 if train is not None:
46 self.dataset_configs['train'] = train
47 if validation is not None:
48 self.dataset_configs['validation'] = validation
49 if test is not None:
50 self.dataset_configs['test'] = test
51
52 def setup(self, stage):
53

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected