Skip to content

Function save_frame_data_imgstore does not store frames in chronological order. #2097

Closed Answered by roomrys
FranciscoAzevedo asked this question in Help!
Discussion options

You must be logged in to vote

Hi @FranciscoAzevedo,

Yes, you can Predict > Export Labels Package in the GUI to save out a .pkg.slp which will have images stored in an HDF5 dataset.

If you wanted to do this programmatically, SLEAP uses the Labels.save_frame_data_hdf5 method to output a list of Videos with HDF5Video backend:

sleap/sleap/io/dataset.py

Lines 2315 to 2399 in 59e1f70

def save_frame_data_hdf5(
self,
output_path: str,
format: str = "png",
user_labeled: bool = True,
all_labeled: bool = False,
suggested: bool = False,
progress_callback: Optional[Callable[[int, int], None]] = None,
) -> List[HDF5Video]:
"""Write images for labeled frames from all videos to…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FranciscoAzevedo
Comment options

Answer selected by FranciscoAzevedo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #2090 on January 24, 2025 16:58.