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’.

Attributes

inputs (list): A list of paths where each path points to a sample image. labels (list): A list of int where each is the label of the sample at

the same index.

label_names (dict): A dict indicates the possible associate name of each

label value.

Methods

Attributes

inputs

label_names

labels