KatherPatchDataset¶

class KatherPatchDataset(save_dir_path=None)[source]¶

Define a class for holding the Kather dataset information.

Parameters:

save_dir_path (str or None) – Path to directory containing the Kather dataset. This is assumed to be the same form after the data is initially downloaded. If the argument is None, the dataset will be downloaded and extracted into the ‘run_dir/download/Kather’.

inputs¶

A list of paths where each path points to a sample image.

Type:

list

labels¶

A list of int where each value corresponds to the label of the sample at the same index.

Type:

list

label_names¶

A dict mapping each unique label value to the associated class name as a string.

Type:

dict

Initialize KatherPatchDataset.

Methods

Attributes