tumourkit.segmentation.hovernet.extract_patches.create_splits

tumourkit.segmentation.hovernet.extract_patches.create_splits(img_list: List[str], out_dir: str) Tuple[Tuple[Set[str], Set[str], Set[str]], List[str]]

img_list: List of image names to split. out_dir: Parent directory to create subfolders train, validation and test.

Returns sets of strings as splits, and creates subfolders for saving data on them later.