epic_kitchens.hoa.io
¶
Functions for loading and saving detections to/from files.
Module Contents¶
Functions¶
|
Load detections from file. |
|
Save detections to file. |
-
epic_kitchens.hoa.io.
load_detections
(path: Union[str, Path]) → List[FrameDetections]¶ Load detections from file.
- Parameters
path – Path to detections pickle. This should contain a pickled list of serialized protobuf descriptions of detections
- Returns
Deserialized detections contained in pickle.
-
epic_kitchens.hoa.io.
save_detections
(detections: List[FrameDetections], path: Union[str, Path]) → None¶ Save detections to file.
- Parameters
detections – A list of detections. These should be ordered by frame.
path – Path to write serialized detections to. Non-existent folders in the path are created.