acds.benchmarks.adiac package
Submodules
acds.benchmarks.adiac.dataset module
acds.benchmarks.adiac.getter module
- acds.benchmarks.adiac.getter.get_adiac_data(root_path: PathLike, bs_train: int, bs_test: int, whole_train: bool = False, for_rc: bool = True) tuple[DataLoader, DataLoader, DataLoader][source]
Get the ADIAC dataset from a txt file and return the train, validation and test dataloaders.
- Parameters:
root_path (os.PathLike) – Path to the folder containing the txt files.
bs_train (int) – Batch size for the train dataloader.
bs_test (int) – Batch size for the validation and test dataloaders.
whole_train (bool, optional) – If True, the whole dataset is used for training. Defaults to False.
for_rc (bool, optional) – If True, the data is returned as a RCDataset. Defaults to True.
- Returns:
Train, validation and test dataloaders.
- Return type:
Tuple[DataLoader, DataLoader, DataLoader]