Add tracks dataset validator and movement→ethology bbox loader#141
Add tracks dataset validator and movement→ethology bbox loader#141richarddushime wants to merge 6 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #141 +/- ##
==========================================
+ Coverage 99.45% 99.48% +0.03%
==========================================
Files 8 9 +1
Lines 554 588 +34
==========================================
+ Hits 551 585 +34
Misses 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The docs job runs make linkcheck and fails on these links, which are not in the ignore list: |
|
Hi @richarddushime, We recently had issues with rate limiting too (see here) which should be fixed with this approach, but I think that is not happening here, right? |
these 2 extra links are the ones not added and thought if added can fix the issue completely the rate limiting issue on this link here and the link in the examples link here |
|
Ok so let's add the Are you experiencing the rate limiting error locally? I still cannot find it in the CI logs... Also the scikit-learn link shows as ok for me in the logs here. What am I missing? |
when i first made a PR ready for review i got that and i had to check but now with the new updates the needed fix is the All looks Good now |
|
All Good the PR you are from merging added the link No extra fix needed |
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
What is this PR
Why is this PR needed?
We want ethology to support tracked detections (same individual across frames), so we can later add examples (e.g. boxMOT) and other workflows. Right now we only have annotations (per-frame boxes) and detections (per-frame + confidence). This PR adds the data model and one way to get data into it.
What does this PR do?
Adds
ValidBboxTracksDataset: a validator that defines what a “tracks” dataset must look like (same structure as detections, but id means track/individual across frames).Adds
ethology.io.tracks.from_movement_bboxes: a function that takes a movement bbox dataset and turns it into an ethology tracks dataset (renames dims, fills missing category/confidence if needed, validates the result).References
Please reference any existing issues/PRs that relate to this PR.
issue here
How has this PR been tested?
Please explain how any new code has been tested, and how you have ensured that no existing functionality has changed.
Added required tests
Is this a breaking change?
If this PR breaks any existing functionality, please explain how and why.
No. This only adds new code (validator + loader + tests).
Does this PR require an update to the documentation?
If any features have changed, or have been added. Please explain how the
documentation has been updated.
The new module and function will appear in the API docs once the API index is generated (same as other modules).
Checklist: