dicom_converter.utils.cat_to_dataset

Functions

cat_to_dataset([datapath, …])

Divides a directory containing only contain folders with each category to classify into ‘train’, ‘valid’ and ‘test’ folders contain each category for ML with custom splitting percentages trainset_percentage + validset_percentage + testset_percentage should be = 1 !

dataset_to_cat([datapath])

Groups a directory containing a ‘train’, ‘test’ and ‘valid’ (code is case sensitive) folders for ML with category sub folders into category folders.