We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now, LabeledFrame objects in Labels are stored in arbitrary order and may have gaps.
LabeledFrame
Labels
Often, we need to access labeled frames by the video frame index, which we do via this logic:
sleap-io/sleap_io/model/labels.py
Lines 97 to 106 in de9da79
Lines 296 to 340 in de9da79
It would be great to have a cache (and ideally a more convenient accessor (e.g., labels.frame[frame_idx] for single video labels) for these cases.
labels.frame[frame_idx]
While keeping the cache in sync is a bigger headache, we can follow the recipes in #135 and #136 for explicit control as an escape hatch.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now,
LabeledFrame
objects inLabels
are stored in arbitrary order and may have gaps.Often, we need to access labeled frames by the video frame index, which we do via this logic:
sleap-io/sleap_io/model/labels.py
Lines 97 to 106 in de9da79
sleap-io/sleap_io/model/labels.py
Lines 296 to 340 in de9da79
It would be great to have a cache (and ideally a more convenient accessor (e.g.,
labels.frame[frame_idx]
for single video labels) for these cases.While keeping the cache in sync is a bigger headache, we can follow the recipes in #135 and #136 for explicit control as an escape hatch.
The text was updated successfully, but these errors were encountered: