-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
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
Allow tracking on Instance
s (by adding Instance.tracking_score
)
#1302
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (78.57%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1302 +/- ##
===========================================
+ Coverage 75.43% 76.16% +0.73%
===========================================
Files 134 134
Lines 24749 24812 +63
===========================================
+ Hits 18670 18899 +229
+ Misses 6079 5913 -166 ☔ View full report in Codecov by Sentry. |
Quick question: what happens when there is a user |
All instances in the labeled frame were being considered individually. I've added the following to prefer user labeled instances in the frame if any: Lines 1192 to 1213 in 1ea047d
|
Holding off on this PR since it would require a file format update... best to be worn in on the develop branch for a bit before tacking onto the release. This mean that retracking can only be done on prediction-only projects until this PR is merged (i.e. users need to remove their user-labeled instances before retracking to avoid error). |
WalkthroughThis pull request introduces explicit handling of tracking scores across multiple modules. A new Changes
Sequence Diagram(s)sequenceDiagram
participant LF as LabeledFrame
participant run as run_tracker
participant Tracker as Tracker
LF->>run: Provide instances (user & predicted)
alt User instances present
run->>run: Select user instances for tracking
run->>Tracker: Call tracker.track(user instances)
else No user instances
run->>Tracker: Call tracker.track(predicted instances)
end
Tracker-->>run: Return tracked instances
run->>LF: Update LabeledFrame with tracked instances
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (11)
✨ Finishing Touches
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Prior to Allow Retracking, we did not allow any tracking on user instances. Since re-tracking enables users to run tracking on user instances, we now need to either add a
tracking_score
attribute to user-instances, or refrain from assigning the tracking score if the matched instance is a user instance (see #1301). This PR adds anInstance.tracking_score
attribute and updates spots where thetracking_score
is written (including aFORMAT_ID
bump inLabelsV1Adaptor
).Types of changes
Does this address any currently open issues?
Outside contributors checklist
Thank you for contributing to SLEAP!
❤️
Summary by CodeRabbit
New Features
Tests