Open getzze opened 1 month 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 |
Removed tracking.max_tracking ; reintroduced tracking.save_shifted_instances with updated defaults and help description. |
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. |
tracking.save_shifted_instances
and the removal of tracking.max_tracking
relate to the modifications in the training GUI that introduce a checkbox for retaining prediction visualization images after training, indicating a focus on tracking functionalities.normalized_instance_similarity
method in the main PR complements the changes in the tracking system, as both aim to improve the accuracy and reliability of instance matching in tracking processes.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 67.06587%
with 55 lines
in your changes missing coverage. Please review.
Project coverage is 75.29%. Comparing base (
7ed1229
) to head (10799b9
). Report is 47 commits behind head on develop.
Files with missing lines | Patch % | Lines |
---|---|---|
sleap/nn/tracking.py | 64.19% | 29 Missing :warning: |
sleap/nn/inference.py | 66.17% | 23 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
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
Bug Fixes
Refactor
Tracker
class, removing standalone functions for better encapsulation.Tests