MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / ConcatDataset

Class ConcatDataset

detrsmpl/data/datasets/dataset_wrappers.py:8–18  ·  view source on GitHub ↗

A wrapper of concatenated dataset. Same as :obj:`torch.utils.data.dataset.ConcatDataset`, but add `get_cat_ids` function. Args: datasets (list[:obj:`Dataset`]): A list of datasets.

Source from the content-addressed store, hash-verified

6
7@DATASETS.register_module()
8class ConcatDataset(_ConcatDataset):
9 """A wrapper of concatenated dataset.
10
11 Same as :obj:`torch.utils.data.dataset.ConcatDataset`, but
12 add `get_cat_ids` function.
13
14 Args:
15 datasets (list[:obj:`Dataset`]): A list of datasets.
16 """
17 def __init__(self, datasets: list):
18 super(ConcatDataset, self).__init__(datasets)
19
20
21@DATASETS.register_module()

Callers 2

__init__Method · 0.90
build_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected