Skip to content

Crash while training bottom-up with ID: Labels.skeleton #1101

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

You must be logged in to vote

Hi all,

Just jumping in here with a quick suggestion -- on this line:

slp_labels = [first_labels, sleap.load_file(slp_files[1])]#match_to=first_labels)]

Do you remember why we commented the #match_to=first_labels? Have you tried with that bit included? i.e.:

slp_labels = [first_labels, sleap.load_file(slp_files[1], match_to=first_labels)]]

The match_to should handle merging skeletons -- it just doesn't currently deal with duplicate tracks (see #1083).

Give that a spin and if it doesn't work just keep troubleshooting as per @roomrys's suggestions.


Another thing to try is to just force the labels to have a single skeleton:

merged_labels = sleap.Labels(all_frames)
merged_labels.skeletons = [t…

Replies: 3 comments 2 replies

Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by lisadiez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
4 participants