Sleap-io

Latest version: v0.2.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.1.5

What's Changed
* `Labels.split` and `Labels.make_training_splits` by talmo in https://github.com/talmolab/sleap-io/pull/98


**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.1.4...v0.1.5

0.1.4

What's Changed
* Add support for embedding images in .pkg.slp by talmo in https://github.com/talmolab/sleap-io/pull/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 https://github.com/talmolab/sleap-io/pull/96
- Better `__repr__`s for `Skeleton`, `LabeledFrame`, `Labels`, `Instance`, `PredictedInstance`
- `Labels.append()` and `Labels.extend()` to add `LabeledFrame`s now will update `Labels.tracks`, `Labels.skeletons` and `Labels.videos` with contents.
- `Labels.update()` to manually update `Labels.tracks`, `Labels.skeletons` and `Labels.videos` with contents of `Labels.labeled_frames` and `Labels.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 level `Video` APIs to clarify supported file formats.
- Syntactic sugar: try to initialize video backend with `Video(filename)` construction (94)

**Note:** This is a re-release of v0.1.3 which had a borked deployment.

**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.1.2...v0.1.4

0.1.3

What's Changed
* Add support for embedding images in .pkg.slp by talmo in https://github.com/talmolab/sleap-io/pull/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 https://github.com/talmolab/sleap-io/pull/96
- Better `__repr__`s for `Skeleton`, `LabeledFrame`, `Labels`, `Instance`, `PredictedInstance`
- `Labels.append()` and `Labels.extend()` to add `LabeledFrame`s now will update `Labels.tracks`, `Labels.skeletons` and `Labels.videos` with contents.
- `Labels.update()` to manually update `Labels.tracks`, `Labels.skeletons` and `Labels.videos` with contents of `Labels.labeled_frames` and `Labels.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 level `Video` APIs to clarify supported file formats.
- Syntactic sugar: try to initialize video backend with `Video(filename)` construction (94)


**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.1.2...v0.1.3

0.1.2

What's Changed
* Fix suggestions deserialization by talmo in https://github.com/talmolab/sleap-io/pull/95


**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.1.1...v0.1.2

0.1.1

What's Changed
* Create docs pages by talmo in https://github.com/talmolab/sleap-io/pull/87
* Add `ImageVideo` backend by talmo in https://github.com/talmolab/sleap-io/pull/88
* Add `SuggestionFrame` by talmo in https://github.com/talmolab/sleap-io/pull/89
* Implement `ImageVideo` support in SLP by talmo in https://github.com/talmolab/sleap-io/pull/90
* Bump to v0.1.1 by talmo in https://github.com/talmolab/sleap-io/pull/93


**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.1.0...v0.1.1

0.1.0

What's Changed
* Add skeleton utilities by talmo in https://github.com/talmolab/sleap-io/pull/76
- `Skeleton.add_node`: Add a node by name or object.
- `Skeleton.add_edge`: Add an edge by lists of names or objects.
- `Skeleton.add_symmetry`: Add a symmetry edge by lists of names or objects.

* Update CI and versions by talmo in https://github.com/talmolab/sleap-io/pull/77
- Update dependency ranges (see below)
- Update action workflow versions
- Enable M1 mac runners
- Expand python version range to 3.7-3.12
- Note: Python 3.7 is no longer tested in CI due to lack of conda-forge compatability.
- Enable pure conda-forge dependency setup

* Bump to v0.1.0 by talmo in https://github.com/talmolab/sleap-io/pull/78

* Fix multi-skeleton loading by talmo in https://github.com/talmolab/sleap-io/pull/79
- Fixes 71.

* Add high level APIs by talmo in https://github.com/talmolab/sleap-io/pull/80
- Add `load_video` and `load_file` high level APIs (48)

* Labels QOL enhancements by talmo in https://github.com/talmolab/sleap-io/pull/81
- `LabeledFrame.remove_predictions`: Remove predicted instances from a labeled frame.
- `LabeledFrame.remove_empty_instances`: Remove instances with no visible points from a labeled frame.
- `Labels.save`: Instance-level convenience wrapper for `sio.save_file`.
- `Labels.clean`: Remove unused or empty frames, instances, videos, skeletons and tracks.
- `Labels.remove_predictions`: Remove predicted instances from all labeled frames (69).
- `Labels.__getitem__`: Now supports lists, slices, numpy arrays, tuples of `(Video, frame_idx)` and `Video`.

* Video QOL enhancements by talmo in https://github.com/talmolab/sleap-io/pull/82
- `Video.is_open`: Checks if the video exists and the backend is set.
- `Video.open`: Opens or restarts the backend for reading.
- `Video.close`: Closes the backend for reading.
- `Video.exists`: Check if the filename for the video exists.
- `Video.replace_filename`: Replace the filename and restart the backend.

Notes on dependency pins
- `ffmpeg < 6.1` due to https://github.com/imageio/imageio-ffmpeg/issues/99
- `h5py >= 3.8.0` due to https://github.com/h5py/h5py/issues/2118
- `python >= 3.8` due to `h5py >= 3.8.0` (we still support `python==3.7` via pip but this is not longer in CI)


**Full Changelog**: https://github.com/talmolab/sleap-io/compare/v0.0.14...v0.1.0

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.