MUAD#
- class torch_uncertainty.datasets.MUAD(root, split, version='full', min_depth=None, max_depth=None, target_type='semantic', transforms=None, download=False, use_train_ids=True)[source]#
The MUAD Dataset.
- Parameters:
root (
str|Path) – Root directory of dataset where directoryleftImg8bitandleftLabelorleftDepthare located.split (
Literal['train','val','test','ood']) – The image split to use,train,val,testorood.version (
Literal['small','full']) – The version of the dataset to use,smallorfull. Defaults to"full".min_depth (
float|None) – The maximum depth value to use if target_type isdepth. Defaults toNone.max_depth (
float|None) – The maximum depth value to use if target_type isdepth. Defaults toNone.target_type (
Literal['semantic','depth']) – The type of target to use,semanticordepth. Defaults tosemantic.transforms (
Callable|None) – A function/transform that takes in a tuple of PIL images and returns a transformed version. Defaults toNone.download (
bool) – IfTrue, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again. Defaults toFalse.use_train_ids (
bool) – IfTrue, uses the train ids instead of the original ids. Defaults toTrue. Note that this is only used for thesemantictarget type.
- Reference:
Note
MUAD cannot be used for commercial purposes. Read MUAD’s license carefully before using it and verify that you can comply.