sleap.io.legacy¶
Module for legacy LEAP dataset.
-
sleap.io.legacy.
load_labels_json_old
(data_path: str, parsed_json: dict = None, adjust_matlab_indexing: bool = True, fix_rel_paths: bool = True) → List[sleap.instance.LabeledFrame][source]¶ Load predicted instances from Talmo’s old JSON format.
- Parameters
data_path – The path to the JSON file.
parsed_json – The parsed json if already loaded, so we can save some time if already parsed.
adjust_matlab_indexing – Whether to adjust indexing from MATLAB.
fix_rel_paths – Whether to fix paths to videos to absolute paths.
- Returns
A newly constructed Labels object.
-
sleap.io.legacy.
load_predicted_labels_json_old
(data_path: str, parsed_json: dict = None, adjust_matlab_indexing: bool = True, fix_rel_paths: bool = True) → List[sleap.instance.LabeledFrame][source]¶ Load predicted instances from Talmo’s old JSON format.
- Parameters
data_path – The path to the JSON file.
parsed_json – The parsed json if already loaded, so we can save some time if already parsed.
adjust_matlab_indexing – Whether to adjust indexing from MATLAB.
fix_rel_paths – Whether to fix paths to videos to absolute paths.
- Returns
List of
LabeledFrame
objects.