sleap-io v0.1.3
What's Changed
- Add support for embedding images in .pkg.slp by @talmo in #91
- Saving SLP files with embedded images will re-save the embedded images.
- Embed images into SLP files with:
labels.save("labels.pkg.slp", embed="user")
to embed frames with user-labeled instances (Instance
)labels.save("labels.pkg.slp", embed="user+suggestion")
to embed frames with user-labeled instances and suggestion frames (useful for inference after training)labels.save("labels.pkg.slp", embed="source")
to restore the source video ("unembed")
- Better reprs and QOL by @talmo in #96
- Better
__repr__
s forSkeleton
,LabeledFrame
,Labels
,Instance
,PredictedInstance
Labels.append()
andLabels.extend()
to addLabeledFrame
s now will updateLabels.tracks
,Labels.skeletons
andLabels.videos
with contents.Labels.update()
to manually updateLabels.tracks
,Labels.skeletons
andLabels.videos
with contents ofLabels.labeled_frames
andLabels.suggestions
.Labels.replace_filenames()
: multiple methods for replacing all video filenames across the project (#85).Skeleton.edge_names
to return list of edges as tuples of string names- Added docstrings to
sio.load_video
and related high levelVideo
APIs to clarify supported file formats. - Syntactic sugar: try to initialize video backend with
Video(filename)
construction (#94)
- Better
Full Changelog: v0.1.2...v0.1.3