MCPcopy Create free account
hub / github.com/dcharatan/flowmap / get_dataset

Function get_dataset

flowmap/dataset/__init__.py:28–37  ·  view source on GitHub ↗
(
        dataset_cfgs: list[DatasetCfg],
        stage: Stage,
        frame_sampler_cfg: FrameSamplerCfg,
    )

Source from the content-addressed store, hash-verified

26 )
27
28 def get_dataset(
29 dataset_cfgs: list[DatasetCfg],
30 stage: Stage,
31 frame_sampler_cfg: FrameSamplerCfg,
32 ) -> DatasetMerged:
33 frame_sampler = get_frame_sampler(frame_sampler_cfg)
34 datasets = [
35 DATASETS[cfg.name](cfg, stage, frame_sampler) for cfg in dataset_cfgs
36 ]
37 return DatasetMerged(datasets)
38
39except ImportError:
40 get_dataset = None

Callers 3

overfitFunction · 0.85
train_dataloaderMethod · 0.85
val_dataloaderMethod · 0.85

Calls 2

get_frame_samplerFunction · 0.85
DatasetMergedClass · 0.85

Tested by

no test coverage detected