Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hi @adam-matic,

I just took a look in the sleap.nn.evals.py file to check how the dist.dists are ordered and it looks like we reorder the labeled frames by video before computing the distances between instances.

sleap/sleap/nn/evals.py

Lines 90 to 91 in b305eda

# Find labeled frames in this video.
labeled_frames_gt = labels_gt.find(video_gt)

If you have just a single video, then that makes things a bit easier since the LabeledFrames (and the dist.dists matrix) will be ordered just as they are in the original Labels.labeled_frames (assuming that all ground truth frames have a corresponding predicted frame or "positive pair").

Warning: If your labels_pr and labels_gt …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@adam-matic
Comment options

Answer selected by adam-matic
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants