Open getzze opened 3 months ago
The recent updates to the Sleap framework enhance tracking and inference capabilities. Key modifications include refined configuration options, improved error handling, and better user experience. Changes optimize performance, introduce new reporting features, and streamline object-oriented design, making the system more maintainable and extendable.
Files | Change Summary |
---|---|
sleap/config/pipeline_form.yaml |
Added new inference pipelines: movenet-lightning , movenet-thunder , and tracking-only ; added tracking.save_shifted_instances ; updated default for tracking.match to greedy ; defined batch_size with default 4 and range 1-512. |
sleap/gui/learning/dialog.py |
Adjusted no_result_count calculation to prevent negative values, enhancing reliability. |
sleap/gui/widgets/video.py |
Introduced _down_pos for mouse tracking; improved logic in mouseReleaseEvent to ensure error-free click detection. |
sleap/nn/inference.py |
Added methods for batch processing and improved progress reporting; refactored existing logic for clarity and efficiency. |
sleap/nn/tracking.py |
Added verbosity and report_rate attributes; expanded run_tracker method; improved tracking feedback mechanisms. |
sleap/util.py |
Introduced RateColumn for custom progress rendering; reorganized imports for clarity. |
tests/nn/test_tracker_components.py |
Renamed tracker_by_name to run_tracker_by_name ; included img_scale parameter for enhanced testing capabilities. |
tests/nn/test_tracking_integration.py |
Updated assertions in test_simple_tracker ; refactored tests to utilize instance methods for tracking. |
sleap/config/pipeline_form.yaml
file to add a new checkbox for retaining prediction visualization images after training, which is related to the changes in the main PR that also involve modifications to the same configuration file.sleap/config/pipeline_form.yaml
to include a new similarity method option, which is relevant as it also involves changes to the configuration settings in the same file as the main PR.MultiView Stack
🐰 In a world of code so bright,
Each change brings a new delight!
With tracking swift and errors few,
Our framework hops to something new.
Here’s to progress, let’s all cheer,
For every byte, we hold so dear! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Also fixes a bug introduced by #1875, where the data_path
variable was overwritten.
Attention: Patch coverage is 70.44335%
with 60 lines
in your changes missing coverage. Please review.
Project coverage is 75.48%. Comparing base (
7ed1229
) to head (b61af69
). Report is 56 commits behind head on develop.
Files with missing lines | Patch % | Lines |
---|---|---|
sleap/nn/tracking.py | 63.09% | 31 Missing :warning: |
sleap/nn/inference.py | 74.25% | 26 Missing :warning: |
sleap/gui/learning/dialog.py | 0.00% | 1 Missing :warning: |
sleap/gui/widgets/video.py | 50.00% | 1 Missing :warning: |
sleap/util.py | 93.33% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It's ready for review!
Thanks for the updates @getzze! Just keep us posted on when it's ready for review again.
It's ready to review!
Hi @getzze ,
I rebased you branch off of our updated develop
branch and I noticed there are few errors in the tests because of the new features added. (One of the main addition is having a new parameter img_hw
to the Tracker.track()
method) Since I don't have access to your branch, could you please resolve the issues so that we could merge this PR to develop
?
Thanks,
Divya
Hi @gitttt-1234, I just pushed the changes.
Thanks
Hi @gitttt-1234,
I rebased to develop
and tests are passing.
Description
Several things were buggy when running
tracking-only
from GUI orsleap-track
from CLI with only tracking:None
value, which is boolean-False, so it could give the opposite for True-by-default options (there are none so far, fortunately).save_shifted_instances
to True and give back access to setting it from the GUI (removed in #1447, I don't know why)data_path
variable was overwritten.Types of changes
Does this address any currently open issues?
None
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
Summary by CodeRabbit
New Features
movenet-lightning
,movenet-thunder
, andtracking-only
.Bug Fixes
Refactor
Tracker
class, removing standalone functions for better encapsulation.Tests