Segmentation.load#
- classmethod Segmentation.load(in_path, mode='hdf')[source]#
Load the segmentation from a file, either an hdf or csv file.
- Parameters:
in_path (PathLike) – Path to the file. File extension must match ‘mode’
mode (Literal["hdf", "yaml"], default "hdf") – Mode to load in, either ‘hdf’ or ‘yaml’
- Return type:
Segmentation class