Skip to content

How do I merge a large number of predictions into a project without a lot of clicking? #1954

Answered by talmo
davorvr asked this question in Help!
Discussion options

You must be logged in to vote

Hi @davorvr,

For sure! The easiest way would be to use sleap-io, our standalone library for working with SLP files exactly for this use case. Files saved with sleap-io will work seamlessly with SLEAP and vice-versa.

I'd recommend installing it in a new environment if possible, but let us know if it gives you any issues if you prefer to do it in the sleap env. It has both pip (recommended if doing it in the sleap environment) and conda (recommended if doing it in its own environment) packages.

We recently added some convenient functionality for exactly this situation via Labels.replace_filenames. For example:

import sleap_io as sio

labels = sio.load_file("labels.v001.slp")

# Fix paths us…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@davorvr
Comment options

@talmo
Comment options

@davorvr
Comment options

Answer selected by davorvr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants