MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / expanduser

Function expanduser

open_loop_training/code/datasets/base_dataset.py:16–20  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

14from mmdet3d.datasets.pipelines import Compose
15
16def expanduser(path):
17 if isinstance(path, (str, PathLike)):
18 return osp.expanduser(path)
19 else:
20 return path
21
22
23class BaseDataset(Dataset):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected