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.
| 6 | |
| 7 | @DATASETS.register_module() |
| 8 | class 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() |
no outgoing calls
no test coverage detected